{% extends "base.html" %} {% load compress humanize static hc_extras %} {% block title %}Integrations - {% site_name %}{% endblock %} {% block content %}
{% if messages %}
{% for message in messages %}

{{ message }}

{% endfor %}
{% endif %}
{% if channels %} {% for ch in channels %} {% endfor %} {% endif %}
Type Value Assigned Checks Last Notification
{{ ch.get_kind_display }} {% if ch.kind == "email" %} to {{ ch.value }} {% if not ch.email_verified %} {% if ch.latest_notification and ch.latest_notification.error %} (bounced, disabled) {% else %} (unconfirmed) {% endif %} {% endif %} {% elif ch.kind == "pd" %} {% if ch.pd_account %} account {{ ch.pd_account}}, {% endif %} service key {{ ch.pd_service_key }} {% elif ch.kind == "pagertree" %} URL {{ ch.value }} {% elif ch.kind == "opsgenie" %} API key {{ ch.value }} {% elif ch.kind == "victorops" %} Post URL {{ ch.value }} {% elif ch.kind == "po" %} user key {{ ch.po_value|first }} ({{ ch.po_value|last }} priority) {% elif ch.kind == "slack" %} {% if ch.slack_team %} team {{ ch.slack_team }}, channel {{ ch.slack_channel }} {% else %} {{ ch.value }} {% endif %} {% elif ch.kind == "webhook" %} {% if ch.url_down %} down {{ ch.url_down }} {% endif %} {% if ch.url_up and not ch.url_down %} up {{ ch.url_up }} {% endif %} {% if ch.url_up or ch.post_data or ch.headers %} (details) {% endif %} {% elif ch.kind == "pushbullet" %} API key {{ ch.value }} {% elif ch.kind == "discord" %} {{ ch.discord_webhook_id }} {% elif ch.kind == "telegram" %} {% if ch.telegram_type == "group" %} chat {% elif ch.telegram_type == "private" %} user {% endif %} {{ ch.telegram_name }} {% elif ch.kind == "hipchat" %} {{ ch.hipchat_webhook_url }} {% elif ch.kind == "zendesk" %} {{ ch.zendesk_subdomain }}.zendesk.com {% elif ch.kind == "sms" %} {% if ch.sms_label %} {{ ch.sms_label }} ({{ ch.sms_number }}) {% else %} {{ ch.sms_number }} {% endif %} {% elif ch.kind == "trello" %} board {{ ch.trello_board_list|first }}, list {{ ch.trello_board_list|last }} {% else %} {{ ch.value }} {% endif %} {{ ch.n_checks }} of {{ num_checks }} {% with n=ch.latest_notification %} {% if n %} {% if n.error %} Failed, {{ n.created|naturaltime }} {% else %} Delivered, {{ n.created|naturaltime }} {% endif %} {% else %} Never {% endif %} {% if ch.kind == "sms" %}

Used {{ profile.sms_sent_this_month }} of {{ profile.sms_limit }} sends this month.

{% endif %} {% endwith %}

Add More

{% for ch in channels %} {% if ch.kind == "webhook" %} {% endif %} {% endfor %} {% endblock %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock %}