Skip to content

Alert modes and templates

Each suite has an alert mode, set when you create or edit it.

One alert per table and change: when a table starts failing, when its incident escalates from warning to critical, and when it recovers. Best for small suites and on-call channels.

In both modes, resolving an incident manually always sends a resolved alert.

By default DataLoris writes the message for you. To change it, open the suite’s Template tab, write a template and click Save template.

  • Templates are logic-less (Mustache): variables and list sections, no code.
  • A template replaces the message body. DataLoris always adds the title and the link to the console.
  • At most 4,000 characters. Templates are checked when you save, and values are escaped for each channel.
  • If a template can’t be rendered, DataLoris falls back to the default message, so alerts never get lost.
{{asset.name}}
({{asset.qualified_name}}) is
{{incident.status}}
with severity
{{incident.severity}}. Failed
{{incident.occurrence_count}}
time(s) in a row.
{{#failing_rules}}
•
{{name}}
({{assertion_type}}): measured
{{measured}}, expected
{{threshold}}
{{/failing_rules}}
Run of
{{suite.name}}:
{{run.outcome}}.
{{run.failing_assets}}
of
{{run.total_assets}}
tables failing,
{{run.changed_assets}}
changed.
{{#assets}}
•
{{name}}:
{{severity}}
({{change}})
{{#failing_rules}}
–
{{name}}:
{{measured}}
vs
{{threshold}}
{{/failing_rules}}
{{/assets}}
Variable Description
event The alert event, such as INCIDENT_OPENED or SUITE_SUMMARY
suite.name Suite name
asset.name Table display name
asset.qualified_name schema.table or project.dataset.table
asset.connection Connection name
incident.severity CRITICAL or WARNING
incident.status OPEN, ACKNOWLEDGED or RESOLVED
incident.resolution AUTO_RECOVERED, MANUAL or ASSET_ARCHIVED
incident.occurrence_count How many runs in a row the table failed
incident.summary Short description of the incident
incident.url Link to the incident in the console
run.outcome PASSED, WARNING or FAILED
run.total_assets Tables checked in the run
run.failing_assets Tables failing in the run
run.changed_assets Tables whose health changed in the run
run.started_at, run.finished_at Run times
run.url Link to the run in the console

List sections:

Section Fields
{{#failing_rules}}…{{/failing_rules}} name, assertion_type, status, measured, threshold. In summaries: the failing rules of every table
{{#assets}}…{{/assets}} (summaries only) name, qualified_name, severity, change (opened, recovered, still_failing, or healthy with the Always policy), and a nested failing_rules