This topic describes DataWorks event types, message formats, and field meanings. Use this document to quickly find and query information about event lists and message formats.
Introduction
In DataWorks, events are classified as standard events or extension point events based on whether they can create a checkpoint within DataWorks and whether they can return processing results after being subscribed to by a self-managed service.
-
Standard events: You can subscribe to these event messages, but they cannot block operations inside DataWorks. Subscribe to these events using OpenEvent. For more information, see OpenEvent.
-
Extension point events: After subscribing to these event messages, you can customize the response to event messages using the Extensions feature in the DataWorks Open Platform. When you use Extensions to manage operations at an extension point, the operation performed by the DataWorks platform user at that extension point is interrupted until your custom extension returns a processing result.
This list categorizes supported events by module and indicates whether each event is a standard event or an extension point event. It also lists the EventBridge event type (Type) and the extension event code (eventCode).
-
EventBridge event type (Type): A field used to filter event messages. For details, see Enable message subscription.
-
Extension event code (eventCode): The event code corresponding to the event type. During local development, obtain this code from the message content sent by DataWorks to identify the target event type.
Workspace-level events
Events generated by workspace-level modules are workspace-level events, such as events from node runs in Data Studio or scheduled instance status changes in Operation Center. Use the event list below to identify which events are standard events and which are extension point events, along with their message formats.
The following message format tabs contain partial content only. For complete messages sent to EventBridge or Function Compute, refer to Appendix: Message Format.
Data Studio event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extension event code (eventCode) |
|
Node change |
Create node
|
|
|
|
|
|
Update node
|
|
|
|
|
|
|
File change
|
Pre-event for file deletion Delete a node in the development environment Note Deleted files are moved to the recycle bin. |
|
|
|
|
|
Pre-event for file submission |
|
|
|
|
|
|
Pre-event for file deployment |
|
|
|
|
|
|
Pre-event for code execution |
|
|
|
|
|
|
Table change |
Pre-event for submitting a table to development |
|
|
|
|
|
Pre-event for submitting a table to production |
|
|
|
|
Message format
Node change events (create and update)
File change events (submit, deploy, run, and delete)
Table change events (submit a table to the development environment or deploy a table to the production environment)
Data Integration event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extension event code (eventCode) |
|
Node change event |
Start a task |
|
|
|
|
|
Batch start tasks |
|
|
|
|
Message format
Node change event- Start a task
Node change event- Batch start tasks
Operation Center event list
Event list
Modifying the scheduling resource group or changing the owner triggers node-change-updated.
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extension event code (eventCode) |
|
Node change |
Delete a node
|
|
|
|
|
|
Pre-event for node undeploy Directly undeploy a node from the scheduled tasks in the production environment Note This operation also deletes the node in Data Studio and moves it to the recycle bin. |
|
|
|
|
|
|
Pre-event for node freeze Important This event also triggers the node-change-updated event. |
|
|
|
|
|
|
Pre-event for node unfreeze Important This event also triggers the node-change-updated event. |
|
|
|
|
|
|
Node backfill data |
Pre-event for backfill data |
|
|
|
|
|
Task status change |
Scheduled task status change |
|
|
|
|
|
Instance changes |
Freeze instance |
|
|
|
|
|
Unfreeze instance |
|
|
|
|
|
|
Terminate instance |
|
|
|
|
|
|
Rerun instance
|
|
|
|
|
|
|
Set instance to successful |
|
|
|
|
|
|
Remove specified upstream dependencies of an instance |
|
|
|
|
|
|
Pre-event for freezing an instance |
|
|
|
|
|
|
Pre-event for unfreezing an instance |
|
|
|
|
|
|
Pre-event for rerunning an instance |
|
|
|
|
|
|
Pre-event for setting an instance to successful |
|
|
|
|
|
|
Pre-event for terminating an instance |
|
|
|
|
|
|
Delete expired instances |
|
|
|
|
|
|
Workflow status changes |
Workflow status changes
|
|
|
|
|
|
Monitoring alerts |
Monitoring alerts |
|
|
|
|
Message format
Node change events (delete, undeploy, freeze, and unfreeze)
Backfill data for nodes
Task status change event
Instance change event (freeze, unfreeze, terminate, rerun, set to succeeded)
Pre-instance change event ( freeze, unfreeze, rerun, set to succeeded, kill instance)
Instance change event - Delete expired instances
Remove specified upstream dependency from instance event
Workflow status change event
Monitoring alerts
Security Center event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extensions event code (eventCode) |
|
Approval center |
Pre-event for creating a permission request |
|
|
|
|
|
Complete a request |
|
|
|
|
|
|
Security Center (table permission request) |
Pre-event for table permission request |
|
|
|
|
Message format
Approval center (create and complete requests)
Security Center ( table permission request pre-check event)
Appendix: Grant content list (MaxCompute)
Appendix: Grant content list (Data Service)
Data Quality event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extension event code (eventCode) |
|
Data Quality check |
Check result feedback
|
|
|
|
|
|
Check completed
|
|
|
|
|
|
|
Data quality rule pre-event |
Batch create data quality rules pre-event |
|
|
|
|
|
Batch update data quality rules pre-event |
|
|
|
|
|
|
Batch delete data quality rules pre-event |
|
|
|
|
|
|
Update data quality rule pre-event |
|
|
|
|
|
|
Data quality monitoring pre-event |
Create data quality monitoring pre-event |
|
|
|
|
|
Update data quality monitoring pre-event |
|
|
|
|
|
|
Clone data quality monitoring pre-event |
|
|
|
|
|
|
Batch delete data quality monitoring pre-event |
|
|
|
|
|
|
Data quality monitoring alert subscription pre-event |
Create data quality monitoring alert subscription pre-event |
|
|
|
create-data-quality-evaluation-task-notification |
|
Update data quality monitoring alert subscription pre-event |
|
|
|
|
|
|
Delete data quality monitoring alert subscription pre-event |
|
|
|
|
Message format
Data Quality check
Extension point events for data quality rules (batch create, update, and delete)
Data quality monitoring pre-events ( create, update, clone, and batch delete)
Data Quality monitoring alert subscription extension point events (create, update, and delete)
Tenant-level events
Events generated by tenant-level modules are tenant-level events, such as events generated when a workspace is deleted from the console. Use the event list below to identify which events are standard events and which are extension point events, along with their message formats.
The following message format tabs contain partial content only. For complete messages sent to EventBridge or Function Compute, refer to Appendix: Message format.
Console event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extensions event type (eventCode) |
|
Delete workspace |
Delete workspace extension point event |
|
|
|
|
|
Post-delete workspace event |
|
|
|
|
Message format
Message entity format: Delete workspace events
Data Upload & Download event list
Event list
|
Event type |
Event (and triggering operation) |
Standard event |
Extension point event |
EventBridge event type (Type) |
Extension event code (eventCode) |
|
Data download and upload |
Pre-event for data download - file generation |
|
|
dataworks:ResourcesDownload:DownloadResources |
download-resources |
|
Pre-event for data download - file download |
|
|
dataworks:ResourcesDownload:DownloadResourcesExecute |
download-resources-execute |
|
|
Pre-event for data upload |
|
|
dataworks:ResourcesUpload:UploadDataToTable |
upload-data-to-table |
Message format
Data download and upload
Appendix: Message format
Message format for EventBridge
After you configure Open Event and add an event distribution channel, when a workspace-level or tenant-level event is triggered in DataWorks, the event is filtered based on the event type (Type) configured in EventBridge. The following is the message format that DataWorks sends to EventBridge through the event distribution channel.
{
"datacontenttype": "application/json;charset=utf-8",// The content format of the data parameter. Only application/json is supported for datacontenttype.
"data": {
// The message content varies depending on the message type. The following two fields are fixed in the message. For event messages, see the preceding sections.
"tenantId": 28378****10656,// The tenant ID. Each Alibaba Cloud account corresponds to a tenant in DataWorks, and each tenant has its own tenant ID. You can view this value in the user information in the upper-right corner of Data Studio in DataWorks.
"eventCode": "xxxx"//
},
"id": "539fd8f4-4ea1-4625-aa8b-6c906674****",// The event ID. A unique value that identifies the event.
"source": "acs.dataworks",// The event source, which is the service that provides the event. This indicates that the message is pushed by DataWorks.
"specversion": "1.0",
"subject": "",
"time": "2020-11-19T21:04:41+08:00",// The time when the event was generated.
"type": "dataworks:InstanceStatusChanges:InstanceStatusChanges",// The event type. You can use this event type to filter all messages pushed by DataWorks in the EventBridge console. The Type value varies for each event. See the preceding sections for different event message types.
"aliyunaccountid": "123456789098****",// The Alibaba Cloud account ID.
"aliyunpublishtime": "2020-11-19T21:04:42.179PRC",// The time when EventBridge received the event.
"aliyuneventbusname": "default",// The name of the EventBridge event bus used to receive DataWorks event messages.
"aliyunregionid": "cn-hangzhou",// The region where the event is received.
"aliyunpublishaddr": "172.25.XX.XX"
}A complete event message includes the message body and basic information such as the message ID, source, and generation time. The following table describes the important fields.
|
Field |
Type |
Description |
|
data |
object |
The message body. The message format and field meanings vary depending on the event type. For more information, see: Data Studio event message format: Data Studio event list. Data Integration event message format: Data Integration event list. Operation Center event message format: Operation Center event list. Security Center event message format: Security Center event list. Data Quality event message format: Data Quality event list. |
|
id |
String |
The unique ID of the event message. This field is used to locate the event message. |
|
type |
String |
The event type. This field describes the event type related to the event source. Examples:
You can use this event type to filter all messages pushed by DataWorks in the EventBridge console. The Type value varies for each event. See the preceding sections for different event message types. |
Message format for Function Compute
When you configure Extensions with the Function Compute method in DataWorks, DataWorks sends event messages in JSON format to Function Compute when the corresponding extension point event is triggered. The following is the message format sent to Function Compute.
{
"blockBusiness": true,
"eventCategoryType": "resources-download",// The event category.
"eventType": "upload-data-to-table",// The event type.
"extensionBizId": "job_6603***070",
"messageBody": {
// The message content varies depending on the message type. The following two fields are fixed in the message. For event messages, see the preceding sections.
"tenantId": 28378****10656,// The tenant ID. Each Alibaba Cloud account corresponds to a tenant in DataWorks, and each tenant has its own tenant ID. You can view this value in the user information in the upper-right corner of Data Studio in DataWorks.
"eventCode": "xxxx"//
},
"messageId": "52d44ee7-b51f-4d4d-afeb-*******"// The event ID. A unique value that identifies the event.
}The following table describes the important fields.
|
Field |
Type |
Description |
|
|
messageId |
String |
The event ID. A unique value that identifies the event. |
|
|
messageBody |
The specific event message pushed by DataWorks. You can use this field when developing Extensions. The content of this field varies depending on the message type. |
||
|
tenantId |
The tenant ID. Each Alibaba Cloud account corresponds to a tenant in DataWorks, and each tenant has its own tenant ID. You can view this value in the user information in the upper-right corner of Data Studio in DataWorks. |
||
|
eventCode |
The event code. This field identifies a specific type of event message. For the eventCode of each event type, see the Extensions event code (eventCode) column in the event list table. |
||