当您所选择的内容模板中未配置通知内容时,日志服务默认使用内置的通知内容。

短信

Alert name:{{ alert.alert_name }},Status:{{ alert.status | format_status }},Severity:{{ alert.severity | format_severity }},Fire time:{{ 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;">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>

钉钉

- 所属项目: {{ 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 -%}
[[屏蔽5分钟]({{ 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 -%}
[[屏蔽5分钟]({{ 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 -%}
[[屏蔽5分钟]({{ 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 -%}
[[屏蔽5分钟]({{ alert.alert_url }})]
{% 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;">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>