Queries event details.
Operation description
When you call this operation to query event details, you can query the event details at most twice per second.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
NextToken | string | No | The token used to request the next page of query results. Note
The request parameters must be the same as those of the last request.
| eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD**** |
MaxResults | string | No | The maximum number of entries to be returned. Valid values: 0 to 50. | 20 |
StartTime | string | No | The beginning of the time range to query. The default time is seven days prior to the current time. Specify the time in the ISO 8601 standard in the | 2020-10-08T11:00:00Z |
EndTime | string | No | The end of the time range to query. The default time is the current time. Specify the time in the ISO 8601 standard in the | 2020-10-15T11:00:00Z |
Direction | string | No | The order in which details of events are to be retrieved. Valid values:
| BACKWARD |
LookupAttribute | array<object> | No | Query conditions. | |
object | No | test | ||
Key | string | No | The key of the query condition. Valid values:
Note
You can use only one query condition for each query.
| ServiceName |
Value | string | No | The value of the query condition. Valid values:
| Ecs |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"EndTime": "2020-07-22T14:00:00Z",
"NextToken": "eyJhY2NvdW50IjoiMTQyNDM3OTU4NjM4NzE2MSIsImV2ZW50SWQiOiI3MkJDRTExRi02OTU3LTQ0NUItQjY0MC1CNEUyMkM4NUEwQzgiLCJsb2dJZCI6IjgyLTE0MjQzNzk1ODYzODcxNjEiLCJ0aW1lIjoxNjAyMzExNTQwMD****",
"RequestId": "FD79665A-CE8B-49D4-82E6-5EE2E0E791DD",
"Events": [
{
"test": "test",
"test2": 1
}
],
"StartTime": "2020-07-15T14:00:00Z"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | IncompleteSignature | The request signature does not conform to Alibaba Cloud standards. | The request signature does not conform to Alibaba Cloud standards. |
400 | InvalidParameterCombination | The end time must be later than the start time. | The end time must be greater than the start time. |
400 | InvalidQueryParameter | The specified query parameter is invalid. | The specified query parameter is not valid. |
400 | InvalidParameterEndTime | The specified EndTime is invalid. | - |
400 | InvalidParameterStartTime | The specified StartTime is invalid. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|