The OpenEvent module allows you to subscribe to event messages. You can receive notifications about various change events in DataWorks and respond to the events based on your configurations at the earliest opportunity. For example, you can subscribe to table change events to receive notifications about the changes to core tables in real time. You can also subscribe to task change events to implement custom data monitoring of a dashboard that displays the status of real-time synchronization tasks. This topic describes the types of events for subscription by using OpenEvent and performing the subscription configuration procedure.
Permission description
The Open Platform administrator and tenant administrator have read and write permissions on the developer backend. Other tenant-level roles and workspace-level roles have read-only permissions on the developer backend. For more information, see Manage permissions on global-level services.
Only Alibaba Cloud accounts or RAM users to which the AliyunDataWorksFullAccess policy is attached can be used to configure settings on pages in the DataWorks console. For more information, see Manage permissions on the DataWorks services and the entities in the DataWorks console by using RAM policies.
Limits
The OpenEvent module is in public preview for DataWorks Enterprise Edition users and is available in the following regions: China (Beijing), China (Hangzhou), China (Shenzhen), China (Shanghai), China (Zhangjiakou), China (Chengdu), US (Silicon Valley), US (Virginia), Germany (Frankfurt), Japan (Tokyo), China (Hong Kong), and Singapore.
The OpenEvent module allows you to use EventBridge to subscribe to and consume messages. Therefore, you must activate EventBridge. For more information, see What is EventBridge?
Extension point events are classified into tenant-level events and workspace-level events. You can select one of the preceding types of events when you register an extension. For information about the types of extension point events that are supported by DataWorks, see Supported extension point events.
Supported event types
DataWorks allows you to subscribe to regular events and extension point events.
Regular events: You can subscribe to this type of event.
Extension point events: You can subscribe to this type of event, and use an extension provided by DataWorks to configure custom responses to the event messages that you receive.
The following table describes the types of events to which you can subscribe in Operation Center, DataStudio, and Data Governance.
Application scope | Module | Event category | Event description and type | Example |
Workspace | Operation Center | Instance status change events |
| An instance status change event is triggered when the status of an auto triggered node instance changes from Not running to Running or from Running to Run failed. |
Instance operation events |
| An instance operation event is triggered when you perform the following operations on an instance in Operation Center:
| ||
Scheduling task status change events |
| A scheduling task status change event can be triggered in the following scenarios:
| ||
Workflow status change events |
|
| ||
Node change events | Description: the event that is triggered by the changes to a node in Operation Center in the production environment. Types: regular events and extension point events. |
Note The nodes refer to the auto triggered nodes that are displayed on the Cycle Task page of Operation Center in the production environment. | ||
Data backfill events |
| Event examples:
| ||
Operation Center alert events |
| Event examples:
| ||
Monitoring and alerting | Alert events |
| Event examples:
| |
DataStudio | File change events |
| Event examples:
| |
Table change events |
| Event examples:
| ||
Code review events |
| A code review event is triggered when a team member reviews the code of a node before the node is committed for providing a comment and feedback about node committing. | ||
Security Center | Approval Center events |
| Event examples:
| |
Data Quality | Check result feedback events |
| For example, you enable a monitoring rule that is used to check whether the number of rows in a table exceeds 0 for a specific table in Data Quality. After the rule is triggered and the check is complete, users can provide their feedback on the check result. After the feedback is provided, the system sends the feedback that contains information such as the monitoring rule ID and feedback content to a subscriber. A data quality check result feedback event is triggered when the feedback is sent. | |
Check completion events |
| For example, you enable a monitoring rule that is used to check whether the number of rows in a table exceeds 0 for a specific table in Data Quality. If the rule is triggered and the check is complete, the system sends the check result to a subscriber. The check result shows whether the data passes the quality check and contains samples that are used. A data quality check completion event is triggered when the check result is sent. | ||
Tenant | DataWorks console | Pre-event for workspace deletion |
| A pre-event for workspace deletion is triggered before a user deletes a workspace on the Workspaces page. The pre-event for workspace deletion can trigger the related extension to check for a specific type of event in a process and blocks the process if such an event occurs. |
Post-event for workspace deletion |
| A post-event for workspace deletion is triggered after a user deletes a workspace on the Workspaces page. | ||
Data Upload and Download | Pre-event for data download |
| A pre-event for data download is triggered when a user downloads data in Data Upload and Download. |
Network latency may delay the delivery of event messages.
Procedure
To use the OpenEvent module, you must complete the following configurations:
In the EventBridge console, activate EventBridge and create a custom bus.
Add an event distribution channel in DataWorks.
Configure the custom bus in the EventBridge console.
Publish events in the EventBridge console. For more information, see Publish an event.
Benefits
The OpenEvent module provides the following benefits:
Low O&M costs:
After you enable the message subscription feature in DataWorks, you can subscribe to important DataWorks events with ease.
Improved message publishing and receiving efficiency:
You need to only configure the parameters for message subscription and make preparations for SDK development. This reduces and simplifies manual operations.
Fulfillment of various needs:
You can subscribe to various types of DataWorks events. This allows you to identify important DataWorks changes and respond to the changes at the earliest opportunity.