Pub/Sub Snapshot

A Pub/Sub Snapshot in Google Cloud is a point-in-time copy of a subscription’s message backlog. It allows you to preserve unacknowledged messages so that you can replay them later by seeking a subscription to the snapshot. This is useful for recovering from errors, testing, or reprocessing data without losing messages.

gcp.pubsub_snapshot

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
datadog_display_namecorestring
expire_timecoretimestampOptional. 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. The service will refuse to create a snapshot that would expire in less than 1 hour after creation.
labelscorearray<string>Optional. See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
namecorestringOptional. The name of the snapshot.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
resource_namecorestring
tagscorehstore
topiccorestringOptional. The name of the topic from which this snapshot is retaining messages.