After you create a DingTalk chatbot for the alert management feature in Enterprise Distributed Application Service (EDAS), you can specify the DingTalk group to receive alerts in the notification policy. When the dispatch rule of a notification policy is triggered, the system automatically sends an alert notification to the DingTalk group that you specify. After an alert notification is received in the DingTalk group, you can manage the alert in the DingTalk group. This topic describes how to create and manage a DingTalk chatbot.

Prerequisites

A DingTalk group is created on your DingTalk client to receive alert notifications.

Create a DingTalk chatbot in the EDAS console

  1. Create a custom chatbot in the DingTalk group that you created on your DingTalk client and obtain the webhook URL of the chatbot. For more information, see Obtain the webhook URL of a DingTalk chatbot.
  2. Log on to the EDAS console.
  3. On the Applications page, select a region in the top navigation bar and an option from the Microservice Namespace drop-down list. Select ECS Clusters from the Cluster Type drop-down list. Then, click the name of the application whose metrics you want to view.
  4. In the left-side navigation pane, choose Alert Management > Contact.
  5. On the Contact page, click the DingTalk/Lark/WeCom tab.
  6. On the DingTalk/Lark/WeCom tab, click DingTalk.
  7. In the Create DingTalk Chatbot dialog box, set the following parameters and click OK.
    Important To receive alert notifications in the DingTalk group, you must set the Notification method parameter to DingTalk in the notification policy. For more information, see Create and manage a notification policy.
    ParameterDescription
    NameEnter the name of the DingTalk chatbot.
    Signature KeyEnter a signature key.
    Chatbot Webhook URLEnter the webhook URL of the DingTalk chatbot.
    Whether the Chatbot Sends Daily StatisticsIf you select this option, you must enter the points in time at which the daily statistics are sent. Separate multiple points in time with commas (,). Specify the points in time in the HH:SS format. The alert management feature sends the total number of alerts generated on the current day, the number of solved alerts, and the number of alerts to be solved at the specified points in time.

Manage alerts in the DingTalk group

After an alert notification is received in the DingTalk group, you can view and manage the alert in the DingTalk group. For more information, see Manage alerts in a DingTalk group.

What to do next

After you create a chatbot, you can search for, edit, or delete the chatbot on the DingTalk/Lark/WeCom tab.
  • To search for a specific chatbot, enter a keyword of the chatbot name in the search box, and then click the Search icon.
  • To edit a chatbot, find the chatbot and click Edit in the Actions column. In the EditDingTalk Chatbot dialog box, modify the information and click OK.
  • To delete a chatbot, find the chatbot and click Delete in the Actions column. In the message that appears, click OK.