SDK reference / Models / Events

Topic

Kind: class

Namespace: Egulu.Sdk.Models.Events

A topic: a named, durable log of CloudEvents published to it, fanned out to its subscriptions (MSG-4; ADR-0805 §4).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Events.Topic_annotations?annotationsAt most 256 KiB in all; never policy input.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
Descriptionstring?descriptionHuman-readable description.
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Events.Topic_labels?labelsAt most 64.
Locationstring?locationLocation ID where the topic is homed.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PlatformEventsbool?platformEventsMakes this a platform-events topic: the project's own resource events (created, updated, deleted, state changed) at this location arepublished to it as CloudEvents of type `{service}.{kind}.{verb}.v1`, with the extension attribute `lifecycle` (`created`, `updated`,`deleted` or `state-changed`), the resource name as `subject` and data `{"resource": "<name>"}`. Route them with subscription filters.They count against the retained-events quota; an event that finds the quota full is not stored.
PublishedEventCountlong?publishedEventCountTotal events ever published to the topic.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RetainedEventCountlong?retainedEventCountEvents published to the topic and still retained.
RetentionSecondsint?retentionSecondsHow long published events stay available for delivery and replay, in seconds (60..604800 = 7 days, default 86400).
StateModels.Events.TopicState?stateTopic lifecycle states (MSG-4).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property