Creates a data quality monitoring alert rule in a project.
Operation description
DataWorks Basic Edition or a higher edition is required.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
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. |
|
|
integer |
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 elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0bc14115***159376359 |
| Id |
integer |
The user-defined rule ID returned after the monitoring rule is successfully created. |
1010543619 |
Examples
Success response
JSON format
{
"RequestId": "0bc14115***159376359",
"Id": 1010543619
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.