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.

108 lines
3.6 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}VictorOps Integration for {% 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"></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"></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"></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"></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">
  73. {% csrf_token %}
  74. <div class="form-group {{ form.value.css_classes }}">
  75. <label for="post-url" class="col-sm-2 control-label">Post URL</label>
  76. <div class="col-sm-10">
  77. <input
  78. id="post-url"
  79. type="text"
  80. class="form-control"
  81. name="value"
  82. placeholder="https://"
  83. value="{{ form.value.value|default:"" }}">
  84. {% if form.value.errors %}
  85. <div class="help-block">
  86. {{ form.value.errors|join:"" }}
  87. </div>
  88. {% endif %}
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <div class="col-sm-offset-2 col-sm-10">
  93. <button type="submit" class="btn btn-primary">Save Integration</button>
  94. </div>
  95. </div>
  96. </form>
  97. </div>
  98. </div>
  99. {% endblock %}