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
2f4b373e12
More test cases. Check.is_down() is redundant, removing.
2018-12-21 11:25:49 +02:00
Pēteris Caune
481848a749
Add "/ping/<code>/start" API endpoint
2018-12-18 22:57:12 +02:00
Pēteris Caune
5f59d97d21
Fix tests.
2018-11-08 12:27:24 +02:00
Pēteris Caune
5cf6f1b51e
Merge Check.get_status() and Check.in_grace_period() into one.
...
This avoids duplicate calls to Check.get_grace_start() in several places.
2018-06-11 19:05:18 +03:00
Pēteris Caune
dfcf7aafbe
Check.in_grace_period() looks at last_ping_was_fail
flag.
2018-05-31 11:55:29 +03:00
Pēteris Caune
3fc84ca0ff
Foundation for "fail" pings (cc: #151 )
2018-05-17 19:41:13 +03:00
Pēteris Caune
a62350cdad
In the "List checks" API response, the "next_ping" date was incorrect for checks using cron syntax. Fixed.
2017-06-29 14:41:13 +03:00
Pēteris Caune
207b0f9048
Adding on_delete keywords, more to come.
2017-05-28 13:38:38 +03:00
Pēteris Caune
5a4c3ce8ea
Fix tests.
2016-12-13 21:37:29 +02:00
Pēteris Caune
8633a5a892
Check model supports cron-style schedule
2016-12-05 11:08:06 +02:00
Pēteris Caune
4f3365e235
Cleanup, handle "paused" state in email alerts and reports
2016-08-02 09:48:17 +03:00
Pēteris Caune
ce23d65ebf
Check.get_status() returns "up" also during grace period
2016-06-21 02:22:51 +03:00
Pēteris Caune
89d37f8202
Check.in_grace_period() should not blow up if last_ping is None
2016-06-20 22:32:32 +03:00
Pēteris Caune
63cc186fa3
Nicer slack messages.
2016-01-23 15:18:59 +02:00
Pēteris Caune
1e3285423f
Ping objects get "n" field, their serial numbers, used in "log page". "fillnpings" management command initially populates this field (it touches every ping so it takes time to complete).
...
Check.n_pings now stores the total number of pings the check has ever received. Running "prunepings" command doesn't affect this field. +a new "prunepingsslow" command which works in smaller chunks so is appropriate for initial pruning of a huge api_ping table.
2016-01-03 18:11:12 +02:00
Pēteris Caune
b9ae8d464c
Sort by id, not created
, when pruning pings.
2016-01-02 22:27:25 +02:00
Pēteris Caune
7019325b48
Investigating Travis/mysql test failure
2016-01-02 22:13:48 +02:00
Pēteris Caune
940534e563
Test for check.prune_pings() method
2016-01-02 21:54:04 +02:00