SDK reference / Models / Events

TopicSubscription

Kind: class

Namespace: Egulu.Sdk.Models.Events

A pull subscription to a topic (MSG-4): consumers lease events with :pull, then :acknowledge, :nack or :extendLease.

Properties

NameTypeJSON nameDescription
AckDeadlineSecondsint?ackDeadlineSecondsSeconds a leased event stays invisible to other consumers (1..600, default 30; for a push subscription, the time a delivery may stay in flight is the webhook engine's).
AcknowledgedCountlong?acknowledgedCountEvents acknowledged in total.
AnnotationsModels.Events.TopicSubscription_annotations?annotationsAt most 256 KiB in all; never policy input.
BacklogCountlong?backlogCountEvents waiting for a consumer.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeadLetterCountlong?deadLetterCountEvents parked after maxDeliveryAttempts.
DeadLetterTopicstring?deadLetterTopicA topic in the same project and location that receives an event when this subscription gives up on a delivery (aftermaxDeliveryAttempts of a pull, or when the push retries are exhausted). The event is `plat.topic.delivery-failed.v1`; its data namesthis subscription, the reason and the original event.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
Descriptionstring?descriptionHuman-readable description.
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
Filterstring?filterOptional filter on the event's CloudEvents attributes and data fields, for example`type = "com.example.order.created" AND data.total >= 100`. An event the filter does not take is stored but not delivered to thissubscription. See `:testFilter` and the filter language of the console's filter tester. At most 1,024 characters.
InFlightCountlong?inFlightCountEvents currently leased.
LabelsModels.Events.TopicSubscription_labels?labelsAt most 64.
Locationstring?locationLocation ID where the subscription is homed.
MaxDeliveryAttemptsint?maxDeliveryAttemptsDelivery attempts before an event is parked as a dead letter (1..100, default 10).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
PushWebhookEndpointstring?pushWebhookEndpointMakes this a push subscription: matching events are delivered to this WebhookEndpoint (ID or resource name, same project andlocation) as signed Standard Webhooks requests through the egress path, with the endpoint's retry ladder and circuit breaker. A pushsubscription is not pulled. One push subscription per endpoint.
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
StateModels.Events.TopicSubscriptionState?stateTopic subscription lifecycle states (MSG-4).
Topicstring?topicThe topic's ID or resource name in the same project and location.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property