This topic describes how to use an HTTP event source to integrate Yuque with EventBridge.
Background information
Developed by Alibaba Group, Yuque is a professional cloud knowledge base that provides knowledge management capabilities for individuals and teams. EventBridge supports fast integration with Yuque to manage events and alerts in a centralized manner.
Before you start
Step 1: Create an event source for Yuque in EventBridge
Create an event source of the HTTP/HTTPS Events type in the EventBridge console. The following table describes the parameters. For more information, see Create a custom event source of the HTTP/HTTPS Events type.
Request Type: Select HTTP&HTTPS.
Request Method: Select a POST.
Security Configuration: Select Optional.
After the event source is created, you can find the custom event source in the event source list, and then click Details to view the configuration information. Internet request URL can be used as the webhook URL of the event source.
Step 2: Configure a webhook in Yuque
Log on to the Yuque console and click the name of a knowledge repository.
In the upper-right corner of the page that appears, click the icon and select Settings.
In the left-side navigation pane of the Settings page, click Notifications. On the page that appears, configure the following parameters and click Add.
Push to: Select Others.
Robot name: Enter a name for the robot.
Webhook URL: Enter the Internet request URL that is generated in Step 1.
Push when the following events occur in book: Select one or more operations as the condition to trigger an event. For example, if you select publishDocument, an event is pushed when you publish a document in Yuque.
Step 3: Trigger an event
In the Message Hook List section of the Add Web Hook page, find the webhook that you add in Step 2. Click Test in the Operation column to trigger a test event.
Step 4: Verify the result
Log on to the EventBridge console.
In the top navigation bar, select a region.
In the left-side navigation pane, click Event Buses.
In the left-side navigation pane, click Event Tracking to view and verify the obtained event information.