Browse Source

Edits to Spike setup instructions.

pull/405/head
Pēteris Caune 4 years ago
parent
commit
58f16da935
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
7 changed files with 21 additions and 29 deletions
  1. +1
    -2
      hc/api/transports.py
  2. BIN
      static/img/integrations/setup_spike_1.png
  3. BIN
      static/img/integrations/setup_spike_2.png
  4. BIN
      static/img/integrations/spike.png
  5. +4
    -4
      templates/front/channels.html
  6. +1
    -1
      templates/integrations/add_opsgenie.html
  7. +15
    -22
      templates/integrations/add_spike.html

+ 1
- 2
hc/api/transports.py View File

@ -579,7 +579,6 @@ class Zulip(HttpTransport):
return self.post(url, data=data, auth=auth) return self.post(url, data=data, auth=auth)
class Spike(HttpTransport): class Spike(HttpTransport):
def notify(self, check): def notify(self, check):
url = self.channel.value url = self.channel.value
@ -587,7 +586,7 @@ class Spike(HttpTransport):
payload = { payload = {
"title": tmpl("spike_title.html", check=check), "title": tmpl("spike_title.html", check=check),
"message": tmpl("spike_description.html", check=check), "message": tmpl("spike_description.html", check=check),
"status": check.status
"status": check.status,
} }
return self.post(url, json=payload, headers=headers) return self.post(url, json=payload, headers=headers)

BIN
static/img/integrations/setup_spike_1.png View File

Before After
Width: 1890  |  Height: 1312  |  Size: 285 KiB Width: 1000  |  Height: 649  |  Size: 100 KiB

BIN
static/img/integrations/setup_spike_2.png View File

Before After
Width: 2242  |  Height: 480  |  Size: 72 KiB Width: 1000  |  Height: 177  |  Size: 31 KiB

BIN
static/img/integrations/spike.png View File

Before After
Width: 256  |  Height: 256  |  Size: 4.7 KiB Width: 256  |  Height: 256  |  Size: 2.6 KiB

+ 4
- 4
templates/front/channels.html View File

@ -278,7 +278,7 @@
class="icon" alt="PagerTree icon" /> class="icon" alt="PagerTree icon" />
<h2>PagerTree</h2> <h2>PagerTree</h2>
<p>DevOps Incident Management - On-Call Schedules, Alerts, &amp; Notifications</p>
<p>DevOps Incident Management - On-Call Schedules, Alerts, &amp; Notifications.</p>
<a href="{% url 'hc-add-pagertree' project.code %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-pagertree' project.code %}" class="btn btn-primary">Add Integration</a>
</li> </li>
@ -334,12 +334,12 @@
<a href="{% url 'hc-add-sms' project.code %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-sms' project.code %}" class="btn btn-primary">Add Integration</a>
</li> </li>
{% endif %} {% endif %}
<li> <li>
<img src="{% static 'img/integrations/spike.png' %}" class="icon" alt="Spike.sh icon" /> <img src="{% static 'img/integrations/spike.png' %}" class="icon" alt="Spike.sh icon" />
<h2>Spike.sh</h2> <h2>Spike.sh</h2>
<p>No BS Incident management with unlimited alerts and on-call schedules</p>
<p>Incident management with unlimited alerts and on-call schedules.</p>
<a href="{% url 'hc-add-spike' project.code %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-spike' project.code %}" class="btn btn-primary">Add Integration</a>
</li> </li>
@ -348,7 +348,7 @@
<li> <li>
<img src="{% static 'img/integrations/telegram.png' %}" <img src="{% static 'img/integrations/telegram.png' %}"
class="icon" alt="Telegram icon" /> class="icon" alt="Telegram icon" />
<h2>Telegram</h2> <h2>Telegram</h2>
<p>A messaging app with a focus on speed and security.</p> <p>A messaging app with a focus on speed and security.</p>
<a href="{% url 'hc-add-telegram' %}" class="btn btn-primary">Add Integration</a> <a href="{% url 'hc-add-telegram' %}" class="btn btn-primary">Add Integration</a>


