Queries event traces by time range.
Operation description
You can call this API operation to query event traces by time range.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
EventBusName | string | Yes | The name of the event bus. | MyEventBus |
StartTime | long | Yes | The beginning of the time range to query event traces. Unit: milliseconds. | 1661773509000 |
EndTime | long | Yes | The end of the time range when event traces are queried. Unit: milliseconds. | 1661773509000 |
Limit | integer | No | The maximum number of entries to be returned in a call. You can use this parameter and NextToken to implement paging. Up to 100 entries can be returned in a call. | 50 |
NextToken | string | No | If you configure Limit and excess return values exist, this parameter is returned. | 1000 |
EventSource | string | No | The name of the event source. | mse |
EventType | string | No | The event type. | eventbridge:Events:HTTPEvent |
MatchedRule | string | No | The name of the event rule that is matched. | test-mnsrule |
Response parameters
Examples
Sample success responses
JSON
format
{
"Message": "EventBusNotExist",
"RequestId": "d9e4628b-8b34-4f33-82be-5aac50aac0ba",
"Data": {
"NextToken": "1000",
"Events": [
{
"EventId": "07E-1OCckaVzNB92BIFFh4xgydOF1wd",
"EventBusName": "test-custom-bus",
"EventReceivedTime": 1661773573100,
"EventSource": "acs.resourcemanager",
"EventType": "eventbridge:Events:HTTPEvent"
}
],
"Total": 6
},
"Code": "200",
"Success": true
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
403 | ServiceNotEnable | Service not enable |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history