Log Service allows to you manage webhooks on the Webhook Integration page. You can select a webhook when you configure an action policy. The following types of webhooks are supported: DingTalk, Enterprise WeChat, Lark, Slack, and Universal Webhook.

Procedure

  1. Log on to the Log Service console.
  2. Access the Webhook Integration page.
    1. In the Projects section, click the name of the project that you want to view.
    2. In the left navigation sidebar, click the 告警 icon.
    3. Click Open Alert Center. On the page that appears, choose Alert Management > Webhook Integration.
  3. Create a webhook.
    1. On the Webhook Integration tab, click Create.
    2. In the Create Webhook dialog box, configure the following parameters and click OK.
      Parameter Description
      ID The ID of the webhook, which must be unique.
      Name The name of the webhook.
      Type The type of the webhook. Valid values:
      • DingTalk
      • Enterprise WeChat
      • Lark
      • Slack
      • Universal Webhook
      Request Method The request method used to call the webhook.

      This parameter is required only if you set Type to Universal Webhook. If you set Type to a different value, the POST method is used by default.

      Request URL The URL of the webhook.

      You must complete webhook configurations based on the selected webhook type to obtain the webhook URL.

      • DingTalk

        Create a custom chatbot on DingTalk to obtain the webhook URL. For more information, see DingTalk.

      • Enterprise WeChat

        Create a custom robot on Enterprise WeChat to obtain the webhook URL.

      • Lark

        Create a custom robot on Lark to obtain the webhook URL. For more information, see Use bots in groups.

      • Slack

        Create a webhook on Slack to obtain the webhook URL. For more information, see Sending messages using Incoming Webhooks.

      Headers The custom headers used to call the webhook.

      This parameter is required only if you set Type to Universal Webhook.

What to do next

After the webhook is created, you can use the webhook in an action policy to send alert notifications. For more information, see Create an action policy.