You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.8 KiB

10 years ago
  1. {% extends "base.html" %}
  2. {% load staticfiles %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-12">
  6. <h3>Checks and pinging</h3>
  7. <p>
  8. Each check you create in <a href="{% url 'hc-checks' %}">My Checks</a>
  9. page has an unique "ping" URL. Whenever you access this URL,
  10. the "Last Ping" value of corresponding check is updated.
  11. </p>
  12. <p>When a certain amount of time passes since last received ping, the
  13. check is considered "late", and Health Checks sends an email notification.
  14. It is all very simple, really.</p>
  15. <h3>Executing a ping</h3>
  16. <p>
  17. At the end of your batch job, add a bit of code to ping
  18. one of your checks.
  19. </p>
  20. <ul>
  21. <li>HTTP and HTTPS protocols both are fine</li>
  22. <li>Request method can be GET or POST</li>
  23. <li>It does not matter what request headers you send</li>
  24. <li>You can leave request body empty or put anything in it, it's all good</li>
  25. </ul>
  26. <p>The response will have status code "200 OK" and response body will be a
  27. short and simple string "OK".</p>
  28. <p>
  29. In bash scripts, you can use <code>wget</code> or <code>curl</code> to run the requests:
  30. </p>
  31. <pre>
  32. wget https://healthchecks.io/ping/b2012751-c542-4deb-b054-ff51322102b9/
  33. </pre>
  34. <h3>When notifications are sent</h3>
  35. <p>
  36. Each check has a configurable "Frequency" parameter, with default value of <strong>one day</strong>.
  37. When time since last ping exceeds the configured amount, the check is considered late.
  38. When a check is <strong>1 hour late</strong>, Health Checks sends you an email notification.
  39. </p>
  40. </div>
  41. </div>
  42. {% endblock %}