0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-24 17:29:39 +00:00
alerta_alerta/contrib/routing/README.md
2018-11-13 10:14:07 +01:00

18 lines
359 B
Markdown

Example plugin routing rules
============================
If severity is "debug" do not apply the "reject" policy to enforce a valid environment and a service.
```python
def rules(alert, plugins):
if alert.severity == 'debug':
return []
else:
return [plugins['reject']]
```
Installation
------------
$ python setup.py install