Menampilkan aturan peringatan yang dikonfigurasi untuk tugas sinkronisasi.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
integer |
No |
ID tugas tempat aturan peringatan dikonfigurasi. |
1000001 |
| PageNumber |
integer |
No |
Nomor halaman. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100. |
10 |
| DIAlarmRuleId |
integer |
No |
ID aturan peringatan. Jika Anda mengosongkan parameter ini, semua aturan peringatan tugas akan dikueri. |
34988 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. You can use the ID to query logs and troubleshoot issues. |
74C2FECD-5B3A-554A-BCF5-351A36DE9815 |
| PagingInfo |
object |
The pagination information. |
|
| TotalCount |
integer |
The total number of entries returned. |
90 |
| PageNumber |
integer |
The page number. Pages start from page 1. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| DIJobAlarmRules |
array<object> |
The alert rules. |
|
|
array<object> |
The details of an alert rule. |
||
| Id |
integer |
The ID of the alert rule. |
72402 |
| DIJobId |
integer |
The ID of the synchronization task. |
32594 |
| Description |
string |
The description of the alert rule. |
rule descrition |
| MetricType |
string |
The metric type in the alert rule. Valid values:
|
Heartbeat |
| Name |
string |
The name of the alert rule. |
rule_name |
| Enabled |
boolean |
Indicates whether the alert rule is enabled. Valid values: True and False. |
True |
| TriggerConditions |
array<object> |
The conditions that are used to trigger the alert rule. |
|
|
object |
The condition that is used to trigger the alert rule. |
||
| Severity |
string |
The severity level. Valid values:
|
Critical |
| Duration |
integer |
The time interval for alert calculation. Unit: minutes. |
1 |
| Threshold |
integer |
The alert threshold.
|
5 |
| DdlTypes |
array |
The types of DDL operations for which the alert rule takes effect. This parameter is returned only if the MetricType parameter is set to DdlReport. |
|
|
string |
The type of the DDL operation for which the alert rule takes effect. This parameter is returned only if the MetricType parameter is set to DdlReport. Valid values:
|
ALTERADDCOLUMN |
|
DdlReportTags
deprecated
|
array |
This parameter is deprecated and replaced by the DdlTypes parameter. |
|
deprecated
|
string |
This parameter is deprecated and replaced by the DdlTypes parameter. |
ALTERADDCOLUMN |
| NotificationSettings |
object |
The alert notification method and recipient settings. |
|
| NotificationChannels |
array<object> |
The alert notification methods. |
|
|
object |
The alert notification method. |
||
| Severity |
string |
The severity level. Valid values:
|
Critical |
| Channels |
array |
The alert notification methods. |
|
|
string |
The alert notification method. Valid values:
|
Ding |
|
| NotificationReceivers |
array<object> |
The settings of alert notification recipients. |
|
|
object |
The settings of alert notification recipients. |
||
| ReceiverType |
string |
The recipient type. Valid values: AliyunUid, DingToken, FeishuToken, and WebHookUrl. |
DingToken |
| ReceiverValues |
array |
The recipient.
|
|
|
string |
The recipient.
|
token1 |
|
| MuteInterval |
integer |
The duration of the alert suppression interval. Unit: minutes. |
5 |
InhibitionInterval
deprecated
|
integer |
This parameter is deprecated and replaced by the MuteInterval parameter. |
5 |
DIAlarmRuleId
deprecated
|
integer |
This parameter is deprecated. Use the Id parameter instead. |
72402 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-351A36DE9815",
"PagingInfo": {
"TotalCount": 90,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"Id": 72402,
"DIJobId": 32594,
"Description": "rule descrition",
"MetricType": "Heartbeat",
"Name": "rule_name",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Critical",
"Duration": 1,
"Threshold": 5,
"DdlTypes": [
"AlterAddColumn"
],
"DdlReportTags": [
"ALTERADDCOLUMN"
]
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Critical",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"MuteInterval": 5,
"InhibitionInterval": 5
},
"DIAlarmRuleId": 72402
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.