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
- Log on to the Log Service console.
- Go to the Webhook Integration page.
- In the Projects section, click the name of the project that you want to view.
- In the left-side navigation pane, click Alerts.
- On the Alert Center page, choose .
- Create a webhook.
- On the Webhook Integration tab, click Create.
- 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.