Pēteris Caune
e1f51093f1
Implement automatic `api_ping` and `api_notification` pruning
cc: #556
3 years ago
Pēteris Caune
5979204691
Fix downtime summary to handle months when the check didn't exist
Fixes : #472
4 years ago
Pēteris Caune
149096811d
In the checks list, indicate a started check with a progress spinner under the status icon (cc: #338 )
4 years ago
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)
4 years ago
Pēteris Caune
4bcfba728e
Use unittest.mock
5 years ago
Pēteris Caune
b2ebce6cf9
Show the number of downtimes and total downtime minutes in "Check Details" page.
5 years ago
Pēteris Caune
b7320b1b69
In monthly report, show months in ascending order. Cleanup.
5 years ago
Pēteris Caune
cb2e763e98
Cleanup in `Check.outages_by_month()` and tests.
5 years ago
Pēteris Caune
cdfc9840a7
Source formatted with Black
6 years ago
Pēteris Caune
0994006603
Drop Check.user_id and Channel.user_id (obsolete, using project_id now)
6 years ago
Pēteris Caune
965998df18
Fix tests.
6 years ago
Pēteris Caune
be4c4f7a26
set Check.user to not null, add uniqueness constraint to Check.code
6 years ago
Pēteris Caune
2f4b373e12
More test cases. Check.is_down() is redundant, removing.
6 years ago
Pēteris Caune
481848a749
Add "/ping/<code>/start" API endpoint
6 years ago
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