24 Commits

Author SHA1 Message Date
Pēteris Caune
20df5843e3
Don't update Ping.start and Ping.fail fields (use Ping.kind instead) 2019-01-04 12:57:29 +02:00
Pēteris Caune
7480eca2a5
Add Ping.kind field 2019-01-04 11:24:53 +02:00
Pēteris Caune
be4c4f7a26
set Check.user to not null, add uniqueness constraint to Check.code 2019-01-02 09:58:54 +02:00
Pēteris Caune
eee6fc12f4
Overwrite Check.last_start value 2018-12-21 14:02:25 +02:00
Pēteris Caune
fe04429fad
Don't update last_ping_was_fail, it is not read anywhere anymore. 2018-12-21 13:17:00 +02:00
Pēteris Caune
5f9ebb178c
Rename "Check.get_alert_after" to a now more fitting "Check.going_down_after" 2018-12-19 21:57:48 +02:00
Pēteris Caune
481848a749
Add "/ping/<code>/start" API endpoint 2018-12-18 22:57:12 +02:00
Pēteris Caune
3fc84ca0ff
Foundation for "fail" pings (cc: #151) 2018-05-17 19:41:13 +03:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +03:00
Pēteris Caune
02f6853d4c Save request body for every ping, not just the last one. 2018-03-18 14:55:41 +02:00
Pēteris Caune
47d93c2522 Stricter UUID validation. 2017-06-08 17:02:26 +03:00
Pēteris Caune
3862cd6b06 Adding Check.last_ping_body field, and an UI to show it (#116) 2017-05-09 13:47:23 +03:00
Pēteris Caune
5dafc07c29 Return 403 when API key is wrong. Return 404 when resource not found. Return 405 when request method is wrong. Return 400 when request syntax is wrong. 2017-03-10 10:35:21 +02:00
Pēteris Caune
ce57a1cc8b Calculate alert_after in Python code instead of a database trigger. This will allow complex calculations down the road. 2016-11-04 16:30:19 +02:00
Pēteris Caune
51cda31449 New feature: pause monitoring of an individual check. Fixes #67 2016-08-01 21:57:11 +03:00
Di Wu
2e6df69489 forwarded for and forwarded protocol 2016-01-21 18:36:26 -08:00
Di Wu
fe72792fd2 use basetestcase for most test cases that require predefined user, add test for ensuretriggers, add travis cache 2016-01-18 01:02:42 -08:00
Pēteris Caune
947f686c61 Organize imports using isort. 2015-11-02 23:55:33 +02:00
Pēteris Caune
d81555687e Test for HEAD method, note about IPv6 2015-08-18 10:52:22 +03:00
Pēteris Caune
b75ab00d18 Webhook for Mandrill inbound email notifications 2015-08-01 15:55:43 +03:00
Pēteris Caune
f640b9f3be Make ua column wider, and truncate its values for very long UA strings 2015-08-01 15:20:11 +03:00
Pēteris Caune
969626c0fa Validate UUID, more tests. 2015-07-28 20:46:17 +03:00
Pēteris Caune
965599c8eb ping is csrf exempt. 2015-07-22 21:41:15 +03:00
Pēteris Caune
2131c6512b Another quick test 2015-06-25 22:39:39 +03:00