调用QueryEventTraces查询事件轨迹。
URI
/openapi/queryEventTraces
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
EventBusName | String | 是 | testBus | 事件总线的名称。更多信息,请参见使用限制。 |
EventId | String | 是 | a5074581-7e74-4e4c-868f-47e7afdf**** | 事件ID。 |
返回参数
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
EventTraceList | List<EventTrace> | 事件轨迹信息。 | |
ResourceOwnerId | String | 123456789098**** | 用户UID。 |
Action | String | PutEvent | 事件轨迹类型。取值说明如下:
|
EventId | String | a5074581-7e74-4e4c-868f-47e7afdf**** | 事件ID。 |
EventBusName | String | testBus | 事件总线的名称。 |
ActionTime | String | 1661773573100 | 轨迹事件执行时间。 |
EventSource | String | testSource | 事件源名称。 |
ReceivedTime | Long | 1661773573100 | 事件投递到总线的时间。Action取值为PutEvent时的EventTrace属性。 |
RuleName | String | testRule | 满足事件模式匹配的时间规则名称。Action取值为FilterEvent时的EventTrace属性。 |
RuleMatchingTime | Long | 1661773573096 | 事件规则匹配通过时间。Action取值为FilterEvent时的EventTrace属性。 |
NotifyLatency | Long | 80 | 事件目标投递延迟。Action取值为PushEvent时的EventTrace属性。单位:毫秒。 |
NotifyTime | Long | 1661773573096 | 事件目标投递时间。Action取值为PushEvent时的EventTrace属性。 |
Endpoint | String | acs: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"
}
]
}