更新时间:2025-09-26 GMT+08:00
能否将自定义事件推送到EventGrid?
可以。
您可以将自定义事件以CloudEvents V1.0的格式要求进行封装,并通过API将其发送到EventGrid。
事件示例如下:
{ "specversion": "1.0", "type": "com.example.item.created", "source": "/mycontext", "id": "A234-1234-1234", "time": "2025-09-25T19:35:00Z", "subject": "events/12345", "datacontenttype": "application/json", "data": { "itemId": "ABC-123", "action": "created", "timestamp": "2025-09-25T19:35:00Z" }, "comexampleextension1": "value1", "comexampleextension2": { "nested": "value2" } }
请参考自定义事件发送流程,将自定义事件推送到EventGrid。