當您所選擇的內容模板中未配置通知內容時,日志服務默認使用內置的通知內容。
短信
中文
告警名稱:{{ alert.alert_name }},狀態:{{ alert.status | format_status }},嚴重度:{{ alert.severity | format_severity }},觸發時間:{{ alert.fire_time | format_date }}
英文
Alert name:{{ alert.alert_name }},Status:{{ alert.status | format_status }},Severity:{{ alert.severity | format_severity }},Fire time:{{ alert.fire_time | format_date }}
語音
中文
告警名稱:{{ alert.alert_name }},狀態:{{ alert.status | format_status }},嚴重度:{{ alert.severity | format_severity }},觸發時間:{{ alert.fire_time | format_date }}
英文
Alert name:{{ alert.alert_name }},Status:{{ alert.status | format_status }},Severity:{{ alert.severity | format_severity }},Fire time:{{ alert.fire_time | format_date }}
郵件
中文
<table border="1" cellpadding="8" style="width: 100%%; table-layout: fixed; border-collapse: collapse; border-color: #bbb;"> <tbody> <tr> <th scope="row" style="width: 120px;">項目</th> <td>{{ alert.project }}</td> </tr> <tr> <th scope="row" >告警名稱</th> <td>{{ alert.alert_name }}</td> </tr> <tr> <th scope="row">首次觸發</th> <td>{{ alert.fire_time | format_date }}</td> </tr> <tr> <th scope="row">告警時間</th> <td>{{ alert.alert_time | format_date }}</td> </tr> <tr> <th scope="row">狀態</th> <td>{{ alert.status | format_status }}</td> </tr> <tr> <th scope="row">嚴重度</th> <td>{{ alert.severity | format_severity }}</td> </tr> <tr> <th scope="row">標簽</th> <td>{{ alert.labels | to_list }}</td> </tr> <tr> <th scope="row">標注</th> <td>{{ alert.annotations | annotations_to_list }}</td> </tr> <tr> <th scope="row">操作</th> <td> {%- if alert.dashboard_url %} <a href="{{ alert.dashboard_url }}">儀表盤</a> {%- endif %} {%- if alert.query_url %} <a href="{{ alert.query_url }}">查詢詳情</a> {%- endif %} {%- if alert.alert_url %} <a href="{{ alert.alert_url }}">規則設置</a> {%- endif %} </td> </tr> </tbody> </table>
英文
<table border="1" cellpadding="8" style="width: 100%%; table-layout: fixed; border-collapse: collapse; border-color: #bbb;"> <tbody> <tr> <th scope="row" style="width: 120px;">Project</th> <td>{{ alert.project }}</td> </tr> <tr> <th scope="row" >Alert Name</th> <td>{{ alert.alert_name }}</td> </tr> <tr> <th scope="row">Fire Time</th> <td>{{ alert.fire_time | format_date }}</td> </tr> <tr> <th scope="row">Alert Time</th> <td>{{ alert.alert_time | format_date }}</td> </tr> <tr> <th scope="row">Status</th> <td>{{ alert.status | format_status }}</td> </tr> <tr> <th scope="row">Severity</th> <td>{{ alert.severity | format_severity }}</td> </tr> <tr> <th scope="row">Labels</th> <td>{{ alert.labels | to_list }}</td> </tr> <tr> <th scope="row">Annotations</th> <td>{{ alert.annotations | annotations_to_list }}</td> </tr> <tr> <th scope="row">Actions</th> <td> {%- if alert.dashboard_url %} <a href="{{ alert.dashboard_url }}">Dashboard</a> {%- endif %} {%- if alert.query_url %} <a href="{{ alert.query_url }}">Detail</a> {%- endif %} {%- if alert.alert_url %} <a href="{{ alert.alert_url }}">Settings</a> {%- endif %} </td> </tr> </tbody> </table>
釘釘
中文
- 所屬項目: {{ alert.project }} - 告警名稱: {{ alert.alert_name }} - 首次觸發: {{ alert.fire_time | format_date }} - 告警時間: {{ alert.alert_time | format_date }} - 告警狀態: {{ alert.status | format_status }} - 告警嚴重度: {{ alert.severity | format_severity }} - 告警標簽: {{ alert.labels | to_list | blockquote }} - 告警標注: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[儀表盤]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[查詢詳情]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[規則設置]({{ alert.alert_url }})] {% endif -%}
英文
- Project: {{ alert.project }} - Alert Name: {{ alert.alert_name }} - Fire Time: {{ alert.fire_time | format_date }} - Alert Time: {{ alert.alert_time | format_date }} - Status: {{ alert.status | format_status }} - Severity: {{ alert.severity | format_severity }} - Labels: {{ alert.labels | to_list | blockquote }} - Annotations: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[Dashboard]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[Detail]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[Settings]({{ alert.alert_url }})] {% endif -%}
企業微信
中文
- 所屬項目: {{ alert.project }} - 告警名稱: {{ alert.alert_name }} - 首次觸發: {{ alert.fire_time | format_date }} - 告警時間: {{ alert.alert_time | format_date }} - 告警狀態: {{ alert.status | format_status }} - 告警嚴重度: {{ alert.severity | format_severity }} - 告警標簽: {{ alert.labels | to_list | blockquote }} - 告警標注: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[儀表盤]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[查詢詳情]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[規則設置]({{ alert.alert_url }})] {% endif -%}
英文
- Project: {{ alert.project }} - Alert Name: {{ alert.alert_name }} - Fire Time: {{ alert.fire_time | format_date }} - Alert Time: {{ alert.alert_time | format_date }} - Status: {{ alert.status | format_status }} - Severity: {{ alert.severity | format_severity }} - Labels: {{ alert.labels | to_list | blockquote }} - Annotations: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[Dashboard]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[Detail]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[Settings]({{ alert.alert_url }})] {% endif -%}
飛書
中文
- 所屬項目: {{ alert.project }} - 告警名稱: {{ alert.alert_name }} - 首次觸發: {{ alert.fire_time | format_date }} - 告警時間: {{ alert.alert_time | format_date }} - 告警狀態: {{ alert.status | format_status }} - 告警嚴重度: {{ alert.severity | format_severity }} - 告警標簽: {{ alert.labels | to_list | blockquote }} - 告警標注: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[儀表盤]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[查詢詳情]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[規則設置]({{ alert.alert_url }})] {% endif -%}
英文
- Project: {{ alert.project }} - Alert Name: {{ alert.alert_name }} - Fire Time: {{ alert.fire_time | format_date }} - Alert Time: {{ alert.alert_time | format_date }} - Status: {{ alert.status | format_status }} - Severity: {{ alert.severity | format_severity }} - Labels: {{ alert.labels | to_list | blockquote }} - Annotations: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [[Dashboard]({{ alert.dashboard_url }})] {% endif -%} {% if alert.query_url -%} [[Detail]({{ alert.query_url }})] {% endif -%} {% if alert.alert_url -%} [[Settings]({{ alert.alert_url }})] {% endif -%}
Slack
中文
- 所屬項目: {{ alert.project }} - 告警名稱: {{ alert.alert_name }} - 首次觸發: {{ alert.fire_time | format_date }} - 告警時間: {{ alert.alert_time | format_date }} - 告警狀態: {{ alert.status | format_status }} - 告警嚴重度: {{ alert.severity | format_severity }} - 告警標簽: {{ alert.labels | to_list | blockquote }} - 告警標注: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [<{{ alert.dashboard_url }}|儀表盤>] {%- endif -%} {% if alert.query_url -%} [<{{ alert.query_url }}|查詢詳情>] {%- endif -%} {% if alert.alert_url -%} [<{{ alert.alert_url }}|規則設置>] {%- endif -%}
英文
- Project: {{ alert.project }} - Alert Name: {{ alert.alert_name }} - Alert Time: {{ alert.fire_time | format_date }} - Fire Time: {{ alert.alert_time | format_date }} - Status: {{ alert.status | format_status }} - Severity: {{ alert.severity | format_severity }} - Labels: {{ alert.labels | to_list | blockquote }} - Annotations: {{ alert.annotations | annotations_to_list | blockquote }} {% if alert.dashboard_url -%} [<{{ alert.dashboard_url }}|Dashboard>] {%- endif -%} {% if alert.query_url -%} [<{{ alert.query_url }}|Detail>] {%- endif -%} {% if alert.alert_url -%} [<{{ alert.alert_url }}|Settings>] {%- endif -%}
Webhook
{
"aliuid": {{ alert.aliuid | quote }},
"alert_instance_id": {{ alert.alert_instance_id | quote }},
"alert_id": {{ alert.alert_id | quote }},
"alert_name": {{ alert.alert_name | quote }},
"region": {{ alert.region | quote }},
"project": {{ alert.project | quote }},
"alert_time": {{ alert.alert_time }},
"fire_time": {{ alert.fire_time }},
"resolve_time": {{ alert.resolve_time }},
"status": {{ alert.status | quote }},
"results": {{ alert.results | to_json }},
"fire_results": {{ alert.fire_results | to_json }},
"fire_results_count": {{ alert.fire_results_count }},
"labels": {{ alert.labels | to_json }},
"annotations": {{ alert.annotations | to_json }},
"severity": {{ alert.severity }},
"fingerprint": {{ alert.fingerprint | quote }}
}
消息中心
中文
<table border="1" cellpadding="8" style="width: 100%%; table-layout: fixed; border-collapse: collapse; border-color: #bbb;"> <tbody> <tr> <th scope="row" style="width: 120px;">項目</th> <td>{{ alert.project }}</td> </tr> <tr> <th scope="row" >告警名稱</th> <td>{{ alert.alert_name }}</td> </tr> <tr> <th scope="row">首次觸發</th> <td>{{ alert.fire_time | format_date }}</td> </tr> <tr> <th scope="row">告警時間</th> <td>{{ alert.alert_time | format_date }}</td> </tr> <tr> <th scope="row">狀態</th> <td>{{ alert.status | format_status }}</td> </tr> <tr> <th scope="row">嚴重度</th> <td>{{ alert.severity | format_severity }}</td> </tr> <tr> <th scope="row">標簽</th> <td>{{ alert.labels | to_list }}</td> </tr> <tr> <th scope="row">標注</th> <td>{{ alert.annotations | annotations_to_list }}</td> </tr> <tr> <th scope="row">操作</th> <td> {%- if alert.dashboard_url %} <a href="{{ alert.dashboard_url }}">儀表盤</a> {%- endif %} {%- if alert.query_url %} <a href="{{ alert.query_url }}">查詢詳情</a> {%- endif %} {%- if alert.alert_url %} <a href="{{ alert.alert_url }}">規則設置</a> {%- endif %} </td> </tr> </tbody> </table>
英文
<table border="1" cellpadding="8" style="width: 100%%; table-layout: fixed; border-collapse: collapse; border-color: #bbb;"> <tbody> <tr> <th scope="row" style="width: 120px;">Project</th> <td>{{ alert.project }}</td> </tr> <tr> <th scope="row" >Alert Name</th> <td>{{ alert.alert_name }}</td> </tr> <tr> <th scope="row">Fire Time</th> <td>{{ alert.fire_time | format_date }}</td> </tr> <tr> <th scope="row">Alert Time</th> <td>{{ alert.alert_time | format_date }}</td> </tr> <tr> <th scope="row">Status</th> <td>{{ alert.status | format_status }}</td> </tr> <tr> <th scope="row">Severity</th> <td>{{ alert.severity | format_severity }}</td> </tr> <tr> <th scope="row">Labels</th> <td>{{ alert.labels | to_list }}</td> </tr> <tr> <th scope="row">Annotations</th> <td>{{ alert.annotations | annotations_to_list }}</td> </tr> <tr> <th scope="row">Actions</th> <td> {%- if alert.dashboard_url %} <a href="{{ alert.dashboard_url }}">Dashboard</a> {%- endif %} {%- if alert.query_url %} <a href="{{ alert.query_url }}">Detail</a> {%- endif %} {%- if alert.alert_url %} <a href="{{ alert.alert_url }}">Mute</a> {%- endif %} </td> </tr> </tbody> </table>
事件總線(EventBridge)
{
"aliuid": {{ alert.aliuid | quote }},
"alert_instance_id": {{ alert.alert_instance_id | quote }},
"alert_id": {{ alert.alert_id | quote }},
"alert_name": {{ alert.alert_name | quote }},
"region": {{ alert.region | quote }},
"project": {{ alert.project | quote }},
"alert_time": {{ alert.alert_time }},
"fire_time": {{ alert.fire_time }},
"resolve_time": {{ alert.resolve_time }},
"status": {{ alert.status | quote }},
"results": {{ alert.results | to_json }},
"fire_results": {{ alert.fire_results | to_json }},
"fire_results_count": {{ alert.fire_results_count }},
"labels": {{ alert.labels | to_json }},
"annotations": {{ alert.annotations | to_json }},
"severity": {{ alert.severity }},
"fingerprint": {{ alert.fingerprint | quote }}
}
函數計算(FC)
{
"aliuid": {{ alert.aliuid | quote }},
"alert_instance_id": {{ alert.alert_instance_id | quote }},
"alert_id": {{ alert.alert_id | quote }},
"alert_name": {{ alert.alert_name | quote }},
"region": {{ alert.region | quote }},
"project": {{ alert.project | quote }},
"alert_time": {{ alert.alert_time }},
"fire_time": {{ alert.fire_time }},
"resolve_time": {{ alert.resolve_time }},
"status": {{ alert.status | quote }},
"results": {{ alert.results | to_json }},
"fire_results": {{ alert.fire_results | to_json }},
"fire_results_count": {{ alert.fire_results_count }},
"labels": {{ alert.labels | to_json }},
"annotations": {{ alert.annotations | to_json }},
"severity": {{ alert.severity }},
"fingerprint": {{ alert.fingerprint | quote }}
}
文檔內容是否對您有幫助?