All Products
Search
Document Center

Platform For AI:PAI workspace event notification configuration

Last Updated:Aug 25, 2026

Use event notifications to track status changes of DLC jobs, pipeline tasks, and DSW instances, or to automatically trigger downstream operations when the status of a model version changes. Notifications are delivered through EventBridge: each event rule that you create evaluates events on a custom event bus and delivers them to the event targets that you configure.

1. Activate EventBridge and grant permissions (one-time setup)

Before you create your first notification rule, activate EventBridge and configure the required permissions. Otherwise, you cannot create event rules.

To access the configuration page, go to Workspace Details, select your PAI workspace, and then click Workspace Configurations > Configure Event Notification in the upper-right corner.

1.1 Activate EventBridge

On the Event Notification Configuration tab, click Activate for Free to go to the EventBridge activation page. For more information, see Activate EventBridge.

After activation, PAI automatically creates a custom event bus named pai-system-${workspace_name} for each PAI workspace. You can go to the EventBridge console, switch to the region where your workspace resides, and view and manage your custom event buses.

1.2 Grant PAI access to cloud resources

Click Authorize Now. The system automatically creates the AliyunServiceRoleForPAIWorkspace service-linked role, which authorizes PAI to access your cloud resources. For more information about this role, see Appendix: PAI workspace service-linked role.

In the one-click authorization dialog box that appears, click Authorize.

1.3 (Optional) Grant event notification permissions to a RAM user

If you use a Resource Access Management (RAM) user (sub-account) for configuration, grant that user permissions to manage the event bus. Otherwise, the RAM user cannot create or manage event rules.

Create a custom policy and attach it to the RAM user. The policy content is as follows:

{
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "eventbridge:CreateEventBus",
      "eventbridge:GetEventBus",
      "eventbridge:DeleteEventBus",
      "eventbridge:ListEventBuses",
      "eventbridge:CreateRule",
      "eventbridge:GetRule",
      "eventbridge:UpdateRule",
      "eventbridge:EnableRule",
      "eventbridge:DisableRule",
      "eventbridge:DeleteRule",
      "eventbridge:ListRules",
      "eventbridge:PutEvents",
      "eventbridge:UpdateTargets",
      "eventbridge:DeleteTargets",
      "eventbridge:ListTargets"
    ],
    "Resource": "acs:eventbridge:*:*:eventbus/*"
  }],
  "Version": "1"
}

2. Create an event rule

After the initial setup, return to the configuration page: go to Workspace Details, select your PAI workspace, and then click Workspace Configurations > Configure Event Notification. Click Create Event Rule.

In the Create Event Rule panel that appears, enter a Rule Name and a Rule Description (up to 256 characters), and then configure Event Type, Event Scope, and Event Target.

2.1 Configure event type

Select the Event Source and the specific Event Type that you want to monitor. The following event sources are supported:

  • Pipeline Jobs: Monitor the status of Designer pipeline tasks. Event types include:

    • Job Failure

    • Successful

  • DLC Jobs: Monitor the lifecycle events of a DLC job. You can select multiple event types. Event types include:

    • Job Progress: Enter Queue, Start Bidding, Start Environment Preparation, Start Run, Retained upon Success, Retained upon Failure, Job Failure, and Successful.

    • Automatic Fault Tolerance

    • Job Timeout: Environment Preparation Timeout, Wait Timeout, Queue Timeout, and Run Timeout. If you select a timeout event type, configure the timeout rule in scheduling configuration first.

    • Other Events: Job Preempted (only idle jobs and spot jobs can be preempted), Job Manually Stopped, and Job Priority Modified.

  • Models: Monitor the status changes of a model version in AI Asset Management. Event types include:

    • Version Approved: The model version is approved for deployment.

    • Model version status change (approved or rejected for deployment).

  • DSW instance: Monitor the status changes of a DSW instance and its saved runtime images. You can select multiple event types. Event types include:

    • Status history: Queuing, Running, Instance deleted, Updating, Failed, Allocating, Recovering, Starting, and Preparing environment.

    • Save image: Saving image, Image saved, Failed to save image, and Image saving timeout.

    • Stop instance: Stop instance and Stopping.

2.2 Configure event targets

Configure how and where to deliver notifications when an event occurs. Note that the HTTP/HTTPS target applies only to Model event types.

  • DingTalk Notification: Configure the webhook and signing key parameters. For more information, see Appendix: Webhook and signing key. After you configure the parameters, click Test Connectivity to run a connectivity validation.

  • WeCom Notification: Configure the webhook URL for WeCom messages.

  • Lark Notification: Configure the webhook URL for a custom Lark bot.

  • HTTP/HTTPS: Automatically calls a specified URL when the status of a model version changes. This target applies only to Model event types, and your receiving API must parse the request based on the required template.

By default, each event rule supports up to 5 event targets. If this quota does not meet your requirements, request a quota increase. A maximum of 100 is recommended.

FAQ

Q: The following error occurs when you open the event notification configuration page: ServiceNotEnable

This error indicates that EventBridge is not activated. First activate EventBridge.

Appendix: Obtain the webhook and signing key of a DingTalk bot

  1. In the DingTalk group where you want to receive notifications, open the group bot dialog box.

    Click the settings icon in the upper-right corner of the group chat window, click Bots on the Group Settings panel, and then click Add Robot on the bot management panel.

  2. Go to the Add Robot dialog box.

    In the bot list, select Custom (Connect to custom services by using a webhook), and then click Add.

  3. In the Add Robot dialog box, configure the following parameters, copy the signing key, and then click Finished.

    Note

    Save the copied signing key to your local device for later use.

    Enter a Bot Name. In the Security Settings section, select Sign to add signature, click Copy to obtain the signing key, select I have read and agree, and then click Finished.

  4. In the Add Robot dialog box, click Copy and Finished.

    Note

    Save the webhook URL to your local device for later use.

    Do not publish the webhook URL on external websites, to prevent leaks.

The signing key and the webhook URL that you obtain in Step 3 and Step 4 are the signing key and Webhook values that you configure when you create an event rule in Event notification settings.