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.

123 lines
3.8 KiB

9 years ago
  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Add PagerDuty - {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>PagerDuty</h1>
  8. <div class="jumbotron">
  9. {% if request.user.is_authenticated %}
  10. <p>If your team uses <a href="https://www.pagerduty.com">PagerDuty</a>,
  11. you can set up {% site_name %} to create a PagerDuty incident when
  12. a check goes down, and resolve it when a check goes back up.</p>
  13. {% if connect_url %}
  14. <div class="text-center">
  15. <div class="text-center">
  16. <a href="{{ connect_url|safe }}">
  17. <img
  18. alt="Alert with PagerDuty"
  19. height="55" width="299"
  20. src="{% static 'img/integrations/pd_connect_button.png' %}" />
  21. </a>
  22. </div>
  23. </div>
  24. {% endif %}
  25. {% else %}
  26. <p>
  27. {% site_name %} is a <strong>free</strong> and
  28. <a href="https://github.com/healthchecks/healthchecks">open source</a>
  29. service for monitoring your cron jobs, background processes and
  30. scheduled tasks. Before adding PagerDuty integration, please log into
  31. {% site_name %}:</p>
  32. <div class="text-center">
  33. <a href="{% url 'hc-login' %}"
  34. class="btn btn-primary btn-lg">Sign In</a>
  35. </div>
  36. {% endif %}
  37. </div>
  38. <h2>Setup Guide</h2>
  39. {% if not connect_url %}
  40. <div class="row ai-step">
  41. <div class="col-sm-6">
  42. <span class="step-no"></span>
  43. <p>
  44. {% if request.user.is_authenticated %}
  45. Go
  46. {% else %}
  47. After logging in, go
  48. {% endif %}
  49. to the <strong>Integrations</strong> page,
  50. and click on <strong>Add Integration</strong> next to the
  51. PagerDuty integration.
  52. </p>
  53. </div>
  54. <div class="col-sm-6">
  55. <img
  56. class="ai-guide-screenshot"
  57. alt="Screenshot"
  58. src="{% static 'img/integrations/setup_pdc_0.png' %}">
  59. </div>
  60. </div>
  61. {% endif %}
  62. <div class="row ai-step">
  63. <div class="col-sm-6">
  64. <span class="step-no"></span>
  65. <p>
  66. Click on "Alert with PagerDuty", and you will be
  67. asked to log into your PagerDuty account.
  68. </p>
  69. </div>
  70. <div class="col-sm-6">
  71. <img
  72. class="ai-guide-screenshot"
  73. alt="Screenshot"
  74. src="{% static 'img/integrations/setup_pdc_1.png' %}">
  75. </div>
  76. </div>
  77. <div class="row ai-step">
  78. <div class="col-sm-6">
  79. <span class="step-no"></span>
  80. <p>
  81. Next, PagerDuty will let set the name and escalation policy
  82. for this integration.
  83. </p>
  84. </div>
  85. <div class="col-sm-6">
  86. <img
  87. class="ai-guide-screenshot"
  88. alt="Screenshot"
  89. src="{% static 'img/integrations/setup_pdc_2.png' %}">
  90. </div>
  91. </div>
  92. <div class="row ai-step">
  93. <div class="col-sm-6">
  94. <span class="step-no"></span>
  95. <p>
  96. And that is all! You will then be redirected back to
  97. "Integrations" page on {% site_name %} and see
  98. the new integration!
  99. </p>
  100. </div>
  101. <div class="col-sm-6">
  102. <img
  103. class="ai-guide-screenshot"
  104. alt="Screenshot"
  105. src="{% static 'img/integrations/setup_pdc_3.png' %}">
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. {% endblock %}