Queries a list of alert rules for a new-version synchronization task. The following type of task is supported: real-time data synchronization from a MySQL database to Hologres.
Operation description
You can configure alert rules only for tasks that can be used for real-time data synchronization.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DIJobId | long | Yes | The ID of the task with which the alert rules are associated. | 11260 |
PageNumber | long | No | The page number. Default value: 1. | 1 |
PageSize | long | No | The number of entries per page. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "74C2FECD-5B3A-554A-BCF5-351A36DE9815",
"DIAlarmRulePaging": {
"TotalCount": 2,
"PageNumber": 1,
"PageSize": 10,
"DIJobAlarmRules": [
{
"DIAlarmRuleId": 41998,
"DIJobId": 11260,
"Description": "",
"MetricType": "Heartbeat",
"Enabled": true,
"TriggerConditions": [
{
"Severity": "Warning",
"Duration": 15,
"Threshold": 5
}
],
"NotificationSettings": {
"NotificationChannels": [
{
"Severity": "Warning",
"Channels": [
"Ding"
]
}
],
"NotificationReceivers": [
{
"ReceiverType": "DingToken",
"ReceiverValues": [
"token1"
]
}
],
"InhibitionInterval": 5
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | - |
429 | Throttling.System | The DataWorks system is busy. Try again later. | - |
429 | Throttling.User | Your request is too frequent. Try again later. | - |
500 | InternalError.System | An internal system error occurred. Try again later. | - |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history