EventBridge lets you monitor Cloud Phone task status in real time without polling, saving computing resources and reducing system complexity. You can route Cloud Phone events to targets such as Function Compute or message queues to build event-driven automation.
Prerequisites
You must enable EventBridge. If it is not already enabled, log on to the EventBridge console, click Enable For Free, and follow the on-screen instructions to enable EventBridge and grant permissions.
The following procedure uses DingTalk (acs.dingtalk) as an example event target. Create a custom DingTalk robot before you begin. For more information, see the DingTalk developer documentation.
Procedure
This feature is in invitational preview. To use this feature, submit a ticket to request activation.
Manually subscribe in the EventBridge console
-
Log on to the EventBridge console. In the left-side navigation pane, click EventBridge. In the top navigation bar, select Singapore from the Region drop-down list.
-
On the EventBridge page, click default (the dedicated event bus for Alibaba Cloud services).
-
On the default page, choose Event Rules in the left-side navigation pane, and then click Create Rule.
-
On the Configure Basic Info step, enter a Name and Description, and then click Next.
-
On the Create Rule step, for Event Source, select
acs.cloudphone Cloud Phone. Select an Event Type. The following table lists the supported event types. -
On the Configure Targets step, set Service Type to DingTalk acs.dingtalk, enter the Address and Secret, click Example, leave the other parameters at their default settings, and then click Create.
NoteThe preceding steps use DingTalk (acs.dingtalk) as an example. For more information about other target types, see Event targets.
-
After a Cloud Phone event is completed, return to the default page. In the left-side navigation pane, choose Event Tracking. Set Event Source to
asc:cloudphoneand click Query to view the completed Cloud Phone events. To view the details of a specific event, click Event Trace.
References
-
Download the EventBridge SDK Demo. You can use the SDK to create an event rule.
-
You can view event traces on the Event Traces page of the EventBridge console or by calling the QueryEventTraces - Query event trace push details API operation.