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.

52 lines
1.8 KiB

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