Pēteris Caune
|
9f2638bf72
|
The sendalerts commands measures notification dwell time and reports it over statsd protocol. Experimental, may go away in a future commit.
|
5 years ago |
Pēteris Caune
|
6bc4948d00
|
Removing obsolete comment: the index is defined in hc.api.models.Check.Meta
|
5 years ago |
Pēteris Caune
|
cdfc9840a7
|
Source formatted with Black
|
6 years ago |
Pēteris Caune
|
fba8806e97
|
Prepare for the removal of Member.team_id
|
6 years ago |
Pēteris Caune
|
f357cd3305
|
Prepare for removing Check.user_id, Channel.user_id, Profile.current_team_id
|
6 years ago |
Pēteris Caune
|
179b085df4
|
Move Check.send_alert() to Flip.send_alerts()
|
6 years ago |
Pēteris Caune
|
2f4b373e12
|
More test cases. Check.is_down() is redundant, removing.
|
6 years ago |
Pēteris Caune
|
5f9ebb178c
|
Rename "Check.get_alert_after" to a now more fitting "Check.going_down_after"
|
6 years ago |
Pēteris Caune
|
481848a749
|
Add "/ping/<code>/start" API endpoint
|
6 years ago |
Pēteris Caune
|
11f65ff7aa
|
Optimize db query in `sendalerts`
|
6 years ago |
Pēteris Caune
|
5be6c403a4
|
Flip model, for tracking status changes of the Check objects.
|
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
|
1392226538
|
sendalerts was not using the api_check (status, user_id, alert_after) index so removing it. The index was not selective enough.
|
7 years ago |
Pēteris Caune
|
d520706c27
|
Adding an option to send daily or hourly reminders if any check is down. Fixes #48
|
7 years ago |
Pēteris Caune
|
09e5129bbe
|
sendalerts reuses database connection.
|
8 years ago |
Pēteris Caune
|
9dcb1678f3
|
--no-threads flag for sendalerts command
|
8 years ago |
Ronald Ip
|
7900a201c1
|
Add --no-loop option to sendalerts management command.
Allow `sendalerts` to be run by an external scheduler, on a one-shot
basis, exiting after all alerts have been sent.
|
8 years ago |
Pēteris Caune
|
ce57a1cc8b
|
Calculate `alert_after` in Python code instead of a database trigger. This will allow complex calculations down the road.
|
8 years ago |
Pēteris Caune
|
b5a0ff3538
|
Handle concurrent sendalerts using QuerySet.update(). Fixes #39
|
8 years ago |
Pēteris Caune
|
e39b714447
|
Better logging in sendalerts.
|
9 years ago |
Pēteris Caune
|
c7a651c330
|
sendalerts management command prints error messages to stdout.
|
9 years ago |
Pēteris Caune
|
21a042aa16
|
Move notification logic to hc.api.transports. Don't use "paused" state for checks.
|
9 years ago |
Di Wu
|
79b7327c9e
|
fix tests and optimize authentication and fix some unclosed markup
|
9 years ago |
Pēteris Caune
|
5a199fec4e
|
management commands use self.stdout.write instead of print. Fixes #21
|
9 years ago |
Di Wu
|
de203275c6
|
sendalerts concurrently
|
9 years ago |
Pēteris Caune
|
c1840a92bd
|
Checks now have a new status: "paused". sendalerts management command will mark checks as paused if sending a notification throws exception. This should avoid potential infinite loops of sendalerts crashes/respawns.
|
9 years ago |
Pēteris Caune
|
f0089e2cd2
|
Send emails using djmail, can verify email addresses in /channels/
|
9 years ago |
Pēteris Caune
|
c54cb6469d
|
Send emails using djrill (Mandrill)
|
9 years ago |
Pēteris Caune
|
8628be8584
|
email_from setting, don't send alerts about checks without associated user
|
9 years ago |
Pēteris Caune
|
c526515324
|
"enabled" field is gone
|
10 years ago |
Pēteris Caune
|
8b95449c6f
|
"enabled" field is gone
|
10 years ago |
Pēteris Caune
|
aad4bd2ffb
|
Background worker to send notifications
|
10 years ago |