100 Commits

Author SHA1 Message Date
Pēteris Caune
3b6afae140
Specify timeout in the DBus calls 2021-01-14 09:59:06 +02:00
Pēteris Caune
d7c7ae6531
Fix tests 2021-01-13 12:13:14 +02:00
Pēteris Caune
74ed15e0aa
Update the signal integration to use DBus
The initial implementation was just calling signal-cli directly
using `subprocess.run`.

Going with DBus makes it easier to shield signal-cli from the
rest of the system. It also makes sure the signal-cli daemon is
running in the background and receiving messages. This is important
when a recipient does the "Reset secure connection" from the app. We
must receive their new keys, otherwise our future messages will
appear as "bad encrypted message" for them.
2021-01-13 11:52:42 +02:00
Pēteris Caune
a80b831eea
Add rate-limiting for Signal messages 2021-01-11 15:07:34 +02:00
Pēteris Caune
d4aac691ce
Increase the timeout for sending Signal messages 2021-01-11 12:56:53 +02:00
Pēteris Caune
cd99af14ba
Add Signal integration
Fixes: #428
2021-01-09 11:58:18 +02:00
Pēteris Caune
8fe8e0f605
Update alert email template: more information, less styling
Fixes: #348
2020-12-26 18:11:36 +02:00
Pēteris Caune
0b685e8b5a
Disable retries when testing webhook integration
Normally, when a webhook call fails (timeout, connection
error, non-2xx response), the HTTP request is retried up to two
times (so up to 3 times total). This is useful when sending
actual notifications, in case the webhook target has a temporary
glitch.

When interactively testing a webhook integration
("Send Test Notification" in the
"Integrations" page), we would prefer to see any errors ASAP
on the screen instead of retrying and so possibly swallowing them.

