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.

107 lines
3.4 KiB

  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add VictorOps - healthchecks.io{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>VictorOps</h1>
  8. <p><a href="https://victorops.com//">VictorOps</a> is
  9. another incident management system similar to PagerDuty.
  10. If you use or plan on using VitorOps, you can can integrate it
  11. with your healthchecks.io account in few simple steps.</p>
  12. <h2>Setup Guide</h2>
  13. <div class="row ai-step">
  14. <div class="col-sm-6">
  15. <span class="step-no">1</span>
  16. <p>
  17. Log into your VictorOps account,
  18. go to <strong>Settings > Schedules</strong>,
  19. and find or create the Team Schedule you
  20. would like to use for healthchecks.io alerts.
  21. </p>
  22. </div>
  23. <div class="col-sm-6">
  24. <img
  25. class="ai-guide-screenshot"
  26. src="{% static 'img/integrations/setup_victorops_1.png' %}">
  27. </div>
  28. </div>
  29. <div class="row ai-step">
  30. <div class="col-sm-6">
  31. <span class="step-no">2</span>
  32. <p>
  33. Go to <strong>Settings &gt; Integrations</strong> and scroll
  34. to the bottom of the page. Choose an existing
  35. <strong>Routing Key</strong> or
  36. add a new one, and make note of it.
  37. </p>
  38. </div>
  39. <div class="col-sm-6">
  40. <img
  41. class="ai-guide-screenshot"
  42. src="{% static 'img/integrations/setup_victorops_2.png' %}">
  43. </div>
  44. </div>
  45. <div class="row ai-step">
  46. <div class="col-sm-6">
  47. <span class="step-no">3</span>
  48. In the right hand side of
  49. <strong>Settings &gt; Integrations</strong> page,
  50. select <strong>REST Endpoint</strong>, and click on
  51. <strong>Enable Integration</strong>.
  52. </div>
  53. <div class="col-sm-6">
  54. <img
  55. class="ai-guide-screenshot"
  56. src="{% static 'img/integrations/setup_victorops_3.png' %}">
  57. </div>
  58. </div>
  59. <div class="row ai-step">
  60. <div class="col-sm-6">
  61. <span class="step-no">4</span>
  62. <p>Paste the <strong>Post URL</strong> from step 3 in the field
  63. below, being careful to replace <strong>$routing_key</strong>
  64. with your actual Routing Key from step 2. Save the integration,
  65. and it's done!</p>
  66. </div>
  67. </div>
  68. <h2>Integration Settings</h2>
  69. <form method="post" class="form-horizontal" action="{% url 'hc-add-channel' %}">
  70. {% csrf_token %}
  71. <input type="hidden" name="kind" value="victorops" />
  72. <div class="form-group">
  73. <label for="inputEmail3" class="col-sm-2 control-label">Post URL</label>
  74. <div class="col-sm-3">
  75. <input type="text" class="form-control" name="value" placeholder="">
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <div class="col-sm-offset-2 col-sm-10">
  80. <button type="submit" class="btn btn-primary">Save Integration</button>
  81. </div>
  82. </div>
  83. </form>
  84. </div>
  85. </div>
  86. </div>
  87. {% endblock %}
  88. {% block scripts %}
  89. {% compress js %}
  90. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  91. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  92. {% endcompress %}
  93. {% endblock %}