调用QueryEventTraces查询事件轨迹。

URI

/openapi/queryEventTraces

请求参数

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

返回参数

名称类型示例值描述
EventTraceListList<EventTrace>事件轨迹信息。
ResourceOwnerIdString123456789098****用户UID。
ActionStringPutEvent事件轨迹类型。取值说明如下:
  • PutEvent:投递事件。
  • FilterEvent:过滤事件。
  • PushEvent:推送事件。
EventIdStringa5074581-7e74-4e4c-868f-47e7afdf****事件ID。
EventBusNameStringtestBus事件总线的名称。
ActionTimeString1661773573100轨迹事件执行时间。
EventSourceStringtestSource事件源名称。
ReceivedTimeLong1661773573100事件投递到总线的时间。Action取值为PutEvent时的EventTrace属性。
RuleNameStringtestRule满足事件模式匹配的时间规则名称。Action取值为FilterEvent时的EventTrace属性。
RuleMatchingTimeLong1661773573096事件规则匹配通过时间。Action取值为FilterEvent时的EventTrace属性。
NotifyLatencyLong80事件目标投递延迟。Action取值为PushEvent时的EventTrace属性。单位:毫秒。
NotifyTimeLong1661773573096事件目标投递时间。Action取值为PushEvent时的EventTrace属性。
EndpointStringacs:mns:cn-zhangjiakou:123456789098****:queues/testQueue事件目标的接入点。Action取值为PushEvent时的EventTrace属性。

示例

请求示例

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

{
  "EventBusName": "testBus",
  "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: 79
x-eventbridge-request-id: 4C9A9081786245F1D900****
Date: Sat, 18 Apr 2020 09:30:42 GMT

{
  "EventTraceList": [
    {
      "EventBusName": "testBus",
      "Action": "PutEvent",
      "ReceivedTime": 1587173442152,
      "ResourceOwnerId": "123456789098****",
      "ActionTime": "1587173443179",
      "EventSource": "httpSource",
      "EventId": "a5074581-7e74-4e4c-868f-47e7afdf****"
    },
    {
      "EventBusName": "testBus",
      "Action": "FilterEvent",
      "ResourceOwnerId": "123456789098****",
      "RuleMatchingTime": 1587173443872,
      "ActionTime": "1587173443872",
      "EventId": "a5074581-7e74-4e4c-868f-47e7afdf****",
      "RuleName": "testRule"
    },
    {
      "EventBusName": "testBus",
      "Action": "PushEvent",
      "NotifyLatency": 80,
      "NotifyStatus": "[201]NotifyOk",
      "ResourceOwnerId": "123456789098****",
      "ActionTime": "1587173447872",
      "NotifyTime": 1587173443992,
      "Endpoint": "acs:mns:cn-hangzhou:123456789098****:queues/testQueue",
      "EventId": "a5074581-7e74-4e4c-868f-47e7afdf****",
      "RuleName": "testRule"
    }
  ]
}