Skip to content

Commit cb88ee9

Browse files
adding cloud event schema details
1 parent 541e399 commit cb88ee9

File tree

1 file changed

+16
-1
lines changed
  • docs/content/how-to-guides/configure-reactions/configure-post-pubsub-reaction

1 file changed

+16
-1
lines changed

docs/content/how-to-guides/configure-reactions/configure-post-pubsub-reaction/_index.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@ description: >
99

1010
The `PostDaprPubSub` Reaction forwards change events and control signals from Drasi Continuous Queries to specified [Dapr publish/subscribe topics](https://docs.dapr.io/developing-applications/building-blocks/pubsub/pubsub-overview/). This enables Dapr-enabled microservices to react to sophisticated, real-time data changes detected by Drasi in various backend systems.
1111

12-
Messages are published as [CloudEvents](httpsa://cloudevents.io/), with the Drasi event (either in "packed" or "unpacked" format) contained within the `data` field of the CloudEvent.
12+
Messages are published as [CloudEvents](https://cloudevents.io/), with the Drasi event (either in "packed" or "unpacked" format) contained within the `data` field of the CloudEvent.
13+
14+
### CloudEvent Envelope Structure
15+
16+
All events published by this reaction include the following CloudEvents attributes:
17+
18+
| Attribute | Description | Example |
19+
|-----------|-------------|---------|
20+
| `specversion` | CloudEvents specification version | `"1.0"` |
21+
| `type` | Event type identifier | `"com.dapr.event.sent"` |
22+
| `source` | Identifies the reaction instance | `"stock-notifications-publisher-reaction"` |
23+
| `id` | Unique event identifier | `"378d12a1-ce64-4477-81e0-ed025609923a"` |
24+
| `time` | Timestamp of when the event was created | `"2025-06-09T20:33:02Z"` |
25+
| `datacontenttype` | Content type of the data field | `"application/json"` |
26+
| `data` | The Drasi event payload | (see format examples below) |
27+
1328

1429
## Scenarios Powered by this Reaction
1530

0 commit comments

Comments
 (0)