diff --git a/app.py b/app.py index 3a66cb9..3513184 100644 --- a/app.py +++ b/app.py @@ -125,8 +125,9 @@ def handler(event, context): msg_type = notify_map[msg["NewStateValue"].lower()] # Reduce severtity for CPUCredit Alarms to Warning - if msg["Trigger"]["MetricName"] == "CPUSurplusCreditBalance": - msg_type = apprise.NotifyType.WARNING + if msg_type == apprise.NotifyType.FAILURE: + if msg["Trigger"]["MetricName"] == "CPUSurplusCreditBalance": + msg_type = apprise.NotifyType.WARNING except KeyError: pass