This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 2cfa4d8  Modify the document to ensure that the official website can 
be successfully built (#3229)
2cfa4d8 is described below

commit 2cfa4d8d5cc5bb3e1b6d837e7c42fcdb1ad4d1c2
Author: Steve Yurong Su <[email protected]>
AuthorDate: Wed May 19 03:54:18 2021 -0500

    Modify the document to ensure that the official website can be successfully 
built (#3229)
---
 docs/UserGuide/Advanced-Features/Triggers.md    | 6 +++++-
 docs/zh/UserGuide/Advanced-Features/Triggers.md | 7 +++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/docs/UserGuide/Advanced-Features/Triggers.md 
b/docs/UserGuide/Advanced-Features/Triggers.md
index 4352be1..c96e5f8 100644
--- a/docs/UserGuide/Advanced-Features/Triggers.md
+++ b/docs/UserGuide/Advanced-Features/Triggers.md
@@ -588,7 +588,11 @@ AlertManagerEvent(String alertname, Map<String, String> 
extraLabels, Map<String,
 
 * `alertname` is a required parameter to identify an `alert`. The `alertname` 
field can be used for grouping and deduplication when the `AlertManager` sends 
an alert.
 * `extraLabels` is optional. In the backend, it is combined with `alertname` 
to form `labels` to identify an `alert`, which can be used for grouping and 
deduplication when `AlertManager` sends alarms.
-* `annotations` is optional, and its value can use Go style template 
`{{.<label_key>}}`. `{{.<label_key>}}` will be replaced with 
`labels[<label_key>]` when the message is finally generated.
+* `annotations` is optional, and its value can use Go style template 
+    ```
+    {{.<label_key>}}
+    ```
+    It will be replaced with `labels[<label_key>]` when the message is finally 
generated.
 * `labels` and `annotations` will be parsed into json string and sent to 
`AlertManager`:
 ```json
 {
diff --git a/docs/zh/UserGuide/Advanced-Features/Triggers.md 
b/docs/zh/UserGuide/Advanced-Features/Triggers.md
index be66f82..795eb47 100644
--- a/docs/zh/UserGuide/Advanced-Features/Triggers.md
+++ b/docs/zh/UserGuide/Advanced-Features/Triggers.md
@@ -603,8 +603,11 @@ AlertManagerEvent(String alertname, Map<String, String> 
extraLabels, Map<String,
 其中:
 * `alertname` 是必传参数,用于标识一个 `alert`,`alertname` 字段可用于 `AlertManager` 
发送告警时的分组和消重。
 * `extraLabels` 可选传,在后台与 `alertname` 组合成 `labels` 一起标识一个 `alert`,可用于 
`AlertManager` 发送告警时的分组和消重。
-* `annotations` 可选传,它的 value 值可使用 Go 语言模板风格的 `{{.<label_key>}}`,
- `{{.<label_key>}}` 在最终生成消息时会被替换为 `labels[<label_key>]`。
+* `annotations` 可选传,它的 value 值可使用 Go 语言模板风格的 
+    ```
+    {{.<label_key>}}
+    ```
+    它在最终生成消息时会被替换为 `labels[<label_key>]`。
 * `labels` 和 `annotations` 会被解析成 json 字符串发送给 `AlertManager`:
 ```json
 {

Reply via email to