Manage notification templates

更新时间:
复制 MD 格式

Customize notification templates for system events and threshold-triggered events to send alert notifications to alert contacts in your desired format through channels such as text message, phone call, DingTalk, email, Lark, WeCom, and Slack. You can also set and view raw alert data in JSON format.

Create a notification template

This example shows how to create an email notification template that uses its default title and content.

  1. Log on to the Cloud Monitor console.

  2. In the left-side navigation pane, choose Event Center > Notification Templates.

  3. On the Notification Templates page, click the Email tab, and then click Create notification template.

  4. In the Create notification template panel, enter a template name and keep the default settings for the example template and custom content.

    By default, Cloud Monitor displays the email template, including the default title and notification content in Chinese and English. You can customize the title and content by clicking Insert Variable.

    Table 1. Notification template parameters

    Parameter

    Description

    Channel type

    The delivery channel for the notification template. Valid values:

    • Text message

    • Phone call

    • DingTalk

    • Email

    • Lark

    • WeCom

    • Slack

    • Data

    Template name

    The name of the notification template.

    Description

    The description of the notification template.

    Use example template

    Cloud Monitor provides various example templates, such as text message, phone call, DingTalk, email, Lark, WeCom, Slack, and data templates.

    The template shown is based on the selected channel type. For example, if you set channel type to Email, the Email Template is displayed.

    Custom content

    Cloud Monitor allows you to customize the notification content by using Markdown.

    Default Chinese Notification and English Notification content is automatically generated based on the selected channel type. You can click Insert Variable to customize the content.

    Note

    If you set channel type to DingTalk, Email, Lark, WeCom, or Slack, a default title is displayed. You can click Insert Variable to customize the title.

  5. In the upper-left corner of the preview area in the right pane of the Create notification template panel, click the image.png icon.

    By default, Cloud Monitor displays Simulated System Event Data, where you can preview the email notification format.

  6. Test the custom notification template.

    1. In the upper-right corner of the preview area in the right pane of the Create notification template panel, click the image.png icon.

    2. Select an alert contact and click OK.

      After the system displays "Sent successfully. Please check your inbox.", the alert contact receives a test email using the custom template.

      Note

      For information about how to create an alert contact, see Create an alert contact or alert contact group.

  7. Click OK.

Modify a notification template

  1. Log on to the Cloud Monitor console.

  2. In the left-side navigation pane, choose Event Center > Notification Templates.

  3. On the Notification Templates page, click the tab for the template's channel type, find the template, and then click Edit in the Actions column.

  4. In the Modify notification template panel, update the parameters as needed.

    For more information about the parameters, see Notification template parameters.

  5. Click OK.

Delete a notification template

  1. Log on to the Cloud Monitor console.

  2. In the left-side navigation pane, choose Event Center > Notification Templates.

  3. On the Notification Templates page, click the tab for the template's channel type, find the template, and then click Delete in the Actions column.

  4. In the Delete Prompt dialog box, click OK.

Related topics