+ 1
- 1
templates/integrations/add_opsgenie.html View File

@ -20,7 +20,7 @@
<span class="step-no"></span> <span class="step-no"></span>
<p> <p>
Log into your OpsGenie account, Log into your OpsGenie account,
go to <strong>Settings &gt; Integration list</strong>,
go to <strong>Settings Integration list</strong>,
and add a new "API" integration. and add a new "API" integration.
</p> </p>
<p> <p>


+ 15
- 22
templates/integrations/add_spike.html View File

@ -9,8 +9,9 @@
<div class="col-sm-12"> <div class="col-sm-12">
<h1>Spike.sh</h1> <h1>Spike.sh</h1>
<p>If you are using <a href="https://spike.sh">Spike.sh</a>, make sure to please copy the Healthchecks webhook
and paste it here. Read through the instructions.</p>
<p>If you are using <a href="https://spike.sh">Spike.sh</a>,
you can set up {% site_name %} to create a Spike.sh incident when a check
goes down, and resolve it when a check goes back up.</p>
<h2>Setup Guide</h2> <h2>Setup Guide</h2>
@ -18,17 +19,14 @@
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no"></span> <span class="step-no"></span>
<p> <p>
Create a <strong>Healthchecks</strong> integration by clicking on <a
href="https://app.spike.sh/integrations/new">add
integration</a> on Spike.sh’s dashboard.
Log into your Spike.sh account and go to
<strong>Integrations › New Integration</strong>.
Select "Healthchecks" and click "Next".
</p> </p>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="marker-wrap">
<span style="left: 89%; top: 19%;" class="marker"></span>
<img class="ai-guide-screenshot" alt="Click create integration button"
src="{% static 'img/integrations/setup_spike_1.png' %}" />
</div>
<img class="ai-guide-screenshot" alt="Click create integration button"
src="{% static 'img/integrations/setup_spike_1.png' %}" />
</div> </div>
</div> </div>
@ -36,7 +34,8 @@
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no"></span> <span class="step-no"></span>
<p> <p>
After you have created the integration, click on copy webhook.
After you have created the integration, click on
<strong>Copy Webhook</strong>.
</p> </p>
</div> </div>
@ -50,19 +49,13 @@
<div class="col-sm-6"> <div class="col-sm-6">
<span class="step-no"></span> <span class="step-no"></span>
<p> <p>
This modal with the details for the webhook will show up. Copy that webhook and paste it below. Make
sure you have Healthchecks integration’s webhook so Spike.sh can create and resolve incidents
automatically.
Copy the shown webhook URL and paste it in the form below.
Save the integration, and you are done!
</p> </p>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="marker-wrap">
<span style="left: 32%; top: 59%;" class="marker"></span>
<img class="ai-guide-screenshot" alt="Copy the Webhook URL"
src="{% static 'img/integrations/setup_spike_3.png' %}">
</div>
<img class="ai-guide-screenshot" alt="Copy the Webhook URL"
src="{% static 'img/integrations/setup_spike_3.png' %}">
</div> </div>
</div> </div>
@ -71,7 +64,7 @@
<form method="post" class="form-horizontal"> <form method="post" class="form-horizontal">
{% csrf_token %} {% csrf_token %}
<div class="form-group {{ form.value.css_classes }}"> <div class="form-group {{ form.value.css_classes }}">
<label for="post-url" class="col-sm-2 control-label">Endpoint</label>
<label for="post-url" class="col-sm-2 control-label">Webhook URL</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input id="post-url" type="text" class="form-control" name="value" placeholder="https://" <input id="post-url" type="text" class="form-control" name="value" placeholder="https://"
value="{{ form.value.value|default:"" }}"> value="{{ form.value.value|default:"" }}">


Loading…
Cancel
Save