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.

86 lines
3.1 KiB

  1. {% extends "base.html" %}
  2. {% load humanize static hc_extras %}
  3. {% block title %}Spike.sh Integration for {% site_name %}{% endblock %}
  4. {% block content %}
  5. <div class="row">
  6. <div class="col-sm-12">
  7. <h1>Spike.sh</h1>
  8. <p>If you are using <a href="https://spike.sh">Spike.sh</a>,
  9. you can set up {% site_name %} to create a Spike.sh incident when a check
  10. goes down, and resolve it when a check goes back up.</p>
  11. <h2>Setup Guide</h2>
  12. <div class="row ai-step">
  13. <div class="col-sm-6">
  14. <span class="step-no"></span>
  15. <p>
  16. Log into your Spike.sh account and go to
  17. <strong>Integrations › New Integration</strong>.
  18. Select "Healthchecks" and click "Next".
  19. </p>
  20. </div>
  21. <div class="col-sm-6">
  22. <img class="ai-guide-screenshot" alt="Click create integration button"
  23. src="{% static 'img/integrations/setup_spike_1.png' %}" />
  24. </div>
  25. </div>
  26. <div class="row ai-step">
  27. <div class="col-sm-6">
  28. <span class="step-no"></span>
  29. <p>
  30. After you have created the integration, click on
  31. <strong>Copy Webhook</strong>.
  32. </p>
  33. </div>
  34. <div class="col-sm-6">
  35. <img class="ai-guide-screenshot" alt="Create Healthchecks.io integration with details"
  36. src="{% static 'img/integrations/setup_spike_2.png' %}">
  37. </div>
  38. </div>
  39. <div class="row ai-step">
  40. <div class="col-sm-6">
  41. <span class="step-no"></span>
  42. <p>
  43. Copy the shown webhook URL and paste it in the form below.
  44. Save the integration, and you are done!
  45. </p>
  46. </div>
  47. <div class="col-sm-6">
  48. <img class="ai-guide-screenshot" alt="Copy the Webhook URL"
  49. src="{% static 'img/integrations/setup_spike_3.png' %}">
  50. </div>
  51. </div>
  52. <h2>Integration Settings</h2>
  53. <form method="post" class="form-horizontal">
  54. {% csrf_token %}
  55. <div class="form-group {{ form.value.css_classes }}">
  56. <label for="post-url" class="col-sm-2 control-label">Webhook URL</label>
  57. <div class="col-sm-10">
  58. <input id="post-url" type="text" class="form-control" name="value" placeholder="https://"
  59. value="{{ form.value.value|default:"" }}">
  60. {% if form.value.errors %}
  61. <div class="help-block">
  62. {{ form.value.errors|join:"" }}
  63. </div>
  64. {% endif %}
  65. </div>
  66. </div>
  67. <div class="form-group">
  68. <div class="col-sm-offset-2 col-sm-10">
  69. <button type="submit" class="btn btn-primary">Save Integration</button>
  70. </div>
  71. </div>
  72. </form>
  73. </div>
  74. </div>
  75. {% endblock %}