210 Commits

Author SHA1 Message Date
Pēteris Caune
42497fe91a
Add rate limiting to the sudo code form 2020-11-13 22:04:19 +02:00
Pēteris Caune
816c158744
Fix code formatting in the Notification model 2020-11-06 18:50:23 +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
6f56ed7f92
Reduce the number of SQL queries used in the "Get Checks" API call 2020-10-27 16:19:57 +02:00
Pēteris Caune
b64c8d1cb8
API support for setting the allowed HTTP methods for making ping requests 2020-09-10 10:29:44 +03:00
Pēteris Caune
94b993354f
Sort integrations in A-Z order. Rename "LineNotify" -> "LINE Notify". Update the LINE Notify icon. 2020-08-20 11:16:59 +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
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
750b96c374
Use Django 3.1 2020-08-05 13:11:39 +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
ee9ac0ffef
New integration: phone calls. Fixes #403 2020-07-29 18:30:50 +03:00
Pēteris Caune
0d03e3f00b
Add "Failure Keyword" filtering for inbound emails (cc: #396) 2020-07-21 14:57:48 +03:00
Pēteris Caune
589c0c0363
Updated Discord integration to use discord.com instead of discordapp.com 2020-07-17 13:36:41 +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
149096811d
In the checks list, indicate a started check with a progress spinner under the status icon (cc: #338) 2020-06-25 16:44:25 +03:00
Pēteris Caune
a18eb134f5
Refactor: change Check.get_status(with_started=...) default value from True to False (with_started=False is or will be useful in more places) 2020-06-25 15:23:59 +03:00
Pēteris Caune
832580f343
Simplify hc.api.views.flips, add validation and more tests. 2020-06-15 13:08:17 +03:00
Pēteris Caune
60d1c6e2a3
Format timestamp as ISO 8601 without microseconds, same as elsewhere. 2020-06-15 12:20:07 +03:00
Pēteris Caune
a90f8a3a56
Remove unused code. 2020-06-15 12:17:15 +03:00
James Kirsop
368d7a4fec Commit with requested changes and tests 2020-06-15 13:15:57 +10:00
James Kirsop
7d625cb6a6 Merge branch 'return-single-history' of https://github.com/jameskirsop/healthchecks into return-single-history 2020-06-12 13:39:13 +10:00
James Kirsop
90d4246848 Second interation of this 2020-06-12 13:39:03 +10:00
James Kirsop
4b1b232959 Chnange 'status' field in response to 'up' 2020-06-12 09:16:59 +10:00
James Kirsop
bc6ccd55b3 Implementation of history using Flips model statuses for a check 2020-06-12 09:16:59 +10:00
James Kirsop
aaadf6031f Sample work for review 2020-06-12 09:16:59 +10:00
Pēteris Caune
a07325e40f
Add "Get a list of checks's logged pings" API call (#371) 2020-06-09 18:09:57 +03:00
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376 2020-06-09 15:16:39 +03:00
Pēteris Caune
3eebd8968d
Added "When paused, ignore pings" option in the Filtering Rules dialog (#369) 2020-06-02 10:54:16 +03:00
Pēteris Caune
56bb49f1f3
Use Slack V2 OAuth flow 2020-04-02 10:57:10 +03:00
James Kirsop
74f4744c62 Implementation of history using Flips model statuses for a check 2020-03-27 14:19:57 +11:00
James Kirsop
010bbc9507 Sample work for review 2020-03-27 09:30:26 +11:00
Pēteris Caune
4a43ed59fc
Rate limiting for Telegram notifications (10 notifications per chat per minute) 2020-03-24 23:33:02 +02:00
James Kirsop
456a80f1fa Adding tests and docs 2020-03-23 11:37:32 +11:00
Pēteris Caune
f352efdd5f
Experimental Zulip integration. Fixes #202 2020-03-11 16:38:29 +02:00
Pēteris Caune
12b946acf3
Experimental Prometheus metrics endpoint. cc: #300 2020-02-14 16:12:13 +02:00
Pēteris Caune
77033760f9
Make sure Check.last_ping and Ping.created timestamps match exactly 2020-01-17 14:30:32 +02:00
Pēteris Caune
58a118c494
Make Ping.body size limit configurable. Fixes #301 2020-01-17 12:44:39 +02:00
Pēteris Caune
4ee2646539
Show a red "!" in project's top navigation if any integration is not working 2020-01-03 13:15:24 +02:00
Pēteris Caune
84a4de32cc
Remove legacy webhook formats (newline-separated fields and the post_data key) from the Channel model 2019-12-27 15:07:15 +02:00
Pēteris Caune
0d2c6217d3
Auto-submit the unsubscribe confirmation form only if signature is more than 5 minutes old. Idea from https://stackoverflow.com/questions/59281750/strategies-to-prevent-email-scanners-from-activating-unsubscribe-links/59381066#59381066 2019-12-18 16:10:30 +02:00
Pēteris Caune
3f19181028
"Filtering Rules" dialog, an option to require HTTP POST. Fixes #297 2019-11-27 16:33:36 +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
9cbd3bfc5a
In monthly reports, no downtime stats for the current month (month has just started) 2019-11-06 10:41:14 +02:00
Pēteris Caune
1dea8b6050
Add support for OpsGenie EU region. Fixes #294 2019-10-14 20:31:25 +03:00
Pēteris Caune
0d924f4627
Add the "Last Duration" field in the "My Checks" page. Add "last_duration" attribute to the Check API resource. Fixes #257 2019-09-03 13:46:41 +03:00
Pēteris Caune
862bafc331
Mattermost integration WIP cc: #276 2019-08-20 22:59:11 +03:00
Chris Caron
c2b1d00422 Apprise Integration 2019-08-07 19:36:06 -04:00