Mencantumkan event historis di Pusat Insiden.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeHistoryEvents |
none |
*DBCluster
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid:
|
10 |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikueri. Nilai default adalah 1. |
1 |
| ArchiveStatus |
string |
No |
Status event. Nilai valid:
|
All |
| EventCategory |
string |
No |
Kategori peristiwa sistem. Nilai valid:
|
Exception |
| EventType |
string |
No |
Tipe peristiwa sistem. Parameter ini hanya valid jika InstanceEventType.N tidak ditentukan. Nilai valid:
Catatan
Nilai parameter ini hanya dapat berupa peristiwa sistem instans, bukan peristiwa sistem disk. |
SystemFailure.Reboot |
| EventLevel |
string |
No |
Tingkat event. Nilai valid adalah:
|
high |
| EventStatus |
string |
No |
Status event. Nilai valid:
Catatan
Untuk mengkueri beberapa status, pisahkan dengan tanda koma (,). |
Succeed |
| ResourceType |
string |
No |
Tipe Sumber daya. Nilai valid:
|
Instance |
| InstanceId |
string |
No |
ID Sumber daya. Gunakan parameter ini untuk mengkueri Tugas pada Sumber daya tertentu. Untuk mengkueri Tugas pada beberapa Sumber daya, pisahkan ID Sumber daya dengan tanda koma (,). Anda dapat menentukan hingga 30 ID Sumber daya. Jika Anda mengosongkan parameter ini, semua Sumber daya akan dikueri. Catatan
Saat ini, hanya ID Kluster yang didukung. |
pc-2zed3m89cw*** |
| EventId |
string |
No |
ID event. |
5345398 |
| TaskId |
string |
No |
ID Tugas terjadwal yang ingin Anda batalkan. Catatan
|
32077515 |
| FromStartTime |
string |
No |
Awal rentang pengatur waktu untuk mengkueri Tugas berdasarkan Waktu mulai. Tugas yang dimulai setelah waktu ini akan dikueri. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC. Anda dapat mengkueri data dari 30 hari terakhir. Jika waktu yang ditentukan lebih dari 30 hari yang lalu, sistem akan secara otomatis mengaturnya ke 30 hari yang lalu. |
2025-01-02T11:31:03Z |
| ToStartTime |
string |
No |
Akhir rentang pengatur waktu untuk mengkueri Tugas berdasarkan Waktu mulai. Tugas yang dimulai sebelum waktu ini akan dikueri. Tentukan waktu dalam standar ISO 8601 dengan format |
2025-01-03T12:31:03Z |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
rg-********** |
| RegionId |
string |
No |
ID Wilayah. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| PageNumber |
integer |
The page number of the returned page. The default value is 1. |
1 |
| RequestId |
string |
The request ID. |
EB07CFF0-D8A4-5C76-AED7-D00E26FC2*** |
| PageSize |
integer |
The number of entries returned per page. Valid values:
|
30 |
| TotalCount |
integer |
The total number of entries in the list. |
7 |
| Items |
array<object> |
The list of events. |
|
|
array<object> |
The list of events. |
||
| Id |
string |
The task ID. |
123 |
| Region |
string |
The ID of the region where the task is located. |
cn-hangzhou |
| Source |
string |
The event source. |
loanBill |
| Specversion |
string |
The database version. |
8.0 |
| Subject |
string |
The name of the pending event. |
QiTian |
| Time |
string |
The runtime of the query task. Unit: seconds (s). |
1758680209206 |
| Type |
string |
The event type. |
host |
| Data |
object |
The data overview. |
|
| EventType |
string |
The type of the system event. Valid values:
|
SystemFailure.Delete |
| EventId |
string |
The event ID. |
600324 |
| CmsProduct |
string |
The type of the Alibaba Cloud service for the application group. Valid values:
|
web |
| DbType |
string |
The database type. |
mysql |
| DetailImpact |
string |
This parameter is used for pagination. |
1 |
| DetailReason |
string |
The details of the instance operation. |
xxxx |
| EndTime |
string |
The end of the query time range. The end time must be later than the start time. The interval between the start time and the end time must be within 24 hours. The time is in the |
2025-12-24T02:24:00Z |
| EventCategory |
string |
The category of the system event. Valid values:
|
Exception |
| EventCode |
string |
The event code. |
de_aamexg3015 |
| EventDetail |
string |
The event details. |
xxxx |
| EventImpact |
string |
An overview of the event's impact. |
xxxx |
| EventLevel |
string |
The event level. Valid values:
|
INFO |
| EventReason |
string |
The source of the event operation. |
xxxxx |
| EventStatus |
string |
The event status. Valid values:
|
Inquiring |
| GmtCreated |
string |
The creation time. |
2025-07-15T14:53:06+08:00 |
| GmtModified |
string |
The update time. |
2025-01-07T15:10:32+08:00 |
| HandleStatus |
string |
The processing status. |
done |
| HasLifeCycle |
integer |
Indicates whether a lifecycle exists. |
false |
| InstanceId |
string |
The instance ID. |
pc-2ze150h1p29t*** |
| InstanceName |
string |
The instance name. |
dhimgsearch |
| IsClosed |
integer |
Indicates whether the event is successfully closed. Valid values:
|
1 |
| Product |
string |
The product name. |
polardb |
| RegionId |
string |
The region ID. |
cn-beijing |
| ResourceType |
string |
The resource type. Valid values:
|
Host |
| SourceType |
string |
The type of the source data. |
loanBill |
| StartTime |
string |
The start of the query time range. The time is in the |
2025-02-27T02:00:00Z |
| Uid |
string |
The ID of the user to whom the resource belongs. |
1540497309282125 |
Contoh
Respons sukses
JSONformat
{
"PageNumber": 1,
"RequestId": "EB07CFF0-D8A4-5C76-AED7-D00E26FC2***",
"PageSize": 30,
"TotalCount": 7,
"Items": [
{
"Id": "123",
"Region": "cn-hangzhou",
"Source": "loanBill",
"Specversion": "8.0",
"Subject": "QiTian",
"Time": "1758680209206",
"Type": "host",
"Data": {
"EventType": "SystemFailure.Delete",
"EventId": "600324",
"CmsProduct": "web",
"DbType": "mysql",
"DetailImpact": "1",
"DetailReason": "xxxx",
"EndTime": "2025-12-24T02:24:00Z",
"EventCategory": "Exception",
"EventCode": "de_aamexg3015",
"EventDetail": "xxxx",
"EventImpact": "xxxx",
"EventLevel": "INFO",
"EventReason": "xxxxx",
"EventStatus": "Inquiring",
"GmtCreated": "2025-07-15T14:53:06+08:00",
"GmtModified": "2025-01-07T15:10:32+08:00",
"HandleStatus": "done",
"HasLifeCycle": 0,
"InstanceId": "pc-2ze150h1p29t***",
"InstanceName": "dhimgsearch",
"IsClosed": 1,
"Product": "polardb",
"RegionId": "cn-beijing",
"ResourceType": "Host",
"SourceType": "loanBill",
"StartTime": "2025-02-27T02:00:00Z",
"Uid": "1540497309282125"
}
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.