Menanyakan informasi peringatan berdasarkan ID peringatan yang ditentukan oleh parameter AlertId.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AlertId |
string |
Yes |
ID peringatan. Anda dapat memanggil operasi ListAlertMessages untuk mendapatkan ID peringatan. |
1421 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
0000-ABCD-EFG**** |
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
| ErrorMessage |
string |
Pesan kesalahan. |
The specified parameters are invalid. |
| ErrorCode |
string |
Kode kesalahan. |
Invalid.Tenant.ConnectionNotExists |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Data |
object |
Informasi tentang peringatan yang dikembalikan. |
|
| RemindId |
integer |
ID aturan peringatan khusus yang dipicu. Parameter ini dikembalikan jika nilai parameter Source adalah REMIND_ALERT. |
1234 |
| AlertMessageStatus |
string |
Status pengiriman notifikasi. Nilai yang valid:
|
READY_TO_SEND |
| AlertUser |
string |
ID akun Alibaba Cloud yang digunakan oleh penerima peringatan. |
9527952795**** |
| AlertTime |
integer |
Waktu ketika peringatan dilaporkan. |
1553524393000 |
| AlertMethod |
string |
Metode notifikasi. Nilai yang valid:
|
SMS |
| Source |
string |
Tipe peringatan. Nilai yang valid:
|
REMIND_ALERT |
| Content |
string |
Konten peringatan. |
Node error |
| RemindName |
string |
Nama aturan peringatan khusus yang dipicu. Parameter ini dikembalikan jika nilai parameter Source adalah REMIND_ALERT. |
Custom monitoring rule name |
| AlertId |
integer |
ID peringatan. |
123 |
| Instances |
array<object> |
Instance yang memicu aturan peringatan khusus. Parameter ini dikembalikan jika nilai parameter Source adalah REMIND_ALERT. Parameter ini dibiarkan kosong jika nilai parameter Source bukan REMIND_ALERT. |
|
|
object |
Informasi tentang instance. |
||
| Status |
string |
The status of the instance. Valid values:
|
NOT_RUN |
| InstanceId |
integer |
The instance ID. |
12312**** |
| NodeName |
string |
The name of the node. |
Node name |
| NodeId |
integer |
The node ID. |
1234 |
| ProjectId |
integer |
The ID of the workspace to which the node belongs. |
1234 |
| Topics |
array<object> |
Peristiwa yang memicu peringatan. Parameter ini dikembalikan jika nilai parameter Source adalah TOPIC_ALERT. Parameter ini dibiarkan kosong jika nilai parameter Source bukan TOPIC_ALERT. |
|
|
object |
Informasi tentang peristiwa. |
||
| TopicName |
string |
The name of the event. |
error |
| InstanceId |
integer |
The ID of the instance that triggered the event. |
12345 |
| TopicId |
integer |
The event ID. |
412431 |
| TopicOwner |
string |
The ID of the Alibaba Cloud account used by the event owner. |
9527952795**** |
| NodeId |
integer |
The ID of the node that triggered the event. |
1234 |
| TopicStatus |
string |
The status of the event. Valid values:
|
FIXING |
| Nodes |
array<object> |
Node yang dikembalikan untuk sumber peringatan yang berbeda. Node yang membentuk loop dikembalikan jika nilai parameter Source adalah NODE_CYCLE_ALERT. Node yang terisolasi dikembalikan jika nilai parameter Source adalah NODE_LONELY_ALERT. |
|
|
object |
Informasi tentang node. |
||
| Owner |
string |
The ID of the Alibaba Cloud account used by the node owner. |
95279527952**** |
| NodeName |
string |
The name of the node. |
Node name |
| NodeId |
integer |
The node ID. |
1234 |
| ProjectId |
integer |
The ID of the workspace to which the node belongs. |
1234 |
| SlaAlert |
object |
Informasi dasar tentang instance baseline yang memicu peringatan. Parameter ini dikembalikan jika nilai parameter Source adalah SLA_ALERT. Parameter ini dibiarkan kosong jika nilai parameter Source bukan SLA_ALERT. |
|
| Status |
string |
The status of the baseline. Valid values:
|
SAFE |
| BaselineOwner |
string |
The ID of the Alibaba Cloud account used by the baseline owner. Multiple IDs are separated by commas (,). |
952795279**** |
| BaselineId |
integer |
The baseline ID. |
15142123 |
| BaselineName |
string |
The name of the baseline. |
Baseline name |
| Bizdate |
integer |
The data timestamp of the baseline instance. |
1553443200000 |
| ProjectId |
integer |
The ID of the workspace to which the baseline belongs. |
1234 |
| InGroupId |
integer |
The ID of the cycle of the baseline instance. Valid values of the ID of an hour-level cycle: [1,24]. The ID of a day-level cycle is 1. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0000-ABCD-EFG****",
"HttpStatusCode": 200,
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "Invalid.Tenant.ConnectionNotExists",
"Success": true,
"Data": {
"RemindId": 1234,
"AlertMessageStatus": "READY_TO_SEND",
"AlertUser": "9527952795****",
"AlertTime": 1553524393000,
"AlertMethod": "SMS",
"Source": "REMIND_ALERT",
"Content": "Node error",
"RemindName": "Custom monitoring rule name",
"AlertId": 123,
"Instances": [
{
"Status": "NOT_RUN",
"InstanceId": 0,
"NodeName": "Node name",
"NodeId": 1234,
"ProjectId": 1234
}
],
"Topics": [
{
"TopicName": "error",
"InstanceId": 12345,
"TopicId": 412431,
"TopicOwner": "9527952795****",
"NodeId": 1234,
"TopicStatus": "FIXING"
}
],
"Nodes": [
{
"Owner": "95279527952****",
"NodeName": "Node name",
"NodeId": 1234,
"ProjectId": 1234
}
],
"SlaAlert": {
"Status": "SAFE",
"BaselineOwner": "952795279****",
"BaselineId": 15142123,
"BaselineName": "Baseline name",
"Bizdate": 1553443200000,
"ProjectId": 1234,
"InGroupId": 1
}
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.