EventBridge is the event hub for Alibaba Cloud. It automatically captures key information when an event occurs, completes, or fails. EventBridge uses rules to route this information to specified targets, such as Function Compute and message queues. This feature lets you quickly build event-driven applications, which improves O&M efficiency and system reliability. You can use EventBridge to monitor the status of Cloud Phone tasks in real time. This removes the need for polling, which saves computing resources and reduces system complexity. This topic describes how to use EventBridge to automatically discover and track Cloud Phone events.
Prerequisites
EventBridge must be enabled. If it is not, log on to the EventBridge console, click Enable For Free, and follow the on-screen instructions to enable EventBridge and grant permissions.
This topic uses DingTalk (acs.dingtalk) as the service type for the event target. To do this, you must create a custom DingTalk robot. For more information, see the DingTalk developer documentation.
Procedure
This feature is in invitational preview. To use this feature, submit a ticket to contact the support team to activate it.
Manually subscribe in the EventBridge console
Log on to the EventBridge console. In the navigation pane on the left, click Event Buses. In the top menu bar, select Singapore from the region drop-down list.
On the Event Buses page, click default (the default event bus).
On the default page, click Event Rules in the navigation pane on the left, and then click Create Rule.
In the Configure Basic Info step, specify a Name and Description, and then click Next Step.
In the Configure Event Pattern step, select
acs.cloudphone Cloud Phonefor Event Source and an Event Type as needed. For information about the supported event types, see the table below.In the Configure Targets step, set Service Type to DingTalk acs.dingtalk. Enter the Address and Secret Key, 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 push scenarios, see Event targets.
After a Cloud Phone event is completed, on the default page, click Event Tracking in the navigation pane on the left. Set Event Source to
asc:cloudphoneand click Query to view the complete Cloud Phone events. To view specific callback details, click Event Trace.
References
Download the EventBridge SDK Demo. You can use the SDK to create an event rule.
You can view callback invocation records on the Event Traces page of the EventBridge console. You can also view them by calling the QueryEventTraces - Query event trace push details API operation.