0
0
mirror of https://github.com/alerta/alerta.git synced 2024-12-04 12:57:32 +00:00
alerta_alerta/contrib/routing
2018-11-13 10:14:07 +01:00
..
README.md Use consistent naming for plugins (#747) 2018-11-13 10:14:07 +01:00
routing.py Add pre-commit checks (#648) 2018-09-16 00:07:50 +02:00
setup.py Replace double-quotes with single-quotes (#650) 2018-09-16 00:20:53 +02:00

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