From 8c4efe8c8c870110013755211bdeb3ac683d24a4 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 5 Oct 2023 14:19:34 -0400 Subject: [PATCH] [8.11] fix(slo): use insert_zeros gap policy for historical summary calculation (#168044) (#168135) # Backport This will backport the following commits from `main` to `8.11`: - [fix(slo): use insert_zeros gap policy for historical summary calculation (#168044)](https://github.com/elastic/kibana/pull/168044) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Kevin Delemme --- .../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', }, }, },