Views alert rules configured for a synchronization task.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
JobId | long | No | The ID of the task for which alert rules are configured. | 1000001 |
PageNumber | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
DIAlarmRuleId | long | No | The ID of the alert rule. If you leave this parameter empty, all alert rules of the task are queried. | 34988 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-351A36DE9815",
"PagingInfo": {
"TotalCount": 90,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"DIAlarmRuleId": 72402,
"DIJobId": 32594,
"Description": "rule descrition",
"MetricType": "Heartbeat",
"Name": "rule_name",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Critical",
"Duration": 1,
"Threshold": 5,
"DdlReportTags": [
"ALTERADDCOLUMN"
]
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Critical",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"InhibitionInterval": 5
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history