Pēteris Caune
5f59d97d21
Fix tests.
6 years ago
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.
7 years ago
Pēteris Caune
dfcf7aafbe
Check.in_grace_period() looks at `last_ping_was_fail` flag.
7 years ago
Pēteris Caune
3fc84ca0ff
Foundation for "fail" pings (cc: #151 )
7 years ago
Pēteris Caune
a62350cdad
In the "List checks" API response, the "next_ping" date was incorrect for checks using cron syntax. Fixed.
7 years ago
Pēteris Caune
207b0f9048
Adding on_delete keywords, more to come.
8 years ago
Pēteris Caune
5a4c3ce8ea
Fix tests.
8 years ago
Pēteris Caune
8633a5a892
Check model supports cron-style schedule
8 years ago
Pēteris Caune
4f3365e235
Cleanup, handle "paused" state in email alerts and reports
8 years ago
Pēteris Caune
ce23d65ebf
Check.get_status() returns "up" also during grace period
9 years ago
Pēteris Caune
89d37f8202
Check.in_grace_period() should not blow up if last_ping is None
9 years ago
Pēteris Caune
63cc186fa3
Nicer slack messages.
9 years ago
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.
9 years ago
Pēteris Caune
b9ae8d464c
Sort by id, not `created`, when pruning pings.
9 years ago
Pēteris Caune
7019325b48
Investigating Travis/mysql test failure
9 years ago
Pēteris Caune
940534e563
Test for check.prune_pings() method
9 years ago