From 90045710e54257a74faa7ee821ffdafaca31172b Mon Sep 17 00:00:00 2001 From: mgiota Date: Thu, 16 Sep 2021 22:37:34 +0200 Subject: [PATCH] [RAC][Observability] filter out recovered alerts for next tracked alerts (#112398) --- .../rule_registry/server/utils/create_lifecycle_executor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts b/x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts index 48f3a81a00af2c..2799cd6b2c7d5a 100644 --- a/x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts +++ b/x-pack/plugins/rule_registry/server/utils/create_lifecycle_executor.ts @@ -296,7 +296,7 @@ export const createLifecycleExecutor = ( const nextTrackedAlerts = Object.fromEntries( allEventsToIndex - .filter(({ event }) => event[ALERT_STATUS] !== 'closed') + .filter(({ event }) => event[ALERT_STATUS] !== ALERT_STATUS_RECOVERED) .map(({ event }) => { const alertId = event[ALERT_INSTANCE_ID]!; const alertUuid = event[ALERT_UUID]!;