|
|
@ -49,15 +49,15 @@ TEMPLATE_HTML = (
|
|
|
|
"<b>{{ labels.alertname }}</b>"
|
|
|
|
"<b>{{ labels.alertname }}</b>"
|
|
|
|
"{% if labels.instance is defined %} {{ labels.instance }}{% endif %}"
|
|
|
|
"{% if labels.instance is defined %} {{ labels.instance }}{% endif %}"
|
|
|
|
"{% if annotations.summary is defined %}"
|
|
|
|
"{% if annotations.summary is defined %}"
|
|
|
|
"<br/>"
|
|
|
|
"<br/><blockquote>{{ annotations.summary }}</blockquote>"
|
|
|
|
"<blockquote>{{ annotations.summary }}</blockquote>"
|
|
|
|
|
|
|
|
"{% else %}"
|
|
|
|
"{% else %}"
|
|
|
|
"<br/>"
|
|
|
|
"<br/>"
|
|
|
|
"<ul>"
|
|
|
|
"<blockquote>"
|
|
|
|
"{% for key, value in annotations.items() %}"
|
|
|
|
"{% for key, value in annotations.items() %}"
|
|
|
|
"<li><b>{{ key | capitalize }} :</b> {{ value }}</li>"
|
|
|
|
"<b>{{ key | capitalize }} :</b> {{ value }}<br/>"
|
|
|
|
"{% endfor %}"
|
|
|
|
"{% endfor %}"
|
|
|
|
"</ul>"
|
|
|
|
"</ul>"
|
|
|
|
|
|
|
|
"</blockquote>"
|
|
|
|
"{% endif %}"
|
|
|
|
"{% endif %}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|