From e418cf0aab2f500004d52efeeef865f2c0b0042d Mon Sep 17 00:00:00 2001 From: Kevin Delemme Date: Thu, 5 Oct 2023 13:01:26 -0400 Subject: [PATCH] fix(slo): use insert_zeros gap policy for historical summary calculation (#168044) --- .../server/services/slo/historical_summary_client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/observability/server/services/slo/historical_summary_client.ts b/x-pack/plugins/observability/server/services/slo/historical_summary_client.ts index 2e582fd3eac84..41ff658c89de5 100644 --- a/x-pack/plugins/observability/server/services/slo/historical_summary_client.ts +++ b/x-pack/plugins/observability/server/services/slo/historical_summary_client.ts @@ -279,6 +279,7 @@ function generateSearchQuery( window: timeWindowDurationInDays * bucketsPerDay, shift: 1, script: 'MovingFunctions.sum(values)', + gap_policy: 'insert_zeros', }, }, cumulative_total: { @@ -287,6 +288,7 @@ function generateSearchQuery( window: timeWindowDurationInDays * bucketsPerDay, shift: 1, script: 'MovingFunctions.sum(values)', + gap_policy: 'insert_zeros', }, }, },