All Products
Search
Document Center

DataWorks:ListDIAlarmRules

Last Updated:Jan 12, 2026

Views alert rules configured for a synchronization task.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
JobIdlongNo

The ID of the task for which alert rules are configured.

1000001
PageNumberintegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page. Default value: 10. Maximum value: 100.

10
DIAlarmRuleIdlongNo

The ID of the alert rule. If you leave this parameter empty, all alert rules of the task are queried.

34988

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID. You can use the ID to query logs and troubleshoot issues.

74C2FECD-5B3A-554A-BCF5-351A36DE9815
PagingInfoobject

The pagination information.

TotalCountlong

The total number of entries returned.

90
PageNumberlong

The page number. Pages start from page 1.

1
PageSizelong

The number of entries per page.

10
DIJobAlarmRulesarray<object>

The alert rules.

DIJobAlarmRulesobject

The details of an alert rule.

Idlong

The ID of the alert rule.

72402
DIJobIdlong

The ID of the synchronization task.

32594
Descriptionstring

The description of the alert rule.

rule descrition
MetricTypestring

The metric type in the alert rule. Valid values:

  • Heartbeat
  • FailoverCount
  • Delay
  • DdlReport
  • ResourceUtilization
Heartbeat
Namestring

The name of the alert rule.

rule_name
Enabledboolean

Indicates whether the alert rule is enabled. Valid values: True and False.

True
TriggerConditionsarray<object>

The conditions that are used to trigger the alert rule.

TriggerConditionsobject

The condition that is used to trigger the alert rule.

Severitystring

The severity level. Valid values:

  • Warning
  • Critical
Critical
Durationlong

The time interval for alert calculation. Unit: minutes.

1
Thresholdlong

The alert threshold.

  • If the alert rule is for task status, no threshold is used.
  • If the alert rule is for failovers, the threshold is the number of failovers.
  • If the alert rule is for latency, the threshold is the latency duration, in seconds.
5
DdlTypesarray

The types of DDL operations for which the alert rule takes effect. This parameter is returned only if the MetricType parameter is set to DdlReport.

DdlTypesstring

The type of the DDL operation for which the alert rule takes effect. This parameter is returned only if the MetricType parameter is set to DdlReport. Valid values:

  • AlterAddColumn
  • AlterDropColumn
  • AlterRenameColumn
  • AlterRenameTable
  • AlterTableModify
  • DropTable
  • TruncateTable
ALTERADDCOLUMN
DdlReportTagsdeprecatedarray

This parameter is deprecated and replaced by the DdlTypes parameter.

DdlReportTagsdeprecatedstring

This parameter is deprecated and replaced by the DdlTypes parameter.

ALTERADDCOLUMN
NotificationSettingsobject

The alert notification method and recipient settings.

NotificationChannelsarray<object>

The alert notification methods.

NotificationChannelsobject

The alert notification method.

Severitystring

The severity level. Valid values:

  • Warning
  • Critical
Critical
Channelsarray

The alert notification methods.

Channelsstring

The alert notification method. Valid values:

  • Mail
  • Phone
  • Sms
  • Ding
Ding
NotificationReceiversarray<object>

The settings of alert notification recipients.

NotificationReceiverobject

The settings of alert notification recipients.

ReceiverTypestring

The recipient type. Valid values: AliyunUid, DingToken, FeishuToken, and WebHookUrl.

DingToken
ReceiverValuesarray

The recipient.

  • If the value of the ReceiverType parameter is AliyunUid, the value of this parameter is the Alibaba Cloud account ID of a user.
  • If the value of the ReceiverType parameter is DingToken, the value of this parameter is the token of a DingTalk chatbot.
ReceiverValuestring

The recipient.

  • If the value of the ReceiverType parameter is AliyunUid, the value of this parameter is the Alibaba Cloud account ID of a user.
  • If the value of the ReceiverType parameter is DingToken, the value of this parameter is the token of a DingTalk chatbot.
token1
MuteIntervallong

The duration of the alert suppression interval. Unit: minutes.

5
InhibitionIntervaldeprecatedlong

This parameter is deprecated and replaced by the MuteInterval parameter.

5
DIAlarmRuleIddeprecatedlong

This parameter is deprecated. Use the Id parameter instead.

72402

Examples

Sample success responses

JSONformat

{
  "RequestId": "74C2FECD-5B3A-554A-BCF5-351A36DE9815",
  "PagingInfo": {
    "TotalCount": 90,
    "PageNumber": 1,
    "PageSize": 10,
    "DIJobAlarmRules": [
      {
        "Id": 72402,
        "DIJobId": 32594,
        "Description": "rule descrition",
        "MetricType": "Heartbeat",
        "Name": "rule_name",
        "Enabled": true,
        "TriggerConditions": [
          {
            "Severity": "Critical",
            "Duration": 1,
            "Threshold": 5,
            "DdlTypes": [
              "ALTERADDCOLUMN"
            ],
            "DdlReportTags": [
              "ALTERADDCOLUMN"
            ]
          }
        ],
        "NotificationSettings": {
          "NotificationChannels": [
            {
              "Severity": "Critical",
              "Channels": [
                "Ding"
              ]
            }
          ],
          "NotificationReceivers": [
            {
              "ReceiverType": "DingToken",
              "ReceiverValues": [
                "token1"
              ]
            }
          ],
          "MuteInterval": 5,
          "InhibitionInterval": 5
        },
        "DIAlarmRuleId": 72402
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2025-01-09The response structure of the API has changedView Change Details
2025-01-06The response structure of the API has changedView Change Details