[SDK reference](../../index.md) / [Models](../index.md) / [Messaging](index.md)

# 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

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Annotations` | `Models.Messaging.EventSubscription_annotations?` | `annotations` | At most 256 KiB in all; never policy input. |
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeadLetterQueue` | `string?` | `deadLetterQueue` | Optional dead-letter Queue ID or resource name receiving events whose delivery retries are exhausted. |
| `DeadLetteredEventCount` | `long?` | `deadLetteredEventCount` | Total count of matched events routed to deadLetterQueue after delivery exhaustion. |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `DeliveredEventCount` | `long?` | `deliveredEventCount` | Total count of matched events successfully delivered to the destination. |
| `Description` | `string?` | `description` | Human-readable description. |
| `DestinationQueue` | `string?` | `destinationQueue` | Target Queue ID or resource name in the same project and location (mutually exclusive with destinationWebhookEndpoint). |
| `DestinationWebhookEndpoint` | `string?` | `destinationWebhookEndpoint` | Target WebhookEndpoint ID or resource name in the same project and location (mutually exclusive with destinationQueue). |
| `DisplayName` | `string?` | `displayName` | Up to 63 characters. |
| `Etag` | `string?` | `etag` | "{generation}"; send it back in If-Match. |
| `Extensions` | `Models.Messaging.EventSubscription_extensions?` | `extensions` | Optional exact CloudEvents extension attribute matches. |
| `Labels` | `Models.Messaging.EventSubscription_labels?` | `labels` | At most 64. |
| `Location` | `string?` | `location` | Location ID where the subscription is homed. |
| `MatchedEventCount` | `long?` | `matchedEventCount` | Total count of project events matched by this subscription's filter. |
| `Name` | `string?` | `name` | The resource name, for example projects/p/locations/l/instances/i. |
| `PurgeTime` | `DateTimeOffset?` | `purgeTime` | The purgeTime property |
| `Reconciling` | `bool?` | `reconciling` | True while the platform works toward the spec. |
| `State` | `Models.Messaging.EventSubscriptionState?` | `state` | Event subscription lifecycle states (ADR-0805, ADR-1103). |
| `SubjectPrefix` | `string?` | `subjectPrefix` | Optional CloudEvents `subject` prefix filter (for example `instances/vm-`). |
| `SuspendReason` | `string?` | `suspendReason` | Why the event subscription is paused (for example spend-cap), if paused. |
| `TypePrefix` | `string?` | `typePrefix` | Optional CloudEvents `type` prefix filter (for example `compute.instance.` or `storage.object.`). |
| `Uid` | `string?` | `uid` | UUIDv7, never reused. |
| `UpdateTime` | `DateTimeOffset?` | `updateTime` | The updateTime property |
