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. Go to the Webhook Integration page.
    1. In the Projects section, click the name of the project that you want to view.
    2. In the left-side navigation pane, click Alerts.
    3. On the Alert Center page, 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. The ID 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 that is 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 the webhook configurations based on the webhook type that you select to obtain the webhook URL.

      • DingTalk

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

      • 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 that are used to call the webhook.

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

What to do next

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