Scenarios
Notification content templates are used to configure the specific content and format of alarm notifications, making it convenient for you to view alarm information more clearly and intuitively when an alarm notification is received.
A content template is composed of a fixed part and a custom part.
Fixed part: fixed content that cannot be edited or deleted.
The Cloud Log Service (CLS) platform provides preset default templates in Chinese and English, with commonly used alarm content preconfigured for direct use. The default templates cannot be edited or deleted and are maintained by the CLS platform. Their content may change with product upgrades. If you need strict control over notification content, create a separate notification content template.
Operation Steps
2. In the left sidebar, choose Monitoring Alarm > Notification Template to go to the notification content template management page.
3. Click Create, and then fill in the following information on the Create Notification Content Template page.
Template name
Language: language used in the fixed part of the content template, supporting Chinese and English.
Notification Content: Configure content templates when an alarm is triggered and cleared by channel. Use alarm notification variables to dynamically render the notification content. Note:
If the custom part is empty, the default content will be used by the platform.
Except for custom webhooks, each type of channel has an upper limit for content length. If the rendered content exceeds the limit, it will be automatically truncated.
4. Click Save to complete the notification content template configuration.
Markdown Syntax
Markdown syntax is supported in WeCom, DingTalk, and Lark. The specific syntax is as follows:
Markdown Syntax in WeCom
Note:
When @ is used as a mention method in WeCom notification groups, Markdown syntax is not supported.
Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Note:
There should be a space between # and the text.
Headings need to start on a new line, and there should be no other characters before the #. When using a heading in the first line of additional notification content of an alarm policy, add an empty line above it.
Bold
Link
[This is a link](http://work.weixin.qq.com/api/doc)
Inline code segment (cross-line code not supported yet)
Reference
Font color (only supports 3 built-in colors)
<font color="info">Green</font>
<font color="comment">Gray</font>
<font color="warning">Orange-red</font>
Markdown Syntax in DingTalk
Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Note:
There should be a space between # and the text.
Headings need to start on a new line, and there should be no other characters before the #. When using a heading in the first line of additional notification content of an alarm policy, add an empty line above it.
Reference
> A man who stands for nothing will fall for anything.
Text bold, italic
Link
[this is a link](http://example.com)
Image

Unordered list
Ordered list
Markdown Syntax in Lark
Bold
Italic
Strikethrough
Font color
<font color='green'>
This is a green text
</font>
<font color='red'>
This is a red text
</font>
<font color='grey'>
This is a gray text
</font>
Text link
[Development documentation](https://open.feishu.cn)
Image
Tag
<text_tag color='red'>Tag text</text_tag>
Note:
The supported color enumeration values include:
neutral
blue
turquoise
lime
orange
violet
indigo
wathet
green
yellow
red
purple
carmine
Ordered list
1. Ordered list 1
1. Ordered list 1.1
2. Ordered list 2
Unordered list
- Unordered list 1
- Unordered list 1.1
- Unordered list 2