diff --git a/keep/providers/pagerduty_provider/pagerduty_provider.py b/keep/providers/pagerduty_provider/pagerduty_provider.py index 7ce4cb0e5..a149320d2 100644 --- a/keep/providers/pagerduty_provider/pagerduty_provider.py +++ b/keep/providers/pagerduty_provider/pagerduty_provider.py @@ -502,10 +502,12 @@ def _query(self, incident_id: str = None): ) def _format_alert( - self, event: dict, provider_instance: "BaseProvider" = None + event: dict, provider_instance: "BaseProvider" = None ) -> AlertDto: - status = self.ALERT_STATUS_MAP.get(event.get("status", "firing")) - severity = self.ALERT_SEVERITIES_MAP.get(event.get("severity", "info")) + status = PagerdutyProvider.ALERT_STATUS_MAP.get(event.get("status", "firing")) + severity = PagerdutyProvider.ALERT_SEVERITIES_MAP.get( + event.get("severity", "info") + ) source = ["pagerduty"] origin = event.get("body", {}).get("cef_details", {}).get("source_origin") fingerprint = event.get("alert_key", event.get("id"))