mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-23 07:57:39 +00:00
78 lines
2.6 KiB
HTML
78 lines
2.6 KiB
HTML
{% if ch.kind == "email" %}
|
|
Email to <span>{{ ch.email.value }}</span>
|
|
{% if ch.email.notify_down and not ch.email.notify_up %}
|
|
(down only)
|
|
{% endif %}
|
|
{% if ch.email.notify_up and not ch.email.notify_down %}
|
|
(up only)
|
|
{% endif %}
|
|
{% elif ch.kind == "pd" %}
|
|
PagerDuty account <span>{{ ch.pd.account }}</span>
|
|
{% elif ch.kind == "po" %}
|
|
Pushover ({{ ch.po_priority }} priority)
|
|
{% elif ch.kind == "slack" %}
|
|
Slack
|
|
{% if ch.slack_team %}
|
|
team <span>{{ ch.slack_team }}</span>,
|
|
channel <span>{{ ch.slack_channel }}</span>
|
|
{% endif %}
|
|
{% elif ch.kind == "telegram" %}
|
|
Telegram
|
|
{% if ch.telegram.type == "group" %}
|
|
group <span>{{ ch.telegram.name }}</span>
|
|
{% elif ch.telegram.type == "private" %}
|
|
user <span>{{ ch.telegram.name }}</span>
|
|
{% elif ch.telegram.type == "channel" %}
|
|
channel <span>{{ ch.telegram.name }}</span>
|
|
{% endif %}
|
|
{% elif ch.kind == "sms" %}
|
|
SMS to <span>{{ ch.phone.value }}</span>
|
|
{% if ch.phone.notify_down and not ch.phone.notify_up %}
|
|
(down only)
|
|
{% endif %}
|
|
{% if ch.phone.notify_up and not ch.phone.notify_down %}
|
|
(up only)
|
|
{% endif %}
|
|
{% elif ch.kind == "call" %}
|
|
Phone call to <span>{{ ch.phone.value }}</span>
|
|
{% elif ch.kind == "trello" %}
|
|
Trello
|
|
board <span>{{ ch.trello.board_name }}</span>,
|
|
list <span>{{ ch.trello.list_name }}</span>
|
|
{% elif ch.kind == "matrix" %}
|
|
Matrix <span>{{ ch.value }}</span>
|
|
{% elif ch.kind == "whatsapp" %}
|
|
WhatsApp to <span>{{ ch.phone.value }}</span>
|
|
{% if ch.phone.notify_down and not ch.phone.notify_up %}
|
|
(down only)
|
|
{% endif %}
|
|
{% if ch.phone.notify_up and not ch.phone.notify_down %}
|
|
(up only)
|
|
{% endif %}
|
|
{% elif ch.kind == "zulip" %}
|
|
Zulip
|
|
{% if ch.zulip.mtype == "stream" %}
|
|
stream <span>{{ ch.zulip.to}}</span>
|
|
{% elif ch.zulip.mtype == "private" %}
|
|
user <span>{{ ch.zulip.to}}</span>
|
|
{% endif %}
|
|
{% elif ch.kind == "signal" %}
|
|
Signal to <span>{{ ch.phone.value }}</span>
|
|
{% if ch.phone.notify_down and not ch.phone.notify_up %}
|
|
(down only)
|
|
{% endif %}
|
|
{% if ch.phone.notify_up and not ch.phone.notify_down %}
|
|
(up only)
|
|
{% endif %}
|
|
{% elif ch.kind == "ntfy" %}
|
|
ntfy topic <span>{{ ch.ntfy.topic }}</span>,
|
|
{{ ch.ntfy.priority_display }} priority
|
|
{% elif ch.kind == "group" %}
|
|
Group,
|
|
{% with ch.group_channels|length as num_members %}
|
|
{{ num_members }} member{{ num_members|pluralize}}
|
|
{% endwith %}
|
|
{% else %}
|
|
{{ ch.get_kind_display }}
|
|
{% endif %}
|