Creates a data quality monitoring alert rule in a project.
Operation description
This API operation is available for all DataWorks editions.
Debugging
Authorization information
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| ProjectId | long | Yes | The project ID. | 10001 |
| Condition | string | Yes | The alert condition of the data quality monitoring rule. | results.any { r -> r.status == 'fail' && r.rule.severity == 'High' } |
| Target | object | Yes | The monitored target of the data quality monitoring rule. | |
| Type | string | Yes | The type of the monitored target. Only DataQualityScan is supported. | DataQualityScan |
| Ids | array | Yes | The list of monitored target IDs. Currently, only one ID can be set. | |
| long | Yes | The ID of the monitored target. | 113646 | |
| Notification | object | Yes | The list of alert channels. | |
| Channels | array | Yes | The list of alert channels. You can set both | |
| string | Yes | Alert channels.
| Sms | |
| Receivers | array<object> | Yes | The alert recipients. | |
| object | Yes | The alert recipients. | ||
| Extension | string | No | Additional configurations required for the alert recipients. When ReceiverType is DingdingUrl, you can set | {"atAll":true} |
| ReceiverType | string | Yes | The type of alert recipients.
| TaskOwner |
| ReceiverValues | array | No | The value of alert recipients. | |
| string | No | The value of alert recipients.
| https://oapi.dingtalk.com/robot/send?access_token=a30bae7****** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "0bc14115***159376359",
"Id": 1010543619
}Error codes
For a list of error codes, visit the Service error codes.
