Advanced Detectors

Historical Anomaly Detector

2 min

Objective

Create a historical baseline anomaly detector using the detector wizard and examine the generated alert message.


Step 1 – Create the Detector

Navigate to:

Alerts & Detectors → → Custom Detector

ADD YOUR INITIALS before the proposed detector name.

Naming the detector

It’s important that you add your initials in front of the proposed detector name.

It should be something like this: XYZ’s Advanced Detector.

Configure the following in the alert signal:

, choose Historical Anomaly and then

Show advanced settings and review

.


Step 2 – Examine the Default Alert Message

Under Message Preview, click Customize and review the generated message:

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

What This Message Is Doing

This message uses conditional blocks to render different content depending on whether the detector is triggering or clearing.

This allows one template to handle both trigger and clear notifications.


Important Variables Available in Alert Messages

The following variables are automatically available:

Any stream that is published in SignalFlow becomes available as: {{inputs.<stream_name>.value}}

Click to close the custom message.

and do not select anything, we don’t actually want to send notifications for this scenario

When prompted about Missing Alert Notification Policy, choose

Last Modified ·