{% load humanize hc_extras %} {% if flip.new_status == "down" and flip.reason == "timeout" %} 🔴 {{ check.name_then_code }} is DOWN (success signal did not arrive on time, grace time passed). {% elif flip.new_status == "down" and flip.reason == "fail" %} 🔴 {{ check.name_then_code }} is DOWN (received a failure signal). {% else %} {% if flip.new_status == "up" %}🟢{% endif %} {{ check.name_then_code }} is {{ flip.new_status|upper }}. {% endif %}

{% if check.project.name %} Project: {{ check.project.name }}
{% endif %} {% if check.tags_list %} Tags: {% for tag in check.tags_list%}{{ tag }} {% endfor %}
{% endif %} {% if check.kind == "simple" %} Period: {{ check.timeout|hc_duration }}
{% endif %} {% if check.kind == "cron" or check.kind == "oncalendar" %} Schedule: {{ check.schedule }}
Time Zone: {{ check.tz }}
{% endif %} Total Pings: {% if ping %}{{ ping.n }}{% else %}0{% endif %}
{% if ping is None %} Last Ping: Never
{% else %} Last Ping: {{ ping.get_kind_display }}, {{ ping.created|naturaltime }}
{% endif %} {% if body %} Last Ping Body:
{{ body }}
{% endif %} {% if down_checks is not None %}
{% if down_checks %} {% if down_checks|length > 10 %} {{ down_checks|length }} other checks are {% if status == "down" %}also{% else %}still{% endif %} down.
{% else %} The following checks are {% if status == "down" %}also{% else %}still{% endif %} down:
{% endif %} {% else %} All the other checks are up.
{% endif %} {% endif %}