All Products
Search
Document Center

Data Transmission Service:Subscribe to event notifications

Last Updated:Mar 28, 2026

Data Transmission Service (DTS) integrates with CloudMonitor — a service that monitors Internet applications and Alibaba Cloud resources — to send alert notifications when task events occur. Configure a subscription policy to get notified of task anomalies, recoveries, and planned maintenance events so you can respond quickly when issues arise.

Notification channels

CloudMonitor routes event notifications through the following channels:

  • Email, SMS, or DingTalk chatbot — direct notification to on-call contacts

  • Push to a service endpoint — automated handling via Simple Message Queue (formerly MNS), Function Compute, Simple Log Service, or a callback URL

Prerequisites

Before you begin, ensure that you have:

Create a subscription policy

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Event Center > Event Subscription.

    Note

    If the Event Subscription page is not displayed, see Set alert rules for DTS tasks in the CloudMonitor console.

    If the Event Subscription page is not displayed, see Set alert rules for DTS tasks in the CloudMonitor console.
  3. On the Subscription Policy tab, click Create Subscription Policy.

  4. On the Create Subscription Policy page, set the parameters based on the subscription type: For all other parameters, see Subscription policy parameters.

    • System Events (recommended for task status alerts): Set Subscription Type to System Events, then set Products to Data Transmission Service in the Subscription Scope section. > Note: For a list of system events that DTS supports, see System events.

    • Threshold Events (for metric-based alerts): Set Subscription Type to Threshold Events, then search for DTS in the Product Classification section and select the relevant option.

  5. Click Submit.

To view, modify, or delete a subscription policy, see Manage event subscription policies (recommended).

Debug an event subscription

Use the debug feature to send a test notification and verify that the alert delivery chain is working.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Event Center > Event Subscription.

    If the Event Subscription page is not displayed, see Set alert rules for DTS tasks in the CloudMonitor console.
  3. On the Subscription Policy tab, click Debug Event Subscription.

  4. In the Create Event Debugging panel, configure the debug event:

    1. Set Products to Data Transmission Service.

    2. Select a Name from the list. > Note: > - Name corresponds to the NameDesc parameter of the system event. > - The Task Relocation Due To Underlying Hardware Upgrade series and Instance Task Latency events cannot be debugged.

    3. Review the debug content that CloudMonitor generates automatically in JSON format. Modify the fields as needed. For field descriptions and examples, see Event content examples below.

  5. Click OK.

CloudMonitor sends a test alert notification to all contacts in the subscription policy based on the notification methods specified. The Operation successful message confirms that the test was triggered.

Event content examples

DTS publishes three categories of events, each with a different JSON structure. The sections below describe the fields and provide examples for each category.

Synchronization, migration, and tracking tasks

These events follow a flat JSON structure with a small set of fields.

Parameters

ParameterDescriptionExample value
productThe cloud product that the event belongs to (Product).DTS
resourceIdThe affected resource. The value starts with acs:dts: and includes the instance region, Alibaba Cloud account ID, and instance ID.acs:dts:cn-hangzhou:135218574272**:instance/dtsb1gx8vo2265**
levelThe severity level of the event (Level): CRITICAL for anomalies, INFO for recoveries.INFO
instanceNameThe name of the affected instance, in the format <Task ID>/<Instance Name>.f1es8k10220****/testsync
regionIdThe region where the instance runs.cn-hangzhou
nameThe system event name (Name).sync_job_restore
contentThe event content. For tracking task recovery events, this field contains a nested object with a msg key.testcontent
statusThe event status (Status): failed for anomalies, restore for recoveries.restore

Examples

The table below shows paired examples for each task type — one for the anomaly event and one for the recovery event.

