mirror of
https://github.com/alerta/alerta.git
synced 2025-01-30 19:46:21 +00:00
15 lines
254 B
Python
15 lines
254 B
Python
|
|
from alerta.plugins import PluginBase
|
|
|
|
|
|
class NormaliseAlert(PluginBase):
|
|
|
|
def pre_receive(self, alert):
|
|
|
|
alert.text = '%s: %s' % (alert.severity.upper(), alert.text)
|
|
|
|
return alert
|
|
|
|
def post_receive(self, alert):
|
|
|
|
return
|