"swarm services short on swarm is 6." becomes "6 swarm services are short of their replicas.", with a Which line naming each service and how many of its tasks run. The swarm figures get labels, and the counting figures (swarm, mounts, drives, updates) read as sentences in the email, its subject and the Alerts page. A plugin names what its count counts through core.alerts.names_behind; the Docker plugin does for the three swarm figures, from the stored swarm. Webhooks get alert.which too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
562 B
Plaintext
22 lines
562 B
Plaintext
{# Several alerts that arrived together, plain text; the same facts as burst.html. #}
|
||
{{ alerts|length }} alerts changed together: {{ said }}.
|
||
{% for a in alerts %}
|
||
|
||
{{ a.state }}: {{ a.headline }}
|
||
{%- if a.which %}
|
||
Which: {{ a.which }}
|
||
{%- endif %}
|
||
{{ a.rule }} · fires when {{ a.condition }} · {{ a.when }}
|
||
{%- if a.note %}
|
||
{{ a.note }}
|
||
{%- endif %}
|
||
{% endfor %}
|
||
{% if link %}
|
||
|
||
View in Steward: {{ link }}
|
||
{% endif %}
|
||
|
||
--
|
||
Steward sends this to everyone on its email list when alert rules change
|
||
state. Who gets it is set in Settings › Notifications.
|