EventContent example
Synchronization task abnormal{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsb1gx8vo2265","level":"CRITICAL","instanceName":"f1es8k10220**/testsync","regionId":"cn-hangzhou","name":"sync_job_abnormal","content":"testcontent","status":"failed"}
Synchronization task recovered{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsb1gx8vo2265","level":"INFO","instanceName":"f1es8k10220**/testsync","regionId":"cn-hangzhou","name":"sync_job_restore","content":"testcontent","status":"restore"}
Migration task abnormal{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsb1ah8a7x259","level":"CRITICAL","instanceName":"q2rb8x0022p**/testmigrate","regionId":"cn-hangzhou","name":"migration_job_abnormal","content":"testcontent","status":"failed"}
Migration task recovered{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsb1ah8a7x259","level":"INFO","instanceName":"q2rb8x0022p**/testmigrate","regionId":"cn-hangzhou","name":"migration_job_restore","content":"testcontent","status":"restore"}
Tracking task abnormal{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsktuw8d7n252","level":"CRITICAL","instanceName":"qgkm8okq25q**/testsubscribe","regionId":"cn-hangzhou","name":"subscribe_job_abnormal","content":"testcontent","status":"failed"}
Tracking task recovered{"product":"DTS","resourceId":"acs:dts:cn-hangzhou:135216572282**:instance/dtsktuw8d7n252","level":"INFO","instanceName":"qgkm8okq25q**/testsubscribe","regionId":"cn-hangzhou","name":"subscribe_job_restore","content":{"msg":"testcontent"},"status":"restore"}

For the full formatted JSON, expand each event below.

<details> <summary>Synchronization task abnormal</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsb1gx8vo2265****",
    "level": "CRITICAL",
    "instanceName": "f1es8k10220****/testsync",
    "regionId": "cn-hangzhou",
    "name": "sync_job_abnormal",
    "content": "testcontent",
    "status": "failed"
}

</details>

<details> <summary>Synchronization task recovered</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsb1gx8vo2265****",
    "level": "INFO",
    "instanceName": "f1es8k10220****/testsync",
    "regionId": "cn-hangzhou",
    "name": "sync_job_restore",
    "content": "testcontent",
    "status": "restore"
}

</details>

<details> <summary>Migration task abnormal</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsb1ah8a7x259****",
    "level": "CRITICAL",
    "instanceName": "q2rb8x0022p****/testmigrate",
    "regionId": "cn-hangzhou",
    "name": "migration_job_abnormal",
    "content": "testcontent",
    "status": "failed"
}

</details>

<details> <summary>Migration task recovered</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsb1ah8a7x259****",
    "level": "INFO",
    "instanceName": "q2rb8x0022p****/testmigrate",
    "regionId": "cn-hangzhou",
    "name": "migration_job_restore",
    "content": "testcontent",
    "status": "restore"
}

</details>

<details> <summary>Tracking task abnormal</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsktuw8d7n252****",
    "level": "CRITICAL",
    "instanceName": "qgkm8okq25q****/testsubscribe",
    "regionId": "cn-hangzhou",
    "name": "subscribe_job_abnormal",
    "content": "testcontent",
    "status": "failed"
}

</details>

<details> <summary>Tracking task recovered</summary>

{
    "product": "DTS",
    "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsktuw8d7n252****",
    "level": "INFO",
    "instanceName": "qgkm8okq25q****/testsubscribe",
    "regionId": "cn-hangzhou",
    "name": "subscribe_job_restore",
    "content": {
        "msg": "testcontent"
    },
    "status": "restore"
}

</details>

Instance tasks

Instance task events have a more complex structure. The event payload includes an outer envelope with standard fields and a nested content object that carries detailed event data.

The level for all instance task exception events is always WARN. The status field indicates whether the exception is ongoing (Executing) or resolved (Executed).

Parameters

Outer fields

ParameterDescriptionExample value
productThe cloud product that the event belongs to (Product).DTS
resourceIdThe affected resource. The value starts with dts: and includes the instance region, Alibaba Cloud account ID, and instance ID.dts:cn-hangzhou:135216572282**:instance/dtsb1gx8vo2265**
levelThe severity level (Level). Always WARN for instance task exceptions.WARN
instanceNameThe name of the affected instance, in the format <Task ID>/<Instance Name>.f1es8k10220****/testsync
regionIdThe region where the instance runs.cn-hangzhou
nameThe system event name (Name).Instance:JobStatus.Abnormal:Executing
statusThe event status (Status): Executing for ongoing exceptions, Executed for recovered exceptions.Executed

