SDK reference / Models / Messaging

EventSubscription

Kind: class

Namespace: Egulu.Sdk.Models.Messaging

A customer CloudEvents 1.0 event subscription routing matching project events to a Queue or WebhookEndpoint (W54; ADR-0805 §1–§4).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Messaging.EventSubscription_annotations?annotationsAt most 256 KiB in all; never policy input.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeadLetterQueuestring?deadLetterQueueOptional dead-letter Queue ID or resource name receiving events whose delivery retries are exhausted.
DeadLetteredEventCountlong?deadLetteredEventCountTotal count of matched events routed to deadLetterQueue after delivery exhaustion.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DeliveredEventCountlong?deliveredEventCountTotal count of matched events successfully delivered to the destination.
Descriptionstring?descriptionHuman-readable description.
DestinationQueuestring?destinationQueueTarget Queue ID or resource name in the same project and location (mutually exclusive with destinationWebhookEndpoint).
DestinationWebhookEndpointstring?destinationWebhookEndpointTarget WebhookEndpoint ID or resource name in the same project and location (mutually exclusive with destinationQueue).
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
ExtensionsModels.Messaging.EventSubscription_extensions?extensionsOptional exact CloudEvents extension attribute matches.
LabelsModels.Messaging.EventSubscription_labels?labelsAt most 64.
Locationstring?locationLocation ID where the subscription is homed.
MatchedEventCountlong?matchedEventCountTotal count of project events matched by this subscription's filter.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
StateModels.Messaging.EventSubscriptionState?stateEvent subscription lifecycle states (ADR-0805, ADR-1103).
SubjectPrefixstring?subjectPrefixOptional CloudEvents `subject` prefix filter (for example `instances/vm-`).
SuspendReasonstring?suspendReasonWhy the event subscription is paused (for example spend-cap), if paused.
TypePrefixstring?typePrefixOptional CloudEvents `type` prefix filter (for example `compute.instance.` or `storage.object.`).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property