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

This commit is contained in:
Jordan 2022-05-25 19:07:23 +03:00 committed by GitHub
parent b4496d8231
commit f0c5898cce
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: {