Advanced Detectors

Historical Anomaly Detector

3 min

目的

Detector Wizard を使用して Historical Anomaly(過去の基準値に基づく異常検知)ディテクターを作成し、生成されるアラートメッセージを確認します。


ステップ 1 – Detector の作成

以下に移動します

Alerts & Detectors → → Custom Detector

提案されたディテクター名の前に自分のイニシャルを追加してください。

ディテクターの命名

提案されたディテクター名の前にイニシャルを追加することが重要です。

XYZ’s Advanced Detector のようにしてください。

アラートシグナルで以下を設定します

をクリックし、Historical Anomaly を選択してから

をクリックします

詳細設定を表示して確認します

をクリックします。


ステップ 2 – デフォルトのアラートメッセージを確認する

Message Preview の下で、Customize をクリックして生成されたメッセージを確認します

handlebars
{{#if anomalous}}
 Rule "{{{ruleName}}}" in detector "{{{detectorName}}}" triggered at {{timestamp}}.
{{else}}
 Rule "{{{ruleName}}}" in detector "{{{detectorName}}}" cleared at {{timestamp}}.
{{/if}}

{{#if anomalous}}
Triggering condition: {{{readableRule}}}
{{/if}}

Mean value of signal in the last {{event_annotations.current_window}}: {{inputs.summary.value}}
{{#if anomalous}}Trigger threshold: {{inputs.fire_top.value}}
{{else}}Clear threshold: {{inputs.clear_top.value}}.
{{/if}}

{{#notEmpty dimensions}}
Signal details:
{{{dimensions}}}
{{/notEmpty}}

{{#if anomalous}}
{{#if runbookUrl}}Runbook: {{{runbookUrl}}}{{/if}}
{{#if tip}}Tip: {{{tip}}}{{/if}}
{{/if}}

{{#if detectorTags}}Tags: {{detectorTags}}{{/if}}

{{#if detectorTeams}}
Teams:{{#each detectorTeams}} {{name}}{{#unless @last}},{{/unless}}{{/each}}.
{{/if}}

このメッセージの動作

このメッセージは条件ブロックを使用して、ディテクターがトリガー中かクリア中かに応じて異なるコンテンツをレンダリングします。

これにより、1つのテンプレートでトリガー通知とクリア通知の両方を処理できます。


アラートメッセージで使用可能な重要な変数

以下の変数が自動的に使用可能です

SignalFlow で公開されたストリームは以下の形式で使用可能です {{inputs.<stream_name>.value}}

をクリックしてカスタムメッセージを閉じます。

をクリックし、何も選択しないでください。このシナリオでは実際に通知を送信する必要はありません。

Missing Alert Notification Policy について確認を求められたら、 を選択してください。

Last Modified ·