-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature #145028655] Add sms notification when cron job is up or down.
- Twilio integration for sending sms alerts. - Added sms integration option to the integrations page.
- Loading branch information
1 parent
ad65940
commit 4409462
Showing
10 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,9 +35,10 @@ | |
'djmail', | ||
|
||
'hc.accounts', | ||
'django_twilio', | ||
'hc.api', | ||
'hc.front', | ||
'hc.payments' | ||
'hc.payments', | ||
) | ||
|
||
MIDDLEWARE = ( | ||
|
@@ -139,6 +140,10 @@ | |
SLACK_CLIENT_ID = None | ||
SLACK_CLIENT_SECRET = None | ||
|
||
# sms integration | ||
TWILIO_ACCOUNT_SID = 'ACacce7eab5f5f5018d1c78ba0bfc36aa7' | ||
This comment has been minimized.
Sorry, something went wrong.
collinmutembei
Contributor
|
||
TWILIO_AUTH_TOKEN = '4b813e4109fe5f91e91568d202de0463' | ||
|
||
# Pushover integration -- override these in local_settings | ||
PUSHOVER_API_TOKEN = None | ||
PUSHOVER_SUBSCRIPTION_URL = None | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{% extends "base.html" %} | ||
{% load compress humanize staticfiles hc_extras %} | ||
|
||
{% block title %}Add mobile numbers to send your notifications to - healthchecks.io{% endblock %} | ||
|
||
|
||
{% block content %} | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<h1>SMS</h1> | ||
|
||
<p>Get an sms message when your check goes up or down.</p> | ||
|
||
<p> | ||
<strong>Tip:</strong> | ||
Add multiple phone numbers, to notify multiple team members. | ||
</p> | ||
|
||
<p> | ||
<strong>Confirmation needed.</strong> | ||
After entering a phone number(s), healthchecks.io will send out a confirmation link. | ||
Only confirmed numbers will receive notifications. | ||
</p> | ||
|
||
<h2>Integration Settings</h2> | ||
|
||
<form method="post" class="form-horizontal" action="{% url 'hc-add-channel' %}"> | ||
{% csrf_token %} | ||
<input type="hidden" name="kind" value="sms" /> | ||
<div class="form-group"> | ||
<label for="sms" class="col-sm-2 control-label">Phone number</label> | ||
<div class="col-sm-3"> | ||
<input | ||
id="sms" | ||
type="text" | ||
class="form-control" | ||
name="value" | ||
placeholder="2547793222"> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-sm-offset-2 col-sm-10"> | ||
<button type="submit" class="btn btn-primary">Save Integration</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
|
||
{% endblock %} | ||
|
||
{% block scripts %} | ||
{% compress js %} | ||
<script src="{% static 'js/jquery-2.1.4.min.js' %}"></script> | ||
<script src="{% static 'js/bootstrap.min.js' %}"></script> | ||
{% endcompress %} | ||
{% endblock %} |
Build job
237888670
is failing with the error