diff --git a/keep/providers/pagerduty_provider/pagerduty_provider.py b/keep/providers/pagerduty_provider/pagerduty_provider.py index 8d4e8044f..9aa6e9e88 100644 --- a/keep/providers/pagerduty_provider/pagerduty_provider.py +++ b/keep/providers/pagerduty_provider/pagerduty_provider.py @@ -313,13 +313,9 @@ def _format_alert( data = actual_event.get("data", {}) url = data.pop("self", data.pop("html_url", None)) # format status and severity to Keep format - status = PagerdutyProvider.STATUS_MAP.get( - data.pop("status"), AlertStatus.FIRING - ) + status = PagerdutyProvider.STATUS_MAP.get(data.pop("status", "firing")) priority_summary = (data.get("priority", {}) or {}).get("summary") - priority = PagerdutyProvider.SEVERITIES_MAP.get( - priority_summary, AlertSeverity.INFO - ) + priority = PagerdutyProvider.SEVERITIES_MAP.get(priority_summary, "P4") last_received = data.pop("created_at") name = data.pop("title") service = data.pop("service", {}).get("summary", "unknown")