すべてのプロダクト
Search
ドキュメントセンター

Simple Log Service:デフォルトのコンテンツテンプレート

最終更新日:Aug 25, 2026

Simple Log Service (SLS) は、各アラート通知チャネルに対してデフォルトの通知コンテンツテンプレートを提供します。プロジェクトで選択したコンテンツテンプレートに、特定のアラートの重大度またはクエリの通知コンテンツが定義されていない場合、SLS はこれらの組み込みのデフォルトテンプレートを使用します。

テキストメッセージ

アラート名:{{ alert.alert_name }}、ステータス:{{ alert.status | format_status }}、重大度:{{ alert.severity | format_severity }}、発火時刻:{{ alert.fire_time | format_date }}

音声

アラート名:{{ alert.alert_name }}、ステータス:{{ alert.status | format_status }}、重大度:{{ alert.severity | format_severity }}、発火時刻:{{ 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>

DingTalk

- プロジェクト: {{ 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 -%}

WeCom

- プロジェクト: {{ 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 -%}

Lark

- プロジェクト: {{ 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 -%}

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 -%}

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>

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 }}
}

Function Compute (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 }}
}