From 78e95b5295e2ffcacea2ce9717d516784735c90d Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Thu, 10 Oct 2019 10:55:01 -0400 Subject: [PATCH] Use fixed_interval instead of interval (#47725) (#47787) --- .../legacy/plugins/monitoring/server/lib/details/get_series.js | 2 +- .../lib/logstash/get_pipeline_vertex_stats_aggregation.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/monitoring/server/lib/details/get_series.js b/x-pack/legacy/plugins/monitoring/server/lib/details/get_series.js index 500c9f2f0fc7f..95aaaebebb535 100644 --- a/x-pack/legacy/plugins/monitoring/server/lib/details/get_series.js +++ b/x-pack/legacy/plugins/monitoring/server/lib/details/get_series.js @@ -97,7 +97,7 @@ function fetchSeries(req, indexPattern, metric, metricOptions, groupBy, min, max check: { date_histogram: { field: metric.timestampField, - interval: bucketSize + 's' + fixed_interval: bucketSize + 's' }, aggs: { ...dateHistogramSubAggs diff --git a/x-pack/legacy/plugins/monitoring/server/lib/logstash/get_pipeline_vertex_stats_aggregation.js b/x-pack/legacy/plugins/monitoring/server/lib/logstash/get_pipeline_vertex_stats_aggregation.js index 5c80165e74bf4..c4898ffe281db 100644 --- a/x-pack/legacy/plugins/monitoring/server/lib/logstash/get_pipeline_vertex_stats_aggregation.js +++ b/x-pack/legacy/plugins/monitoring/server/lib/logstash/get_pipeline_vertex_stats_aggregation.js @@ -112,7 +112,7 @@ function createTimeSeriesAgg(timeSeriesIntervalInSeconds, ...aggsList) { timeseries: { date_histogram: { field: 'timestamp', - interval: timeSeriesIntervalInSeconds + 's' + fixed_interval: timeSeriesIntervalInSeconds + 's' }, aggs: createAggsObjectFromAggsList(aggsList) }