`content` object fields

ParameterDescriptionExample value
eventIdThe ID of the system event.37d28e238b151a0d44dfdf1f2153****
publishTimeThe time when the event was published (UTC+8).2025-08-26T14:40:05+08:00
reasonThe reason why the event was triggered.testreason
productThe cloud product that the event belongs to.dts
instanceCommentThe ID of the affected instance.dtsb1gx8vo2265****
instanceIdThe ID of the affected instance.dtsb1gx8vo2265****
instanceTypeThe resource type: Instance, Host, or User.Instance
eventTypeThe event category (EventType). Always Exception for instance task exceptions.Exception
extraAdditional event details. Contains eventTime, cloudEvent, and region.

`content.extra.cloudEvent.data` fields

ParameterDescriptionExample value
gmtModifiedThe time when the event record was last updated (UTC).2025-08-26T06:39:56Z
gmtCreatedThe time when the event record was created (UTC).2025-08-26T06:39:37Z
eventCategoryThe event category (EventType). Always Exception for instance task exceptions.Exception
detailReasonThe detailed reason why the event was triggered.****
uidThe Alibaba Cloud account ID.135216572282****
cmsProductThe cloud product that the event belongs to.DTS
instanceIdThe ID of the affected instance.dtsb1gx8vo2265****
eventLevelThe severity level (Level). Always WARN for instance task exceptions.WARN
handleStatusThe processing status of the event.None
startTimeThe start time of the event (UTC).2025-08-26T06:38:17Z
endTimeThe end time of the event (UTC).2025-08-26T06:38:17Z
detailImpactA pagination parameter.-
eventIdThe ID of the event.e-0mqwjyhomzrb32****
productThe cloud product that the event belongs to.dts
dbTypeThe database type.****
hasLifeCycleWhether the event has a lifecycle: 0 (no lifecycle) or 1 (has lifecycle).0
eventTypeThe event type.JobStatus
eventReasonThe source of the event.JobStatus.Abnormal
eventImpactThe impact of the event.Abnormal
mainEventIdThe ID of the main event.e-0mqwjyhomzrb3i****
eventCodeThe event code, which matches the name field value.Instance:JobStatus.Abnormal:Executing
isClosedWhether the event is closed: 0 (closed) or 1 (open).1
regionIdThe region where the instance runs.cn-hangzhou
sourceTypeThe source data type.DBaaS
eventStatusThe event status: Executing (ongoing exception) or Executed (recovered).Executed
eventDetailDetails of the event, including task type (dts_task_type), task ID (dts_job_id), task status (job_state), error code (err_code), and error details (err_msg_detail, message).****
resourceTypeThe resource type: Instance, Host, or User.Instance

CloudEvents envelope fields (inside `content.extra.cloudEvent`)

ParameterDescriptionExample value
subjectThe affected resource. The value starts with acs:dts:.acs*nce/dts*65u
specversionThe CloudEvents protocol version.1.0
timeThe time when the event was created (UTC).2025-08-25T20:59:32Z
sourceThe event source.acs:dts:dts
idThe CloudEvents event ID.e-0mqwjyhomzrb32****
regionThe region where the instance runs.cn-hangzhou
typeThe event type.Instance:JobStatus.Abnormal

Examples

<details> <summary>Instance task exception started</summary>

