From 7dd9d8f40ea10a096db85ebb546e3c1e521b482a Mon Sep 17 00:00:00 2001 From: Juan Kungfoo de la Camara Date: Wed, 7 Aug 2024 12:43:01 -0300 Subject: [PATCH] Added warning level --- webhooks/falco/alerta_falco.py | 2 +- webhooks/falco/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webhooks/falco/alerta_falco.py b/webhooks/falco/alerta_falco.py index 101a10bf..5a331ca3 100644 --- a/webhooks/falco/alerta_falco.py +++ b/webhooks/falco/alerta_falco.py @@ -37,7 +37,7 @@ def incoming(self, query_string, payload): # falco priorities: emergency, alert, critical, error, warning, notice, informational, debug if payload['priority'].lower() in ['emergency', 'alert', 'critical', 'error']: severity = 'critical' - elif payload['priority'].lower() in ['notice', 'informational', 'debug']: + elif payload['priority'].lower() in ['warning', 'notice', 'informational', 'debug']: severity = 'warning' else: severity = alarm_model.DEFAULT_NORMAL_SEVERITY diff --git a/webhooks/falco/setup.py b/webhooks/falco/setup.py index 2f0331fb..d5bfceec 100644 --- a/webhooks/falco/setup.py +++ b/webhooks/falco/setup.py @@ -1,6 +1,6 @@ from setuptools import find_packages, setup -version = '0.0.3' +version = '0.0.4' setup( name='alerta-falco',