[Cloud Posture] Trend query size fix (#132935) (#133003)

(cherry picked from commit f0c5898cce)

Co-authored-by: Jordan <51442161+JordanSh@users.noreply.github.com>
Co-authored-by: Spencer <spencer@elastic.co>
This commit is contained in:
Kfir Peled 2022-05-26 21:05:47 +03:00 committed by GitHub
parent 2ce3717047
commit bac3567fc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,8 @@ export interface ScoreTrendDoc {
export const getTrendsQuery = () => ({
index: BENCHMARK_SCORE_INDEX_DEFAULT_NS,
size: 99,
// large number that should be sufficient for 24 hours considering we write to the score index every 5 minutes
size: 999,
sort: '@timestamp:desc',
query: {
bool: {