{% extends "base.html" %} {% load compress humanize staticfiles hc_extras %} {% block title %}Add Webhook - {% site_name %}{% endblock %} {% block content %}

Webhook

Webhooks are a simple way to notify an external system when a check goes up or down. healthcheks.io will run a normal HTTP GET call to your specified URL.

You can use the following variables in webhook URLs:

Variable Will be replaced with…
$CODE The UUID code of the check
$NAME Urlencoded name of the check
$STATUS Check's current status ("up" or "down")
$TAG1, $TAG2, … Urlencoded value of the first tag, the second tag, …

For example, a callback URL using variables might look like so:

http://requestb.in/1hhct291?message=$NAME:$STATUS

After encoding and replacing the variables, {% site_name %} would then call:

http://requestb.in/1hhct291?message=My%20Check:down

Integration Settings

{% csrf_token %}
{% if form.value_down.errors %}
{{ form.value_down.errors|join:"" }}
{% endif %}
{% if form.value_up.errors %}
{{ form.value_up.errors|join:"" }}
{% endif %}
{% endblock %} {% block scripts %} {% compress js %} {% endcompress %} {% endblock %}