All Products
Search
Document Center

EventBridge:QueryEventTraces

Last Updated:Mar 15, 2024

Queries event traces.

Operation description

You can call this API operation to query event traces.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
EventBusNamestringYes

The name of the event bus.

MyEventBus
EventIdstringYes

The event ID.

1935debf-ddac-49dc-a090-d4f2857a046d

Response parameters

ParameterTypeDescriptionExample
object
Messagestring

The error message that is returned if the request failed.

EventBusNotExist
RequestIdstring

The request ID.

BB934571-1F5A-5E17-91DD-E2BC3E1BFBFF
Dataobject []

The name of the event source.

Actionstring

The type of the event trace. Valid values: PutEvent: a delivery event. FilterEvent: a filtering event. PushEvent: a pushing event.

PutEvent
ReceivedTimelong

The time when the event was delivered to the event bus. This parameter is returned if the value of the Action parameter is PutEvent.

1659495343896
RuleMatchingTimestring

The time when the event rule was matched. This parameter is returned if the value of the Action parameter is FilterEvent.

1659495343896
ActionTimelong

The execution time of the event trace.

1659495343896
NotifyStatusstring

The event target delivery status.

[200]Ok
RuleNamestring

The name of the event rule.

ramrolechange-mns
EventIdstring

The event ID.

a5747e4f-2af2-40b6-b262-d0140e995bf7
EventBusNamestring

The name of the event bus.

demo
Endpointstring

The endpoint of the event target. This parameter is returned if the value of the Action parameter is PushEvent.

acs:mns:cn-zhangjiakou:123456789098****:queues/testQueue
NotifyLatencystring

The delivery delay of the event target. This parameter is returned if the value of the Action parameter is PushEvent.

80
NotifyTimelong

The delivery time of the event target. This parameter is returned if the value of the Action parameter is PushEvent.

1659495343896
EventSourcestring

The name of the event source.

cert-api
Codestring

The status code returned. The status code 200 indicates that the request was successful.

200
Successboolean

Indicates whether the request is successful. Valid values: true and false.

true

Examples

Sample success responses

JSONformat

{
  "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
}

Error codes

HTTP status codeError codeError message
403ServiceNotEnableService not enable

For a list of error codes, visit the Service error codes.