调用QueryEventByEventId接口获取事件轨迹基本信息。

URI

/openapi/queryEventByEventId

请求参数

名称 类型 是否必选 示例值 描述
EventBusName String testBus 事件总线的名称。更多信息,请参见使用限制
EventSource String testSource 事件源名称。
EventId String a5074581-7e74-4e4c-868f-47e7afdf**** 事件ID。

返回参数

名称 类型 示例值 描述
TracedEvents List<TracedEvent> 事件轨迹基础信息。
EventId String a5074581-7e74-4e4c-868f-47e7afdf**** 事件ID。
EventBusName String testBus 事件总线的名称。
EventSource String testSource 事件源的名称。
EventReceivedTime String 1661773573100 事件投递到总线的时间。
EventType String eventbridge:Events:HTTPEvent 事件类型。

示例

请求示例

POST /openapi/queryEventByEventId HTTP/1.1
Host: 123456789098****.eventbridge.cn-hangzhou.aliyuncs.com
Date: Sat, 18 Apr 2020 08:30:41 GMT
x-eventbridge-version: 2020-04-01
Authorization: acs vZ3VL0SuJdHi****:Jo2PbTj******zYAYoYslKLvWzg=
Content-Type: application/json;charset=UTF-8
Content-Length: 92

{
  "EventBusName": "testBus",
  "EventSourceName": "testSource",
  "EventId": "a5074581-7e74-4e4c-868f-47e7afdf****"
}

返回示例

HTTP/1.1 200 OK
Server: AliyunEventBridge
Connection: keep-alive
Content-Type: application/json;charset=utf-8
Content-Length: 279
x-eventbridge-request-id: 5E9A9081333245F1D800****
Date: Sat, 18 Apr 2020 08:30:42 GMT

{
  "TracedEvents": [
    {
      "EventBusName": "testBus",
      "EventSource": "testSource",
      "EventType": "eventbridge:Events:HTTPEvent",
      "EventId": "a5074581-7e74-4e4c-868f-47e7afdf****",
      "EventReceivedTime": "1587173442152"
    }
  ],
  "Total": 1
}