-
Notifications
You must be signed in to change notification settings - Fork 171
/
email.html.tmpl
33 lines (30 loc) · 1.28 KB
/
email.html.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<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 }}