Manage webhook

更新时间:
复制 MD 格式

After you configure webhook-based alerting, alert notifications can be sent to the webhook URL that you specify. You can create, modify, and delete webhooks on the Manage Webhook page.

Create a webhook

  1. In the left-side navigation pane, click Manage Alert > Manage Webhook.

  2. Click Create Webhook. In the dialog box that appears, specify information for the webhook to be created.

    The following table describes the basic parameters.

    Parameter

    Description

    Webhook Name

    Required. The name of the webhook.

    Request Method

    The request method and webhook URL. The default value is POST and cannot be changed.

    URL: The webhook URL that is used to receive alert notifications. The URL can be up to 100 characters in length.

    Request Header

    Optional. The request header, which can be up to 200 characters in length. You can add more headers or parameters as required.

    Note
    • The default request header must be in the following format: Content-Type: text/plain; charset=UTF-8.

    • The total number of headers and parameters cannot exceed six.

    Access Key & Secret Key

    Optional. The AccessKey ID and AccessKey secret that are used to verify the signature of the webhook.

    Global Subscription

    Specifies whether the webhook subscribes to notifications on all alerts in the current workspace. By default, the switch is turned off.

    Note
    • If the switch is turned on, you can receive notifications on all alerts in the current workspace without configuring subscription settings.

    • If the switch is turned off, you need to configure subscription settings. For more information, see Add subscription.

  3. Click Save.

Verify the results

  • The created webhook is displayed in the webhook list.

  • If the Global Subscription switch 1 is turned on for a webhook, the webhook is also displayed on the Alert Subscription page.

Related operations

  • To view a webhook, choose Manage Alert > Manage Webhook in the left-side navigation pane to check the webhook list.

  • To search for a webhook, enter a keyword of the webhook name in the search box in the upper-right corner and click the Search icon.

  • To modify a webhook, find the webhook and click Edit in the Actions column. In the dialog box that appears, modify the webhook as needed and click Save.

  • To delete a webhook, find the webhook and click Delete in the Actions column. In the message that appears, click OK.

    Note

    After you delete the webhook, the subscriptions of the webhook to alert rules are canceled.