mirror of
https://github.com/alerta/alerta.git
synced 2024-12-04 12:57:32 +00:00
.. | ||
README.md | ||
routing.py | ||
setup.py |
Example plugin routing rules
If severity is "debug" do not apply the "reject" policy to enforce a valid environment and a service.
def rules(alert, plugins):
if alert.severity == 'debug':
return []
else:
return [plugins['reject']]
Installation
$ python setup.py install