Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Creating a Message Template

Updated on 2024-08-05 GMT+08:00

In AOM, you can create message templates to customize notifications. When a preset notification rule is triggered, notifications can be sent to specified personnel by email, SMS, HTTP, or HTTPS. If no message template is created, the default message template will be used.

Functions

  • Message templates for emails, SMS, HTTP, and HTTPS are supported.
  • Message templates can be customized. For details, see 3.c.

Precautions

  • You can create a maximum of 100 message templates. If the number of message templates reaches 100, delete unnecessary ones.
  • By default, two message templates are preset and cannot be deleted or edited. If there is no custom message template, notifications are sent based on a preset message template by default.

Creating a Message Template

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Alarm Management > Alarm Action Rules.
  3. On the Message Templates tab page, click Create.

    1. Enter a template name, message template type, and description, and specify an enterprise project.
      Table 1 Parameter description

      Parameter

      Description

      Template Name

      Name of a message template. Enter up to 100 characters and do not start or end with an underscore (_) or hyphen (-). Only digits, letters, underscores, and hyphens are allowed.

      Description

      Description of the template. Enter up to 1024 characters.

      Message Template

      Type of the message template. Option: Metric/Event.

      Enterprise Project

      Enterprise project.

      • If you have selected All for Enterprise Project on the global settings page, select one from the drop-down list here.
      • If you have already selected an enterprise project on the global settings page, this option will be grayed and cannot be changed.
        NOTE:

        To use the enterprise project function, contact engineers.

    2. Select a language (for example, English).
    3. Customize the template content (default fields are automatically filled in when a message template is created). There are templates for emails and SMS. For details, see Table 2.
      NOTE:
      • In addition to the message fields in the default template, the message template also supports custom fields. You need to specify the fields when reporting event alarms. For details, see the alarm reporting structs in the following message template.
      • Custom fields support the JSONPath format. Example: $event.metadata.case1 or $event.metadata.case[0].
      • In the upper right corner of the Body area, click Add Variables to add required variables.
      • If you select Emails, you can click Preview to view the final effect. On the Preview page, change the message topic if necessary.
      Table 2 Variables in the default message template

      Variable

      Description

      Definition

      Alarm Name

      Name of the alarm rule that is triggered.

      ${event_name}

      Alarm ID

      ID of the alarm rule that is triggered.

      ${id}

      Action Rule

      Name of the alarm action rule that triggers notification.

      ${action_rule}

      Occurred

      Time when the alarm or event is triggered.

      ${starts_at}

      Event Severity

      Alarm or event severity. Options: Critical, Major, Minor, and Warning.

      ${event_severity}

      Alarm Info

      Detailed alarm information.

      ${alarm_info}

      Resource Identifier

      Resource for which the alarm or event is triggered.

      ${resources_new}

      Custom tag

      Extended tag.

      $event.metadata.key1

      Suggestion

      Suggestion about handing the alarm. For non-custom reporting, "NA" is displayed.

      ${alarm_fix_suggestion_zh}

      Custom annotation

      Extended annotation.

      $event.annotations.key2

    4. Click Confirm. The message template is created.

More Operations

After creating a message template, you can perform the operations listed in Table 3.

Table 3 Related operations

Operation

Description

Editing a message template

Click Edit in the Operation column.

Copying a message template

Click Copy in the Operation column.

Deleting a message template

  • To delete a single message template, click Delete in the Operation column in the row that contains the template, and then click Yes on the displayed page.
  • To delete one or more message templates, select them, click Delete above the template list, and then click Yes on the displayed page.
    NOTE:

    Before deleting a message template, delete the alarm action rules bound to it.

Searching for a message template

Enter a template name in the search box in the upper right corner and click .

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback