Mengkueri event notifikasi untuk satu atau beberapa tingkat urgensi dalam periode tertentu.
Deskripsi operasi
Before you call this operation, take note of the following items:
-
If you use Alibaba Cloud SDK or Database Autonomy Service (DAS) SDK to call this operation, we recommend that you use the latest version of the SDK.
-
If you use an SDK to call operations of DAS, you must set the region ID to cn-shanghai.
-
After your instance is connected to DAS, notification events such as snapshot capture are triggered if DAS detects changes to database monitoring metrics during anomaly detection.
You can query the details of notification events only if the autonomy center is enabled. For more information, see Autonomy center.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:GetAutonomousNotifyEventsInRange |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| __context |
string |
No |
Parameter cadangan. |
None |
| InstanceId |
string |
No |
ID instans. |
rm-18ff4a195d**** |
| StartTime |
string |
Yes |
Awal rentang waktu untuk dikueri. Atur parameter ini ke stempel waktu UNIX yang mewakili jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. |
1568269711000 |
| EndTime |
string |
Yes |
Akhir rentang waktu untuk dikueri. Atur parameter ini ke stempel waktu UNIX yang mewakili jumlah milidetik yang telah berlalu sejak 1 Januari 1970, 00:00:00 UTC. Catatan
Waktu akhir harus lebih lambat daripada waktu mulai. |
1568265711221 |
| NodeId |
string |
No |
ID node dalam kluster PolarDB for MySQL. Anda dapat memanggil operasi DescribeDBClusters untuk mengkueri ID node yang dikembalikan oleh parameter respons DBNodeId. Catatan
Anda harus menentukan ID node jika instans database Anda adalah kluster PolarDB for MySQL. |
r-x****-db-0 |
| EventContext |
string |
No |
Parameter cadangan. |
None |
| Level |
string |
No |
Tingkat urgensi event. Jika Anda menentukan parameter ini, parameter MinLevel tidak akan berlaku. Nilai valid:
|
Warn |
| MinLevel |
string |
No |
Tingkat urgensi minimum event. Nilai valid:
|
Notice |
| PageOffset |
string |
No |
Nomor halaman. Nilai harus berupa bilangan bulat positif. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah entri per halaman. |
30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Code |
string |
The HTTP status code returned. |
200 |
| Data |
object |
The detailed information, including the error codes and the number of entries that are returned. |
|
| Extra |
string |
The reserved parameter. |
None |
| List |
object |
||
| T |
array |
The detailed information, including the error codes and the number of entries that are returned. |
|
|
string |
The detailed information. |
"T": [] |
|
| PageNo |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| Total |
integer |
The total number of entries returned. |
4 |
| Message |
string |
The returned message. Catatan
If the request was successful, Successful is returned. If the request failed, an error message such as an error code is returned. |
Successful |
| RequestId |
string |
The request ID. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Data": {
"Extra": "None",
"List": {
"T": [
"\"T\": []"
]
},
"PageNo": 1,
"PageSize": 10,
"Total": 4
},
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.