All Products
Search
Document Center

DataWorks:GetDataQualityAlertRule

Last Updated:Dec 19, 2025

Queries the details of a data quality monitoring and alerting rule by alert rule ID.

Operation description

This API operation is available for all DataWorks editions.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dataworks:GetDataQualityAlertRuleget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
IdlongNo

The data quality monitoring alert rule ID.

113642

Response parameters

ParameterTypeDescriptionExample
object

The response.

RequestIdstring

The request ID.

0bc14115****159376359
DataQualityAlertRuleobject

Data quality monitoring alert rules.

Idlong

The ID of the data quality monitoring alert rule.

21045
Conditionstring

Alert conditions of the data quality monitoring alert rule.

results.any { r -> r.status == 'fail' && r.rule.severity == 'High' }
ProjectIdlong

The project ID.

90912
Targetobject

The monitored target of the data quality monitoring alert rule.

Typestring

The type of the monitored target. Only DataQualityScan is supported.

DataQualityScan
Idsarray

The list of monitored target IDs.

Idlong

The monitored target ID.

113647
Notificationobject

Alert notification settings.

Channelsarray

In Channels, you can set both Email and Sms at the same time. In other cases, only one channel can be set.

Channelstring

Alert channels.

  • Dingding
  • Mail
  • Weixin
  • Feishu
  • Phone
  • Sms
  • Webhook
Dingding
Receiversarray<object>

The alert recipients.

Receiverobject

The alert recipients.

Extensionstring

Additional configurations required for the alert recipients. When ReceiverType is DingdingUrl, you can set {"atAll":true} to mention all members.

{"atAll":true}
ReceiverTypestring

The type of alert recipients.

  • ShiftSchedule
  • WebhookUrl
  • FeishuUrl
  • TaskOwner
  • WeixinUrl
  • DingdingUrl
  • DataQualityScanOwner
  • AliUid
TaskOwner
ReceiverValuesarray

The value of alert recipients.

ReceiverValuestring

The value of alert recipients.

  • If ReceiverType is AliUid, enter the Alibaba Cloud account ID.
  • If ReceiverType is ShiftSchedule, enter the shift schedule ID.
  • If ReceiverType is WebhookUrl, DingdingUrl, FeishuUrl, or WeixinUrl, enter the corresponding URL.
https://oapi.dingtalk.com/robot/send?access_token=a30bae7******

Examples

Sample success responses

JSONformat

{
  "RequestId": "0bc14115****159376359",
  "DataQualityAlertRule": {
    "Id": 21045,
    "Condition": "results.any { r -> r.status == 'fail' && r.rule.severity == 'High' }",
    "ProjectId": 90912,
    "Target": {
      "Type": "DataQualityScan",
      "Ids": [
        113647
      ]
    },
    "Notification": {
      "Channels": [
        "Dingding"
      ],
      "Receivers": [
        {
          "Extension": {
            "atAll": true
          },
          "ReceiverType": "TaskOwner",
          "ReceiverValues": [
            "https://oapi.dingtalk.com/robot/send?access_token=a30bae7******"
          ]
        }
      ]
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.