0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-03-13 04:53:16 +00:00
Commit graph

80 commits

Author SHA1 Message Date
Nick Satterly
f73c3644b5
refactor: convert formatted strings to f-strings (more) () 2021-05-09 16:19:40 +02:00
Nick Satterly
320a92b0fa
refactor: convert formatted strings to f-strings () 2021-05-09 14:52:54 +02:00
Nick Satterly
ddd6b784b2
feat: add escalate severity custom action plugin () 2021-05-09 09:40:05 +02:00
Nick Satterly
67cf1c8940
feat(plugin): add timeout policy plugin to enforce ack and shelve timeouts () 2021-01-12 10:47:38 +01:00
Nick Satterly
5ebed8badf
refactor(config): simplify config settings from env vars () 2020-12-12 20:46:47 +01:00
Nick Satterly
dfc877a29f build(lint): fix heartbeat lint error 2020-12-04 19:49:11 +01:00
Nick Satterly
1bccaaac5f fix: set alert heartbeat timeout from alert timeout
Heartbeats generated from alerts should use the
timeout value from the alert to set the heartbeat
timeout.

Closes 
2020-12-02 22:16:16 +01:00
Nick Satterly
4380281cfb Set alert id to last receive id when forwarding 2020-11-28 11:29:20 +01:00
Hugo Hervieux
aa81130e3c fixup! Add take_note plugin method 2020-11-25 15:23:45 -05:00
Hugo Hervieux
f1b1eeb809 Add take_note plugin method
This method is invoked when a note is created or updated with a text
update.
2020-11-25 11:19:00 -05:00
Nick Satterly
cc232a1637 Clear login from 'acked-by' attribute if alert opens again 2020-11-24 21:33:19 +01:00
Nick Satterly
de69f8d716 Update Heartbeat plugin to support attribute overrides 2020-07-05 22:14:49 +02:00
Nick Satterly
3cb80a6f59
Refactor auth blueprint register ()
* Refactor auth blueprint register

* Fix typing issue with forwarder plugin
2020-06-05 19:40:40 +02:00
Nick Satterly
8d2d4c5b8b Remove debug print statement 2020-04-30 21:57:23 +02:00
Nick Satterly
1538a97717
Add forwarder plugin for federated Alerta ()
* Add alerts and action forwarder plugin for federated setups

* Add tests for forwarder plugin
2020-04-30 21:26:49 +02:00
Nick Satterly
9235152ee0
Heartbeat event name config () 2020-04-16 20:06:22 +02:00
Nick Satterly
1c23c6a724
Add "delete" hook called before any alert delete ()
* Add "delete" hook called before any alert delete

* Add plugin test for delete hook
2020-02-25 20:45:51 +01:00
Nick Satterly
cd521827f8
Skip 'ack' action of "acked by" plugin if user not logged in () 2020-02-23 11:26:39 +01:00
Asher Foa
30571ac214 Remove usage of six from codebase since Alerta is Python 3+ only. () 2019-08-05 10:10:05 +02:00
Nick Satterly
49d894310a Auto-watch acked alerts in acked_by plugin 2019-05-20 15:15:13 +02:00
Nick Satterly
8529dae3ba
Add built-in acked-by plugin () 2019-05-20 02:16:55 +02:00
Nick Satterly
1f4e5dba83
Return heartbeat id when alert converted to hb () 2019-05-14 10:23:10 +02:00
Nick Satterly
69bebd3ded
Push app config to plugin methods for per-alert config ()
* Push app config to plugin methods for per-alert config

* Add get_config() helper method to plugins

* Explicitly pass kwargs to avoid race conditions using self

* Test config variable precedence
2019-04-23 22:58:14 +02:00
Nick Satterly
10bc40062a
Convert add remote IP method into a plugin () 2019-04-19 21:06:09 +02:00
Nick Satterly
a7c13ec20d
Add heartbeat plugin to transform alerts into heartbeats () 2019-04-14 22:44:50 +02:00
Nick Satterly
d7bfb4c224
Update ISA 18.2 alarm model from 2009 to 2016 version () 2019-03-03 23:44:52 +01:00
Nick Satterly
41744f7cc7
Fix logging request filter "args" name clash () 2019-02-16 21:09:18 +01:00
Nick Satterly
5d71785954
Support env vars for in-built plugins () 2019-02-11 19:51:06 +01:00
Nick Satterly
a3c7e133cc
Fix plugin logger during init () 2019-01-03 17:05:46 +01:00
Nick Satterly
01bd91ece4
Print plugin docstrings at server start-up () 2018-11-27 12:12:40 +01:00
Nick Satterly
dbd72e64fe
Simplify built-in plugin imports () 2018-11-18 23:02:10 +01:00
Nick Satterly
d106bb799f
[WIP] Trigger user-configurable actions in plugins ()
* Add user-configurable actions to plugins

* Refactor set status and action alert
2018-10-13 22:30:11 +02:00
Nick Satterly
cd0dfbe088
Type annotate plugins and webhooks ()
* Type annotate plugins (part 1)

* Type annotate webhooks (part 2)
2018-10-10 19:52:55 +02:00
Nick Satterly
71dcee2136
Update flask logging to remove repeated log lines () 2018-10-10 00:10:05 +02:00
Nick Satterly
627b971a88
Replace double-quotes with single-quotes () 2018-09-16 00:20:53 +02:00
Nick Satterly
4af78277e8
Add pre-commit checks () 2018-09-16 00:07:50 +02:00
Nick Satterly
e0bce26a58
Run mypy during build checks and start adding type hints () 2018-08-23 11:35:14 +02:00
Nick Satterly
f59eda7ed0
Add support for alert status of blackout () 2018-04-01 17:30:24 +02:00
Nick
11b1ce033f Support regex in ALLOWED_ENVIRONMENTS config setting. () 2018-03-16 21:49:41 +00:00
Nick Satterly
35f88224ad
Add support for custom webhooks ()
* Add support for custom webhook handlers

* Add support for GET requests and query params
2018-03-16 21:45:48 +00:00
Nick Satterly
ccf89233b8
Better plugin logging and werkzeug log messages ()
* Add useful log messages to blackout plugin

* Add explicit logging for werkzeug messages
2017-12-26 19:26:50 +00:00
Nick Satterly
00260257cb
Catch all blackout/notification combos () 2017-12-23 23:59:16 +00:00
Nick Satterly
b28b2559f8 Flatten directory structure 2017-09-20 15:08:46 +01:00
Nick Satterly
3ef166f3e1 Use jsonb for attributes and make all tests pass 2017-09-16 16:10:21 +01:00
Nick Satterly
dcc757a7e0 First commit for Release 5.x 2017-09-09 16:38:13 +01:00
Nick Satterly
c674f0b1c7 Plugin order execution should match config order 2017-01-03 12:22:10 +00:00
Nick Satterly
9822247fee Add a method to detect flapping alerts and rate limit exception
These new features are available for use in plugins as what actions
should be taken if an alert is detected to be flapping is
implementation dependent. eg. change alert status, severity, set
a 'flapping' boolean or rejecting the alert with 429 status code.
2016-12-01 11:21:43 +00:00
Nick Satterly
44d95887b5 Improve plugin logging 2016-09-15 00:52:59 +01:00
Nick Satterly
542300f04a Log list of all enabled plugins 2016-09-14 14:36:51 +01:00
Nick Satterly
553b02825e Catch any exceptions in plugin routing rules 2016-09-05 14:48:51 +01:00