From cecbcf72d79ce264c73dc7007de4e0f905050f8e Mon Sep 17 00:00:00 2001 From: Chris Roberson Date: Wed, 9 Oct 2019 21:17:12 -0400 Subject: [PATCH] Use fixed_interval instead of interval (#47725) --- .../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) }