Skip to content

Commit

Permalink
[8.11] fix(slo): use insert_zeros gap policy for historical summary c…
Browse files Browse the repository at this point in the history
…alculation (#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)](#168044)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Kevin
Delemme","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-05T17:01:26Z","message":"fix(slo):
use insert_zeros gap policy for historical summary calculation
(#168044)","sha":"cee55e3b50fffa9e1237c389d030a5c25bdb3f6a","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:
Actionable
Observability","backport:prev-minor","v8.12.0"],"number":168044,"url":"https://github.com/elastic/kibana/pull/168044","mergeCommit":{"message":"fix(slo):
use insert_zeros gap policy for historical summary calculation
(#168044)","sha":"cee55e3b50fffa9e1237c389d030a5c25bdb3f6a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/168044","number":168044,"mergeCommit":{"message":"fix(slo):
use insert_zeros gap policy for historical summary calculation
(#168044)","sha":"cee55e3b50fffa9e1237c389d030a5c25bdb3f6a"}}]}]
BACKPORT-->

Co-authored-by: Kevin Delemme <[email protected]>
  • Loading branch information
kibanamachine and kdelemme authored Oct 5, 2023
1 parent 9a5c2dd commit 8c4efe8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function generateSearchQuery(
window: timeWindowDurationInDays * bucketsPerDay,
shift: 1,
script: 'MovingFunctions.sum(values)',
gap_policy: 'insert_zeros',
},
},
cumulative_total: {
Expand All @@ -287,6 +288,7 @@ function generateSearchQuery(
window: timeWindowDurationInDays * bucketsPerDay,
shift: 1,
script: 'MovingFunctions.sum(values)',
gap_policy: 'insert_zeros',
},
},
},
Expand Down

0 comments on commit 8c4efe8

Please sign in to comment.