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.
Prerequisites
DataWorks Enterprise Edition is activated in a supported region. The OpenEvent module is available for DataWorks Enterprise Edition users in the following regions: China (Beijing), China (Hangzhou), China (Shanghai), China (Zhangjiakou), China (Shenzhen), China (Chengdu), US (Silicon Valley), US (Virginia), Germany (Frankfurt), Japan (Tokyo), China (Hong Kong), and Singapore.
EventBridge is activated. The OpenEvent module uses EventBridge to subscribe to and consume messages. For more information, see What is EventBridge?
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.
Background information
DataWorks allows you to subscribe to messages of status change events in DataWorks key processes and can push the messages to the OpenEvent module of DataWorks Open Platform. You can use the OpenEvent module to push event messages in a workspace and use EventBridge to filter and consume the messages.
Concepts
DataWorks events are classified into regular events and extension point events based on whether the operation process related to an event in DataWorks can be blocked.
Regular events: You can develop an on-premises program to receive messages of this event type and configure custom responses to the event messages based on your business requirements.
Extension point events: This type of event has the characteristics and capabilities of regular events. In addition, this type of event allows you to register your on-premises program as a DataWorks extension to process event messages generated by the operations you perform in DataWorks based on custom processing logic, such as blocking the operations.
DataWorks events are classified into workspace-level events and tenant-level events based on the effective scope of events.
Workspace-level events: Events that are generated in workspace-level services. For example, events that are generated when nodes are run in DataStudio and events that are generated when the status of instances is changed in Operation Center are workspace-level events.
Tenant-level events: Events that are generated in tenant-level services. For example, the event that is generated when a user deletes a workspace in the DataWorks console is a tenant-level event. The following tables describe the events supported by each DataWorks service, whether an event is a regular event or an extension point event, and the message format of an event.
Supported event types
The following tables list the extension point events and regular events that are supported at the workspace level and tenant level.
Workspace-level events
Tenant-level events
Application benefits
The OpenEvent module provides the following benefits:
Low O&M costs:
After you enable the message subscription feature in DataWorks Open Platform, you can subscribe to 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.