After you create a WeCom chatbot in the alert management module in the Enterprise Distributed Application Service (EDAS) console, you can specify the required WeCom group to receive alert notifications in a notification policy. When a dispatch rule in a notification policy is triggered, EDAS delivers the alert to the specified WeCom group automatically.
Once the notification arrives, team members can view and manage the alert directly in the WeCom group chat.
Prerequisites
A WeCom group created on the WeCom client
Step 1: Get the webhook URL from WeCom
Open and sign in to the WeCom client.
In the upper-right corner of the target WeCom group, click the
icon, then click Add Chatbot.On the Add Chatbot page, click Create Chatbot.
Enter a name for the chatbot and click Create.
Click Copy URL and save the webhook URL. You need it in the next step.
Step 2: Create the chatbot in the EDAS console
-
Log on to the EDAS consoleEDAS console.
-
In the left-side navigation pane, choose .
On the Applications page, select a region in the top navigation bar. From the Microservices Namespace drop-down list, select a microservices namespace. From the Cluster Type drop-down list, select ECS Clusters. Click the name of the application that you want to manage.
In the left-side navigation pane, choose .
On the DingTalk/Lark/WeCom tab, click WeCom.
In the Create WeCom Chatbot panel, configure the following parameters and click OK.
Parameter
Description
Name
A custom name for the chatbot.
Chatbot Webhook URL
The webhook URL copied from the WeCom client.
Whether the Chatbot Sends Daily Statistics
Select the check box to receive a daily summary of alerts. If selected, configure the Sending Time of Daily Statistics parameter.
Sending Time of Daily Statistics
One or more time points in
HH:SSformat, separated by commas. At each specified time, EDAS sends the total number of generated alerts, solved alerts, and alerts to be solved on the current day to the WeCom group.
Manage alerts in the WeCom group
When an alert notification arrives in the WeCom group, team members can view and handle the alert directly in the group chat. For more information, see Handle alerts in a group chat.
Edit, search, or delete a chatbot
On the Notification Objects page, click the DingTalk/Lark/WeCom tab to manage existing chatbots:
Search: Enter a keyword in the search box and click the
icon.Edit: Click Edit in the Actions column. Modify the settings in the dialog box, and then click OK.
Delete: Click Delete in the Actions column. In the dialog box, click OK.