From 0c1f2b4dfa95728f4b10380ce3b5b164b95b3a25 Mon Sep 17 00:00:00 2001 From: Shahar Glazner Date: Thu, 11 Jul 2024 17:01:31 +0300 Subject: [PATCH] fix: incident id (#1367) --- keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py index 31fbbac09..f25e3e7e9 100644 --- a/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py +++ b/keep/providers/gcpmonitoring_provider/gcpmonitoring_provider.py @@ -104,6 +104,7 @@ def _format_alert( event_time = event_time.isoformat(timespec="milliseconds").replace( "+00:00", "Z" ) + # Construct the alert object alert = AlertDto( id=incident_id, @@ -114,6 +115,7 @@ def _format_alert( description=description, severity=severity, url=url, + incident_id=incident_id, gcp=incident, # rest of the fields )