{% load hc_extras %} {% if events %}
#{{ event.n }} | {% if event.fail %} Failure {% elif event.start %} Started {% else %} OK {% endif %} | {% if event.scheme == "email" %} {{ event.ua }} {% else %} {{ event.scheme|upper }} {{ event.method }} {% if event.remote_addr %} from {{ event.remote_addr }} {% endif %} {% if event.ua %} - {{ event.ua|truncatechars:80 }} {% endif %} {% endif %} | ||
{% if event.channel.kind == "email" %}
Sent email alert to {{ event.channel.value }}
{% elif event.channel.kind == "slack" %}
Sent Slack alert
{% if event.channel.slack_channel %}
to {{ event.channel.slack_channel }}
{% endif %}
{% elif event.channel.kind == "pd" %}
Sent alert to PagerDuty
{% elif event.channel.kind == "pagertree" %}
Sent alert to PagerTree
{% elif event.channel.kind == "opsgenie" %}
Sent alert to OpsGenie
{% elif event.channel.kind == "hipchat" %}
Sent alert to HipChat
{% elif event.channel.kind == "po" %}
Sent a Pushover notification
{% elif event.channel.kind == "webhook" %}
Called webhook {{ event.channel.url_down }}
{% else %}
Sent alert to {{ event.channel.kind|capfirst }}
{% endif %}
{% if event.error %}
Error: {{ event.error }} {% endif %} |