Pēteris Caune
|
f357cd3305
|
Prepare for removing Check.user_id, Channel.user_id, Profile.current_team_id
|
2019-01-14 21:13:57 +02:00 |
|
Pēteris Caune
|
179b085df4
|
Move Check.send_alert() to Flip.send_alerts()
|
2018-12-30 11:55:09 +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
|
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
|
11f65ff7aa
|
Optimize db query in sendalerts
|
2018-12-12 19:04:37 +02:00 |
|
Pēteris Caune
|
5be6c403a4
|
Flip model, for tracking status changes of the Check objects.
|
2018-12-10 17:51:42 +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
|
1392226538
|
sendalerts was not using the api_check (status, user_id, alert_after) index so removing it. The index was not selective enough.
|
2018-01-17 00:49:03 +02:00 |
|
Pēteris Caune
|
d520706c27
|
Adding an option to send daily or hourly reminders if any check is down. Fixes #48
|
2017-10-14 16:03:56 +03:00 |
|
Pēteris Caune
|
09e5129bbe
|
sendalerts reuses database connection.
|
2017-05-07 15:31:10 +03:00 |
|
Pēteris Caune
|
9dcb1678f3
|
--no-threads flag for sendalerts command
|
2017-03-28 20:04:24 +01:00 |
|
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.
|
2017-03-11 18:29:50 +08: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
|
b5a0ff3538
|
Handle concurrent sendalerts using QuerySet.update(). Fixes #39
|
2016-09-15 22:52:48 +03:00 |
|
Pēteris Caune
|
e39b714447
|
Better logging in sendalerts.
|
2016-04-16 01:13:58 +03:00 |
|
Pēteris Caune
|
c7a651c330
|
sendalerts management command prints error messages to stdout.
|
2016-01-31 19:48:21 +02:00 |
|
Pēteris Caune
|
21a042aa16
|
Move notification logic to hc.api.transports. Don't use "paused" state for checks.
|
2016-01-31 18:35:24 +02:00 |
|
Di Wu
|
79b7327c9e
|
fix tests and optimize authentication and fix some unclosed markup
|
2016-01-04 23:47:32 -05:00 |
|
Pēteris Caune
|
5a199fec4e
|
management commands use self.stdout.write instead of print. Fixes #21
|
2015-12-30 21:56:03 +02:00 |
|
Di Wu
|
de203275c6
|
sendalerts concurrently
|
2015-10-30 23:44:08 -07:00 |
|
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.
|
2015-10-30 14:21:12 +02:00 |
|
Pēteris Caune
|
f0089e2cd2
|
Send emails using djmail, can verify email addresses in /channels/
|
2015-08-14 10:56:07 +03:00 |
|
Pēteris Caune
|
c54cb6469d
|
Send emails using djrill (Mandrill)
|
2015-07-11 11:45:38 +03:00 |
|
Pēteris Caune
|
8628be8584
|
email_from setting, don't send alerts about checks without associated user
|
2015-07-08 09:40:58 +03:00 |
|
Pēteris Caune
|
c526515324
|
"enabled" field is gone
|
2015-06-29 20:59:14 +03:00 |
|
Pēteris Caune
|
8b95449c6f
|
"enabled" field is gone
|
2015-06-29 20:52:26 +03:00 |
|
Pēteris Caune
|
aad4bd2ffb
|
Background worker to send notifications
|
2015-06-16 11:33:12 +03:00 |
|