{# alerts/_history_rows.html — the history: for one rule, how often it fired and for how long in all; then its episodes (#5316), swapped in on a range or rule change. The rule column shows only across rules, Notified and Action only when the range has something to put in them. Episodes come a page of transitions at a time (alerts/_history_page.html). #} {% from "_macros.html" import empty_state %} {% if chosen and verdict %}

{%- if verdict.fired %}Fired {{ verdict.fired }} time{{ "s" if verdict.fired != 1 }} in the last {{ current_range }} {%- if verdict.seconds %}, {{ verdict.seconds|duration }} in all{% endif %} {%- if verdict.ongoing %} · firing now{% endif %} {%- else %}Never fired in the last {{ current_range }}{% endif %} · fires when {{ rule_condition(chosen) }} on {{ chosen.resource_name }}

{% endif %} {% if episodes %}
{% if not chosen %}{% endif %} {% if show_notified %}{% endif %} {% if show_action %}{% endif %} {% include "alerts/_history_page.html" %}
WhenRuleWhat happened Worst readingNotifiedAction
{% else %}
{{ empty_state("No alert changed state in the last " ~ current_range ~ ((" for " ~ chosen.name) if chosen else "") ~ ".") }}
{% endif %}