查询事件轨迹。
接口说明
查询事件轨迹。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eventbridge:QueryEventTraces |
get |
*EventBus
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| EventBusName |
string |
是 |
事件总线的名称。 |
MyEventBus |
| EventId |
string |
是 |
事件 ID。 |
1935debf-ddac-49dc-a090-d4f2857a046d |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Message |
string |
错误信息。 |
EventBusNotExist |
| RequestId |
string |
阿里云为该请求生成的唯一标识符。 |
BB934571-1F5A-5E17-91DD-E2BC3E1BFBFF |
| Data |
array<object> |
事件轨迹信息。 |
|
|
object |
事件轨迹信息。 |
||
| Action |
string |
事件轨迹类型。取值说明如下: PutEvent:投递事件。 FilterEvent:过滤事件。 PushEvent:推送事件。 |
PutEvent |
| ReceivedTime |
integer |
事件投递到总线的时间。Action 取值为 PutEvent 时的 EventTrace 属性。 |
1659495343896 |
| RuleMatchingTime |
string |
事件规则匹配通过时间。Action 取值为 FilterEvent 时的 EventTrace 属性。 |
1659495343896 |
| ActionTime |
integer |
轨迹事件执行时间。 |
1659495343896 |
| NotifyStatus |
string |
事件目标投递状态 |
[200]Ok |
| RuleName |
string |
事件规则的名称 |
ramrolechange-mns |
| EventId |
string |
事件 ID。 |
a5747e4f-2af2-40b6-b262-d0140e995bf7 |
| EventBusName |
string |
事件总线的名称。 |
demo |
| Endpoint |
string |
事件目标的接入点。Action 取值为 PushEvent 时的 EventTrace 属性。 |
acs:mns:cn-zhangjiakou:123456789098****:queues/testQueue |
| NotifyLatency |
string |
事件目标投递延迟。Action 取值为 PushEvent 时的 EventTrace 属性。 |
80 |
| NotifyTime |
integer |
事件目标投递时间。Action 取值为 PushEvent 时的 EventTrace 属性。 |
1659495343896 |
| EventSource |
string |
事件源名称。 |
cert-api |
| Code |
string |
接口返回码: 200:表示成功。 其它:表示错误码。错误码详情,请参见错误码。 |
200 |
| Success |
boolean |
操作成功返回 true。 |
true |
示例
正常返回示例
JSON格式
{
"Message": "EventBusNotExist",
"RequestId": "BB934571-1F5A-5E17-91DD-E2BC3E1BFBFF",
"Data": [
{
"Action": "PutEvent",
"ReceivedTime": 1659495343896,
"RuleMatchingTime": "1659495343896",
"ActionTime": 1659495343896,
"NotifyStatus": "[200]Ok",
"RuleName": "ramrolechange-mns",
"EventId": "a5747e4f-2af2-40b6-b262-d0140e995bf7",
"EventBusName": "demo",
"Endpoint": "acs:mns:cn-zhangjiakou:123456789098****:queues/testQueue",
"NotifyLatency": "80",
"NotifyTime": 1659495343896,
"EventSource": "cert-api"
}
],
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。