One specific use case is webhook targets that take long time to
generate a response. "Send Test Notification" is synchronous,
meaning that the user could be stuck for
5 x 3 = 15 seconds waiting for the  test HTTP request to time out
three times.
2020-10-30 12:36:17 +02:00
Pēteris Caune
463ec8c988
Set the "title" and "summary" fields in MS Teams notifications
Fixes: #435
2020-10-06 16:43:56 +03:00
Pēteris Caune
05c81e0a41
Escape markdown in MS Teams notifications. cc: #426 2020-09-11 11:49:46 +03:00
carson.wang
74668551a7
Add tests & Doesn't get LineNotify token using setting 2020-08-20 10:42:04 +03:00
carson.wang
65b65188d1
Test LineNotify integration with healthcheck 2020-08-20 10:42:00 +03:00
Pēteris Caune
8ea510cda6
Removing unused /api/v1/notifications/{uuid}/bounce endpoint 2020-08-17 13:18:39 +03:00
Pēteris Caune
ae01c7a9d1
Handle Twilio status callbacks for SMS, WhatsApp and phone call notifications. 2020-08-05 17:12:23 +03:00
Pēteris Caune
95d58d26d5
Handle status callbacks from Twilio, show SMS delivery failures in the Integrations page. 2020-08-05 16:10:30 +03:00
Pēteris Caune
2ed9a8fd30
Rename Channel.sms_number property to Channel.phone_number. It is now used for SMS, WhatsApp and phone call notifications, so "sms_number" is not accurate any more. 2020-08-04 16:26:13 +03:00
Pēteris Caune
d05691f86f
SMS and phone calls now have separate "limit reached" email templates. 2020-08-03 18:00:48 +03:00
Pēteris Caune
8c13457037
Use separate counters for SMS and phone calls. 2020-08-03 17:52:09 +03:00
Pēteris Caune
ee9ac0ffef
New integration: phone calls. Fixes #403 2020-07-29 18:30:50 +03:00
Pēteris Caune
ec5ee03a3e
Add "check_id" in Spike payload. 2020-07-15 17:56:18 +03:00
Pēteris Caune
58f16da935
Edits to Spike setup instructions. 2020-07-09 11:22:14 +03:00
Divyansh
6300947c77
integration for Spike 2020-07-09 10:44:40 +03:00
Pēteris Caune
3a00c0d2aa
Sending a test notification updates Channel.last_error. Fixes #391 2020-07-01 14:03:11 +03:00
Pēteris Caune
8e51d26595
Removing Pager Team integration, project appears to be discontinued 2020-06-09 13:26:15 +03:00
Sandro Jäckel
38382d662d
Fix typos with codespell 2020-04-14 03:53:16 +02:00
Pēteris Caune
4a43ed59fc
Rate limiting for Telegram notifications (10 notifications per chat per minute) 2020-03-24 23:33:02 +02:00
Pēteris Caune
25d7d5409f
Telegram integration returns more detailed error messages 2020-03-19 22:16:22 +02:00
Pēteris Caune
5f2c20e46b
Zulip integration returns more detailed error messages 2020-03-19 22:05:13 +02:00
Pēteris Caune
8c7f3977e2
OpsGenie integration returns more detailed error messages 2020-03-19 21:58:17 +02:00
Pēteris Caune
f352efdd5f
Experimental Zulip integration. Fixes #202 2020-03-11 16:38:29 +02:00
Pēteris Caune
6ebae33579
Fix "Send Test Notification" for webhooks that only fire on checks going up 2019-12-27 14:36:32 +02:00
Pēteris Caune
f7496fb8cf
Add List-Unsubscribe-Post email header 2019-12-10 09:44:51 +02:00
Pēteris Caune
f9c61dad23
Fix List-Unsubscribe email header value: add angle brackets 2019-12-09 14:04:14 +02:00
Pēteris Caune
0349a3997b
PagerDuty event payload does not need the "vendor" key. 2019-11-22 11:29:09 +02:00
Pēteris Caune
98ba51f44f
Use hc.lib.string.replace for webhooks too.
hc.lib.string.replace only replaces placeholders that appear in the original template. It ignores any placeholders that "emerge" while doing string substitutions. This is done mainly to avoid unexpected behavior when check names or tags contain dollar signs.
2019-11-20 17:44:41 +02:00
Pēteris Caune
8d81ea8f9d
Add "Shell Commands" integration. Fixes #302 2019-11-20 16:00:53 +02:00
Pēteris Caune
dc84b7be01
Add Microsoft Teams integration. Fixes #135 2019-11-14 15:19:40 +02:00
Pēteris Caune
66a6de70c0
Send email notification when monthly SMS sending limit is reached. Fixes #292 2019-10-18 17:15:02 +03:00
Pēteris Caune
1dea8b6050
Add support for OpsGenie EU region. Fixes #294 2019-10-14 20:31:25 +03:00
Chris Caron
b5a03369b6 Apprise Notifications are now a controlled via settings 2019-08-08 20:28:54 -04:00
Chris Caron
c2b1d00422 Apprise Integration 2019-08-07 19:36:06 -04:00
Pēteris Caune
479208abf0
Webhooks support the $TAGS placeholder 2019-06-04 23:40:08 +03:00
Pēteris Caune
40f4adf78b
Add WhatsApp integration (uses Twilio same as the SMS integration) 2019-05-31 13:01:01 +03:00
Pēteris Caune
d054970b02
Webhooks support PUT method.
.Webhooks can have different request bodies and headers for "up" and "events".
2019-05-28 14:25:29 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
a4fde44e3a
Can configure the email integration to only report the "down" events. Fixes #231 2019-04-10 17:54:19 +03:00
Michal Bryc
6f1ade98e2 Add more views 2019-03-13 22:03:24 -07:00
Pēteris Caune
f8c0c20d34
Retire HipChat. 2019-02-25 22:31:27 +02:00
Pēteris Caune
f539e99652
Matrix integration WIP. cc: #175 2019-02-22 18:23:36 +02:00
Pēteris Caune
caf6668478
Prepare for the removal of Check.user_id and Channel.user_id 2019-01-18 16:44:09 +02:00