Updated on 2025-05-29 GMT+08:00

Creating a Message Template

You can create a message template.

Up to 10 templates are allowed.

Prerequisites

  • You have obtained the authorization for using SMN.
  • You have purchased the professional edition of ESM.
  • You have logged in to ESM as an administrator.

Procedure

  1. In the upper right corner of the page, click the username and select Notification.
  2. Select the Message Template tab and click Create Template.
  3. Set the parameters described in Table 1.

    Table 1 Parameter descriptions

    Parameter

    Description

    Template Name

    Enter a template name.

    Description

    Enter a brief description about the template.

    Email or SMS

    Subject

    Enter the content of an email topic. This parameter is available only when Email is selected.

    Body

    Alarm notifications can be sent by email or SMS. The variables and value ranges supported by the notification template are as follows:

    • EventName: ${alarm_name_en}
      NOTE:

      If the service that reports the alarm does not report the English alarm name, obtain the value from the Chinese alarm name.

    • EventId: ${alarm_id}
    • Region: ${region_code}
    • EventCategory: ${event_category}. The value can be HARDWARE (for a hardware alarm) and SERVICE_ALARM (for a cloud service alarm).
    • EventSeverity: ${event_severity}. The value can be Critical, Major, Minor, or Warning.
    • EventObject: ${event_object}
    • ClearCategory: ${clear_category}. The value can be Occur or Clear.
    • Time: ${time}. The value is the alarm generation time or alarm clearance time (UTC time).

  4. Click OK.