All Products
Search
Document Center

DataWorks:ListDataQualityAlertRules

Last Updated:Dec 19, 2025

Queries the list of data quality alert rules in a project.

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:ListDataQualityAlertRuleslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongYes

The project ID.

10001
DataQualityScanIdlongNo

The ID of the data quality monitor that the alert rule targets.

10001
SortBystringNo

The list of sorting fields. Supports fields such as last modified time and creation time. Format: "SortField+SortOrder (Desc/Asc)", where Asc is the default. Valid values:

  • CreateTime (Desc/Asc)
  • Id (Desc/Asc)
CreateTime Desc
PageNumberintegerYes

The page number of the results.

1
PageSizeintegerYes

The number of records to return on each page.

10

Response parameters

ParameterTypeDescriptionExample
object

The response.

RequestIdstring

The request ID.

0bc14115***159376359
PageInfoobject

Alert rule configurations.

TotalCountinteger

The total number of entries returned.

335
PageNumberinteger

The current page number.

1
PageSizeinteger

The number of records per page.

10
DataQualityAlertRulesarray<object>

The list of alert rule configurations.

DataQualityAlertRuleobject

Alert rule configurations.

Conditionstring

The alert conditions.

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

Monitored targets of the data quality alert rule.

Typestring

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

DataQualityScan
Idsarray

The list of monitored target IDs

Idlong

The ID of the monitored target.

7638999336
ProjectIdlong

The project ID.

59094
Idlong

The ID of the data quality monitor alert rule.

26433
Notificationobject

Alert notification configurations.

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
AliUid
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******
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.

  • Mail
  • Weixin
  • Feishu
  • Phone
  • Sms
  • Webhook
Sms

Examples

Sample success responses

JSONformat

{
  "RequestId": "0bc14115***159376359",
  "PageInfo": {
    "TotalCount": 335,
    "PageNumber": 1,
    "PageSize": 10,
    "DataQualityAlertRules": [
      {
        "Condition": "results.any { r -> r.status == 'fail' && r.rule.severity == 'High' }",
        "Target": {
          "Type": "DataQualityScan",
          "Ids": [
            7638999336
          ]
        },
        "ProjectId": 59094,
        "Id": 26433,
        "Notification": {
          "Receivers": [
            {
              "Extension": {
                "atAll": true
              },
              "ReceiverType": "AliUid",
              "ReceiverValues": [
                "https://oapi.dingtalk.com/robot/send?access_token=a30bae7******"
              ]
            }
          ],
          "Channels": [
            "Sms"
          ]
        }
      }
    ]
  }
}

Error codes

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