The OpenEvent module allows you to subscribe to event messages. This way, 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 node change events to customize a dashboard that displays the status of real-time synchronization nodes. This topic describes how the OpenEvent module works and how to configure subscription to event messages.
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 (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?.
- Only an Alibaba Cloud account or a RAM user to which the AliyunDataWorksFullAccess policy is attached can be used to configure parameters to subscribe to and consume event messages in the DataWorks console. For more information about permission control by fine-grained RAM policies, see Manage permissions on the DataWorks services and the entities in the DataWorks console by using RAM policies.
Supported event types
- Regular events: You can only 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 customize your responses to the event messages that you receive.
Service module | Event category | Event description and type | Example |
---|---|---|---|
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 an operation such as freezing an instance in Operation Center. | |
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 here 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:
| |
Monitoring and alerting | Alert events |
| Event examples:
|
DataStudio | File change events |
| Event examples:
|
Table change events |
| Event examples:
| |
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. If the rule is triggered and the check is complete, the system sends the check result that contains information such as the result of whether data passes the quality check, and samples to a subscriber. A data quality check completion event is triggered when the check result 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. 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. |
Procedure
To use the OpenEvent module, you must complete the following configurations:
- In the EventBridge console, activate EventBridge and create a custom bus.
- Enable the message subscription feature and 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
- Low O&M costs:
After you enable the message subscription feature in DataWorks, you can easily subscribe to important DataWorks events.
- 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.