alerta_alerta/contrib/routing
Nick Satterly 371ab3c714
Use consistent naming for plugins (#747)
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

README.md

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