{
    "product": "DTS",
    "resourceId": "dts:cn-hangzhou:135216572282****:instance/dtsb1gx8vo2265****",
    "level": "WARN",
    "instanceName": "f1es8k10220****/testsync",
    "regionId": "cn-hangzhou",
    "name": "Instance:JobStatus.Abnormal:Executing",
    "content": {
        "eventId": "f88***4b3",
        "publishTime": "2025-08-26T05:03:38+08:00",
        "reason": "testreason",
        "product": "***",
        "instanceComment": "dts***b9n",
        "instanceId": "dts***b9n",
        "extra": {
            "eventTime": "2025-08-26T05:02:13+08:00",
            "cloudEvent": {
                "data": {
                    "gmtModified": "202***25Z",
                    "eventCategory": "Ex***on",
                    "gmtCreated": "202***25Z",
                    "detailReason": "***",
                    "uid": "125***870",
                    "cmsProduct": "***",
                    "instanceId": "dts***b9n",
                    "eventLevel": "WA***",
                    "handleStatus": "No***",
                    "startTime": "2025-08-25T21:02:13Z",
                    "detailImpact": "***",
                    "eventId": "e-0***ypw",
                    "product": "***",
                    "dbType": "***",
                    "hasLifeCycle": 123456,
                    "eventType": "Jo***us",
                    "eventReason": "Job***mal",
                    "eventImpact": "Ab***al",
                    "mainEventId": "e-0***cua",
                    "eventCode": "Ins***ing",
                    "isClosed": 123456,
                    "regionId": "cn-***hou",
                    "sourceType": "DB***",
                    "eventStatus": "Ex***ng",
                    "endTime": "2025-08-25T21:02:13Z",
                    "eventDetail": "****",
                    "resourceType": "In***ce"
                },
                "subject": "acs***nce/dts***b9n",
                "specversion": "***",
                "time": "2025-08-25T21:03:25Z",
                "source": "acs***dts",
                "id": "e-0***ypw",
                "region": "cn-***hou",
                "type": "Ins***mal"
            },
            "region": "cn-hangzhou"
        },
        "instanceType": "In***ce",
        "eventType": "Ex***on"
    },
    "status": "Executing"
}

</details>

<details> <summary>Instance task exception recovered</summary>

{
    "product": "DTS",
    "resourceId": "dts:cn-hangzhou:135216572282****:instance/dtsb1gx8vo2265****",
    "level": "WARN",
    "instanceName": "f1es8k10220****/testsync",
    "regionId": "cn-hangzhou",
    "name": "Instance:JobStatus.Abnormal:Executed",
    "content": {
        "eventId": "b9b***3ae",
        "publishTime": "2025-08-26T04:59:37+08:00",
        "reason": "testreason",
        "product": "dts",
        "instanceComment": "dts***65u",
        "instanceId": "dts***65u",
        "extra": {
            "eventTime": "2025-08-26T04:21:37+08:00",
            "cloudEvent": {
                "data": {
                    "gmtModified": "202***32Z",
                    "eventCategory": "Ex***on",
                    "gmtCreated": "202***32Z",
                    "detailReason": "***",
                    "uid": "113***735",
                    "cmsProduct": "***",
                    "instanceId": "dts***65u",
                    "eventLevel": "WA***",
                    "handleStatus": "No***",
                    "startTime": "2025-08-25T20:21:37Z",
                    "detailImpact": "***",
                    "eventId": "e-0***iue",
                    "product": "***",
                    "dbType": "***",
                    "hasLifeCycle": 123456,
                    "eventType": "Jo***us",
                    "eventReason": "Job***mal",
                    "eventImpact": "Ab***al",
                    "mainEventId": "e-0***gd8",
                    "eventCode": "Ins***ted",
                    "isClosed": 123456,
                    "regionId": "cn***ng",
                    "sourceType": "DB***",
                    "eventStatus": "Ex***ed",
                    "endTime": "2025-08-25T20:21:37Z",
                    "eventDetail": "****",
                    "resourceType": "In***ce"
                },
                "subject": "acs***nce/dts***65u",
                "specversion": "***",
                "time": "2025-08-25T20:59:32Z",
                "source": "acs***dts",
                "id": "e-0***iue",
                "region": "cn***ng",
                "type": "Ins***mal"
            },
            "region": "cn-hangzhou"
        },
        "instanceType": "In***ce",
        "eventType": "Ex***on"
    },
    "status": "Executed"
}

