35 Commits

Author SHA1 Message Date
Pēteris Caune
4587b45cab
Add more tests for hc.api.views.create_check 2021-04-14 12:21:58 +03:00
Pēteris Caune
617bd92434
Add Ping.exitstatus field, store received exit status values in db
Fixes #455
2020-11-29 12:12:44 +02:00
Pēteris Caune
81e59ac553
Add support for script's exit status in ping URLs
Fixes: #429
2020-10-28 14:28:32 +02: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
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
3f19181028
"Filtering Rules" dialog, an option to require HTTP POST. Fixes #297 2019-11-27 16:33:36 +02: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
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
0994006603
Drop Check.user_id and Channel.user_id (obsolete, using project_id now) 2019-01-18 17:24:02 +02:00
Pēteris Caune
965998df18
Fix tests. 2019-01-14 11:28:10 +02:00
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