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.

111 lines
3.6 KiB

  1. {% extends "base.html" %}
  2. {% load compress humanize staticfiles hc_extras %}
  3. {% block title %}Add VictorOps - {% site_name %}{% 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 VictorOps, you can can integrate it
  11. with your {% site_name %} 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 {% site_name %} alerts.
  21. </p>
  22. </div>
  23. <div class="col-sm-6">
  24. <img
  25. class="ai-guide-screenshot"
  26. alt="Screenshot"
  27. src="{% static 'img/integrations/setup_victorops_1.png' %}">
  28. </div>
  29. </div>
  30. <div class="row ai-step">
  31. <div class="col-sm-6">
  32. <span class="step-no">2</span>
  33. <p>
  34. Go to <strong>Settings &gt; Integrations</strong> and scroll
  35. to the bottom of the page. Choose an existing
  36. <strong>Routing Key</strong> or
  37. add a new one, and make note of it.
  38. </p>
  39. </div>
  40. <div class="col-sm-6">
  41. <img
  42. class="ai-guide-screenshot"
  43. alt="Screenshot"
  44. src="{% static 'img/integrations/setup_victorops_2.png' %}">
  45. </div>
  46. </div>
  47. <div class="row ai-step">
  48. <div class="col-sm-6">
  49. <span class="step-no">3</span>
  50. In the right hand side of
  51. <strong>Settings &gt; Integrations</strong> page,
  52. select <strong>REST Endpoint</strong>, and click on
  53. <strong>Enable Integration</strong>.
  54. </div>
  55. <div class="col-sm-6">
  56. <img
  57. class="ai-guide-screenshot"
  58. alt="Screenshot"
  59. src="{% static 'img/integrations/setup_victorops_3.png' %}">
  60. </div>
  61. </div>
  62. <div class="row ai-step">
  63. <div class="col-sm-6">
  64. <span class="step-no">4</span>
  65. <p>Paste the <strong>Post URL</strong> from step 3 in the field
  66. below, being careful to replace <strong>$routing_key</strong>
  67. with your actual Routing Key from step 2. Save the integration,
  68. and it's done!</p>
  69. </div>
  70. </div>
  71. <h2>Integration Settings</h2>
  72. <form method="post" class="form-horizontal" action="{% url 'hc-add-channel' %}">
  73. {% csrf_token %}
  74. <input type="hidden" name="kind" value="victorops" />
  75. <div class="form-group">
  76. <label for="post-url" class="col-sm-2 control-label">Post URL</label>
  77. <div class="col-sm-10">
  78. <input
  79. id="post-url"
  80. type="text"
  81. class="form-control"
  82. name="value"
  83. placeholder="">
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <div class="col-sm-offset-2 col-sm-10">
  88. <button type="submit" class="btn btn-primary">Save Integration</button>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. {% endblock %}
  95. {% block scripts %}
  96. {% compress js %}
  97. <script src="{% static 'js/jquery-2.1.4.min.js' %}"></script>
  98. <script src="{% static 'js/bootstrap.min.js' %}"></script>
  99. {% endcompress %}
  100. {% endblock %}