Class: Google::Pubsub::V1::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb

Overview

A snapshot resource.

Instance Attribute Summary collapse

Instance Attribute Details

#expiration_timeGoogle::Protobuf::Timestamp

Returns The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is +7 days - (age of oldest unacked message in the subscription)+. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.

Returns:

  • (Google::Protobuf::Timestamp)

    The snapshot is guaranteed to exist up until this time. A newly-created snapshot expires no later than 7 days from the time of its creation. Its exact lifetime is determined at creation by the existing backlog in the source subscription. Specifically, the lifetime of the snapshot is +7 days - (age of oldest unacked message in the subscription)+. For example, consider a subscription whose oldest unacked message is 3 days old. If a snapshot is created from this subscription, the snapshot -- which will always capture this 3-day-old backlog as long as the snapshot exists -- will expire in 4 days.



442
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442

class Snapshot; end

#nameString

Returns The name of the snapshot.

Returns:

  • (String)

    The name of the snapshot.



442
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442

class Snapshot; end

#topicString

Returns The name of the topic from which this snapshot is retaining messages.

Returns:

  • (String)

    The name of the topic from which this snapshot is retaining messages.



442
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 442

class Snapshot; end