Class: Google::Cloud::Redis::V1beta1::PersistenceConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb

Overview

Configuration of the persistence functionality.

Defined Under Namespace

Modules: PersistenceMode, SnapshotPeriod

Instance Attribute Summary collapse

Instance Attribute Details

#persistence_mode::Google::Cloud::Redis::V1beta1::PersistenceConfig::PersistenceMode

Returns Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.

Returns:



337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 337

class PersistenceConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available Persistence modes.
  module PersistenceMode
    # Not set.
    PERSISTENCE_MODE_UNSPECIFIED = 0

    # Persistence is disabled for the instance,
    # and any existing snapshots are deleted.
    DISABLED = 1

    # RDB based Persistence is enabled.
    RDB = 2
  end

  # Available snapshot periods for scheduling.
  module SnapshotPeriod
    # Not set.
    SNAPSHOT_PERIOD_UNSPECIFIED = 0

    # Snapshot every 1 hour.
    ONE_HOUR = 3

    # Snapshot every 6 hours.
    SIX_HOURS = 4

    # Snapshot every 12 hours.
    TWELVE_HOURS = 5

    # Snapshot every 24 hours.
    TWENTY_FOUR_HOURS = 6
  end
end

#rdb_next_snapshot_time::Google::Protobuf::Timestamp (readonly)

Returns Output only. The next time that a snapshot attempt is scheduled to occur.

Returns:



337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 337

class PersistenceConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available Persistence modes.
  module PersistenceMode
    # Not set.
    PERSISTENCE_MODE_UNSPECIFIED = 0

    # Persistence is disabled for the instance,
    # and any existing snapshots are deleted.
    DISABLED = 1

    # RDB based Persistence is enabled.
    RDB = 2
  end

  # Available snapshot periods for scheduling.
  module SnapshotPeriod
    # Not set.
    SNAPSHOT_PERIOD_UNSPECIFIED = 0

    # Snapshot every 1 hour.
    ONE_HOUR = 3

    # Snapshot every 6 hours.
    SIX_HOURS = 4

    # Snapshot every 12 hours.
    TWELVE_HOURS = 5

    # Snapshot every 24 hours.
    TWENTY_FOUR_HOURS = 6
  end
end

#rdb_snapshot_period::Google::Cloud::Redis::V1beta1::PersistenceConfig::SnapshotPeriod

Returns Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.

Returns:

  • (::Google::Cloud::Redis::V1beta1::PersistenceConfig::SnapshotPeriod)

    Optional. Period between RDB snapshots. Snapshots will be attempted every period starting from the provided snapshot start time. For example, a start time of 01/01/2033 06:45 and SIX_HOURS snapshot period will do nothing until 01/01/2033, and then trigger snapshots every day at 06:45, 12:45, 18:45, and 00:45 the next day, and so on. If not provided, TWENTY_FOUR_HOURS will be used as default.



337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 337

class PersistenceConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available Persistence modes.
  module PersistenceMode
    # Not set.
    PERSISTENCE_MODE_UNSPECIFIED = 0

    # Persistence is disabled for the instance,
    # and any existing snapshots are deleted.
    DISABLED = 1

    # RDB based Persistence is enabled.
    RDB = 2
  end

  # Available snapshot periods for scheduling.
  module SnapshotPeriod
    # Not set.
    SNAPSHOT_PERIOD_UNSPECIFIED = 0

    # Snapshot every 1 hour.
    ONE_HOUR = 3

    # Snapshot every 6 hours.
    SIX_HOURS = 4

    # Snapshot every 12 hours.
    TWELVE_HOURS = 5

    # Snapshot every 24 hours.
    TWENTY_FOUR_HOURS = 6
  end
end

#rdb_snapshot_start_time::Google::Protobuf::Timestamp

Returns Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.

Returns:

  • (::Google::Protobuf::Timestamp)

    Optional. Date and time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.



337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# File 'proto_docs/google/cloud/redis/v1beta1/cloud_redis.rb', line 337

class PersistenceConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Available Persistence modes.
  module PersistenceMode
    # Not set.
    PERSISTENCE_MODE_UNSPECIFIED = 0

    # Persistence is disabled for the instance,
    # and any existing snapshots are deleted.
    DISABLED = 1

    # RDB based Persistence is enabled.
    RDB = 2
  end

  # Available snapshot periods for scheduling.
  module SnapshotPeriod
    # Not set.
    SNAPSHOT_PERIOD_UNSPECIFIED = 0

    # Snapshot every 1 hour.
    ONE_HOUR = 3

    # Snapshot every 6 hours.
    SIX_HOURS = 4

    # Snapshot every 12 hours.
    TWELVE_HOURS = 5

    # Snapshot every 24 hours.
    TWENTY_FOUR_HOURS = 6
  end
end