alerta-contrib/integrations/mailer/email.html.tmpl
2023-03-21 00:15:34 +01:00

34 lines
1.3 KiB
Cheetah

<hr>
<strong>[{{ alert.status|title }}] {{ alert.environment }}: {{ alert.severity|title }} {{ alert.event }} on {{ alert.service|join(', ') }} {{ alert.resource }}</strong>
<hr>
<strong>Alert ID</strong>: {{ alert.id }} <br>
<strong>Create Time</strong>: {{ alert.create_time }} <br>
<strong>Environment</strong>: {{ alert.environment }} <br>
<strong>Services</strong>: {{ alert.service|join(', ') }} <br>
<strong>Resource</strong>: {{ alert.resource }} <br>
<strong>Event</strong>: {{ alert.event }} <br>
<strong>Group</strong>: {{ alert.group }} <br>
<strong>Value</strong>: {{ alert.value }} <br>
<strong>Severity</strong>: {{ alert.previous_severity|title}} -> {{ alert.severity|title }} <br>
<strong>Status</strong>: {{ alert.status|title }} <br>
<strong>Text</strong>: {{ alert.text }} <br>
<strong>Duplicate Count</strong>: {{ alert.duplicate_count }} <br>
<strong>Origin</strong>: {{ alert.origin }} <br>
<strong>Tags</strong>: {{ alert.tags|join(', ') }} <br>
{% for key,value in alert.attributes.items() -%}
{{ key|title }}: {{ value }}
{% endfor -%}
<br>
{% if alert.raw_data %}
Raw Data
{{ alert.raw_data }}
{% endif %}
<br>
<hr>
To acknowledge this alert visit this <a href="{{ dashboard_url }}/#/alert/{{ alert.id }}">URL</a>
<hr>
Generated by {{ program }} on {{ hostname }} at {{ now }}