</details>

Task relocation due to underlying hardware upgrade

These events are triggered when DTS relocates a task during planned infrastructure maintenance. The instanceName field uses the format <Instance ID>/<Instance Name> (not <Task ID>/<Instance Name> as in other task types).

The status field tracks the full lifecycle of the relocation: ScheduledExecutingExecuted (or Failed, Canceled, ToDealt).

The Task Relocation Due To Underlying Hardware Upgrade series cannot be debugged using the debug feature.

Parameters

ParameterDescriptionExample value
productThe cloud product that the event belongs to (Product).DTS
userIdThe Alibaba Cloud account ID.135216572282****
levelThe severity level (Level): CRITICAL for Scheduled, Failed, and ToDealt; INFO for Executing, Executed, and Canceled.INFO
resourceIdThe affected resource. The value starts with acs:dts:.acs:dts:cn-hangzhou:135216572282**:instance/dtsmq5j38bn28n**
instanceNameThe name of the affected instance, in the format <Instance ID>/<Instance Name>.dtsmq5j38bn28n****/test
dryRunWhether this is a dry run: true (dry run only) or false (normal request).false
verThe CloudEvents protocol version.1.0
traceThe request ID.54ee8594-5ec4-408a-93ce-c8fbb433****
nameThe system event name (Name).Instance:SystemMaintenance.Shift:Executed
regionIdThe region where the instance runs.cn-hangzhou
statusThe event status (Status): Scheduled, Executing, Executed, Failed, Canceled, or ToDealt (pending customer action).Executed
timeThe time when the event was generated.Aug 22, 2025 5:39:51 PM
contentThe event content. May include the task or instance name (jobName), estimated running time (innerScheduleTime), instance ID (instanceId), and instance region (region).testcontent

Examples

<details> <summary>Scheduled</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "CRITICAL",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "54ee8594-5ec4-408a-93ce-c8fbb433****",
  "name": "Instance:SystemMaintenance.Shift:Scheduled",
  "regionId": "cn-hangzhou",
  "status": "Scheduled",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

<details> <summary>Executing</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "INFO",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "55ee8594-5ec4-408a-93ce-c8fac56****",
  "name": "Instance:SystemMaintenance.Shift:Executing",
  "regionId": "cn-hangzhou",
  "status": "Executing",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

<details> <summary>Completed</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "INFO",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "56ee8594-5ec4-408a-93ce-c8fbac58****",
  "name": "Instance:SystemMaintenance.Shift:Executed",
  "regionId": "cn-hangzhou",
  "status": "Executed",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

<details> <summary>Failed</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "CRITICAL",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "57ee8594-5ec4-408a-93ce-c8fac59****",
  "name": "Instance:SystemMaintenance.Shift:Failed",
  "regionId": "cn-hangzhou",
  "status": "Failed",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

<details> <summary>Canceled</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "INFO",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "54ee8594-5ec4-408a-93ce-c8fbb433****",
  "name": "IInstance:SystemMaintenance.Shift:Canceled",
  "regionId": "cn-hangzhou",
  "status": "Canceled",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

<details> <summary>Pending customer action</summary>

{
  "product": "DTS",
  "userId": "135216572282****",
  "level": "CRITICAL",
  "resourceId": "acs:dts:cn-hangzhou:135216572282****:instance/dtsmq5j38bn28n****",
  "instanceName": "dtsmq5j38bn28n****/testinstance",
  "dryRun": false,
  "ver": "1.0",
  "trace": "54ee8594-5ec4-408a-93ce-c8fbb433****",
  "name": "Instance:SystemMaintenance.Shift:ToDealt",
  "regionId": "cn-hangzhou",
  "status": "ToDealt",
  "time": "Aug 22, 2025 5:39:51 PM",
  "content": "testcontent"
}

</details>

What's next