ListInstanceHistoryEvents
Queries the hardware O&M events triggered by an Elasticsearch cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:ListInstanceHistoryEvents |
get |
*All Resource
|
None | None |
Request syntax
POST /openapi/events HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
No |
The instance ID. |
es-cn-2r42l7a740005**** |
| nodeIP |
string |
No |
The IP address of the node that triggered the event. |
10.1.xx.xx |
| eventType |
array |
No |
The event type. |
|
|
string |
No |
The event types. Separate multiple values with commas (,). Valid values:
|
Instance:InstanceFailure.Reboot:Executed |
|
| eventLevel |
array |
No |
The event level. |
|
|
string |
No |
The event levels. Separate multiple values with commas (,). Valid values:
|
INFO,WARN |
|
| eventCreateStartTime |
string |
No |
The start time for querying events by creation time. The value is a timestamp in milliseconds. |
1645596516000 |
| eventCreateEndTime |
string |
No |
The end time for querying events by creation time. The value is a timestamp in milliseconds. |
1645596516000 |
| eventExecuteStartTime |
string |
No |
The start time for querying events by execution time. The value is a timestamp in milliseconds. |
1645596516000 |
| eventExecuteEndTime |
string |
No |
The end time for querying events by execution time. The value is a timestamp in milliseconds. |
1645596516000 |
| eventFinashStartTime |
string |
No |
The start time for querying events by completion time. The value is a timestamp in milliseconds. |
1645596516000 |
| eventFinashEndTime |
string |
No |
The end time for querying events by completion time. The value is a timestamp in milliseconds. |
1645596516000 |
| page |
integer |
No |
The starting document offset. The value must be a non-negative number. Default value: 0. |
0 |
| size |
integer |
No |
The number of events to return. The value must be a non-negative number. Default value: 10. |
10 |
| eventCycleStatus |
array |
No |
The lifecycle status of the event. |
|
|
string |
No |
The lifecycle statuses of the event. Separate multiple values with commas (,). Valid values:
|
EXECUTED,FAILED |
|
| body |
array<object> |
No |
The request body parameters. |
|
|
object |
No |
The request object. |
||
| sortField |
string |
No |
The sort field for the returned results. Valid values:
Valid values:
|
eventCreateTime |
| desc |
boolean |
No |
Specifies whether to sort in descending order. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
D1A6830A-F59B-4E05-BFAC-9496C21DBBA7 |
| Headers |
object |
The response headers. |
|
| X-Total-Count |
integer |
The total number of records. |
15 |
| X-Total-Failed |
integer |
The total number of failures. |
2 |
| X-Total-Success |
integer |
The total number of successes. |
13 |
| Result |
array<object> |
The returned result. |
|
|
object |
The result object. |
||
| eventCreateTime |
string |
The event creation time in ISO 8601 format and UTC. |
2017-12-07T00:00:00Z |
| eventLevel |
string |
The event level. Valid values:
|
INFO |
| instanceId |
string |
The instance ID. |
es-cn-2r42l7a740005**** |
| eventFinashTime |
string |
The event completion time in ISO 8601 format and UTC. |
2017-12-07T00:00:00Z |
| eventCycleStatus |
string |
The event status. Valid values:
|
EXECUTED |
| regionId |
string |
The ID of the region where the event occurred. |
cn-hangzhou |
| nodeIP |
string |
The IP address of the node that generated the event. |
10.1.xx.xx |
| eventExecuteTime |
string |
The event execution time in ISO 8601 format and UTC. |
2017-12-07T00:00:00Z |
| eventType |
string |
The event type. Valid values:
|
ECS:AUTO_RESTART |
| ecsId |
string |
The ECS instance ID. |
i-2ze8s9cjdf2cv969**** |
Examples
Success response
JSON format
{
"RequestId": "D1A6830A-F59B-4E05-BFAC-9496C21DBBA7",
"Headers": {
"X-Total-Count": 15,
"X-Total-Failed": 2,
"X-Total-Success": 13
},
"Result": [
{
"eventCreateTime": "2017-12-07T00:00:00Z",
"eventLevel": "INFO",
"instanceId": "es-cn-2r42l7a740005****",
"eventFinashTime": "2017-12-07T00:00:00Z",
"eventCycleStatus": "EXECUTED",
"regionId": "cn-hangzhou",
"nodeIP": "10.1.xx.xx",
"eventExecuteTime": "2017-12-07T00:00:00Z",
"eventType": "ECS:AUTO_RESTART",
"ecsId": "i-2ze8s9cjdf2cv969****"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.