Queries historical events from the Event Center for ApsaraDB for Redis instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribeHistoryEvents |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
cn-beijing |
| PageSize |
integer |
No |
The number of records to return on each page. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| ArchiveStatus |
string |
No |
The archive status of the event. Valid values:
|
Archived |
| EventCategory |
string |
No |
The system event category. Valid values:
|
Exception |
| EventType |
string |
No |
The system event type. This parameter takes effect only when InstanceEventType.N is not specified. Valid values:
Note
For more information about event types, see Overview of system events. The values of this parameter are applicable only to instance system events, but not to disk system events. |
SystemFailure.Reboot |
| EventLevel |
string |
No |
The level of the event. Valid values:
|
INFO |
| EventStatus |
string |
No |
The status of the event. Valid values:
Note
Separate multiple states with commas (,). |
Scheduled |
| ResourceType |
string |
No |
The type of the resource. Valid values:
Note
If you do not specify this parameter, events of all resource types are queried. |
Instance |
| InstanceId |
string |
No |
The instance ID. |
r-bp1zxszhcgatnx**** |
| EventId |
string |
No |
The event ID. |
5345398 |
| TaskId |
string |
No |
The task IDs. |
578678678 |
| FromStartTime |
string |
No |
The beginning of the time range to query. The time must be in the ISO 8601 format of yyyy-MM-ddTHH:mm:ssZ in UTC. |
2022-01-02T11:31:03Z |
| ToStartTime |
string |
No |
The end of the time range to query. The time must be in the ISO 8601 format of yyyy-MM-ddTHH:mm:ssZ in UTC. Only events with a start time earlier than or equal to this value are returned. |
2022-02-02T11:31:03Z |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-acfnuslkubs**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
27B911BF-4E17-5F8A-A932-79DF2D3F**** |
| PageSize |
integer |
The number of entries per page. |
20 |
| TotalCount |
integer |
The total number of events. |
430 |
| Items |
array<object> |
A list of events. |
|
|
array<object> |
The queried event. |
||
| Id |
string |
The ID of the task. |
4309 |
| Region |
string |
The region ID. |
cn-hanghzou |
| Source |
string |
The source of the event. |
loanBill |
| Specversion |
string |
The database engine version. |
8.0 |
| Subject |
string |
The name of the pending event. |
Qitian |
| Time |
string |
The amount of time that has elapsed from the start time of the query. Unit: seconds. |
1734919325126 |
| Type |
string |
The type of the event. |
host |
| Data |
object |
The data returned. |
|
| EventType |
string |
The type of the system event. Valid values:
|
StatusNotification |
| EventId |
string |
The ID of the event. |
669036 |
| CmsProduct |
string |
The cloud service type of the application group. Valid values:
|
web |
| DbType |
string |
The database type. |
redis |
| DetailImpact |
string |
The pagination parameter. |
1 |
| DetailReason |
string |
The details of the instance operation. |
xxxx |
| EndTime |
string |
The time when the alert was closed. |
2023-03-06T11:46:01Z |
| EventCategory |
string |
The system event category. Valid values:
|
Exception |
| EventCode |
string |
The event code. |
ENT000014 |
| EventDetail |
string |
The event details. |
xxxxx |
| EventImpact |
string |
The event impact. |
xxxxx |
| EventLevel |
string |
The level of the event. Valid values:
|
INFO |
| EventReason |
string |
The event source. |
xxxxx |
| EventStatus |
string |
The status of the event. Valid values:
|
Succeed |
| GmtCreated |
string |
The time when the event was created. |
2024-12-13 05:34:23 |
| GmtModified |
string |
The time when the event was updated. |
2025-03-05 10:41:59 |
| HandleStatus |
string |
The status of the event. Valid values: |
done |
| HasLifeCycle |
integer |
Indicates whether the event has a lifecycle. |
false |
| InstanceId |
string |
The ID of the instance. |
r-bp15kjsoovqjam**** |
| InstanceName |
string |
The instance name. |
normandy |
| IsClosed |
integer |
Indicates whether the event is closed. Valid values:
|
0 |
| Product |
string |
The name of the product. |
kvstore |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| ResourceType |
string |
The resource type of the instance. Valid values:
|
Instance |
| SourceType |
string |
The type of the source data. |
MSE |
| StartTime |
string |
The start time of the event. |
2025-09-30T21:13Z |
| Uid |
string |
The ID of the user who owns the resources. |
15532817595***** |
Examples
Success response
JSON format
{
"PageNumber": 1,
"RequestId": "27B911BF-4E17-5F8A-A932-79DF2D3F****",
"PageSize": 20,
"TotalCount": 430,
"Items": [
{
"Id": "4309",
"Region": "cn-hanghzou",
"Source": "loanBill",
"Specversion": "8.0",
"Subject": "Qitian",
"Time": "1734919325126",
"Type": "host",
"Data": {
"EventType": "StatusNotification",
"EventId": "669036",
"CmsProduct": "web",
"DbType": "redis",
"DetailImpact": "1",
"DetailReason": "xxxx",
"EndTime": "2023-03-06T11:46:01Z\n",
"EventCategory": "Exception",
"EventCode": "ENT000014\n",
"EventDetail": "xxxxx",
"EventImpact": "xxxxx\n",
"EventLevel": "INFO",
"EventReason": "xxxxx",
"EventStatus": "Succeed",
"GmtCreated": "2024-12-13 05:34:23",
"GmtModified": "2025-03-05 10:41:59",
"HandleStatus": "done",
"HasLifeCycle": 0,
"InstanceId": "r-bp15kjsoovqjam****",
"InstanceName": "normandy",
"IsClosed": 0,
"Product": "kvstore",
"RegionId": "cn-hangzhou",
"ResourceType": "Instance",
"SourceType": "MSE",
"StartTime": "2025-09-30T21:13Z",
"Uid": "15532817595*****"
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.