After you register, publish, and enable an extension in DataWorks Open Platform, the extension takes effect. When you perform an operation that triggers an extension point event on a service page of a workspace for which an extension takes effect, DataWorks sends an event message to your extension. Then, the extension checks the extension point event. You can view the result returned by the extension. This topic describes the extension point events that are supported by Operation Center and how to use extension points to trigger an extension to check events.
Prerequisites
The event message subscription feature is enabled. For more information, see Enable event message subscription.
An extension is developed and deployed. For more information, see Develop and deploy a custom extension.
Background information
DataWorks can send messages for extension point events to extensions. To check extension point events, you can enable extensions that relate to the extension point events based on the extension points supported by DataWorks. You can also customize the processing logic of extension point events by using extensions. To implement the preceding features, you need to register an extension in the DataWorks console and go to the Extension page in SettingCenter to enable the extension.
Only a workspace administrator can enable an extension on the Extension page in SettingCenter.
For more information about extensions, see Overview.
The preceding figure shows workspace-level extensions. For more information, see supported extension point events.
Features
Operation Center allows your local services to receive messages when events related to the following extension points are generated. In addition, you can register a local program as a DataWorks extension and use the extension to receive messages related to extension point events. The extension can process extension point events based on your custom logic and send the check result to the platform by calling the UpdateWorkbenchEventResult operation. This helps achieve process control in DataWorks. The following table describes the extension point events that are supported by Operation Center.
Event name | Event content |
Node change event |
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 event |
|
The preceding nodes refer to the auto triggered nodes that are listed on the Cycle Task page of Operation Center in the production environment. If you perform the preceding operations on the nodes in the production environment, the registered extensions check the triggered events. If you perform the preceding operations on the nodes in the development environment or freeze or unfreeze node instances on the Cycle Instance page, the extensions do not check the triggered events.
Supported extension point events
Freeze or unfreeze a node in Operation Center
The following figure shows how to trigger and view a check on an event that is generated when you freeze a node.
Undeploy a node in Operation Center
Backfill data for a node in Operation Center
References
For information about how to enable an extension, see Use extensions.
For information about other extension point events that are supported by Operation Center, see Supported extension point events.
For information about the message body for a data backfill event, see Message body for a data backfill event.
For information about the message bodies of node change events, see Message body for a node change event (create, modify, delete, freeze, unfreeze, and undeploy).