Skip to content

Commit

Permalink
Use fixed_interval instead of interval (#47725) (#47787)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline authored Oct 10, 2019
1 parent 4f39454 commit 78e95b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function createTimeSeriesAgg(timeSeriesIntervalInSeconds, ...aggsList) {
timeseries: {
date_histogram: {
field: 'timestamp',
interval: timeSeriesIntervalInSeconds + 's'
fixed_interval: timeSeriesIntervalInSeconds + 's'
},
aggs: createAggsObjectFromAggsList(aggsList)
}
Expand Down

0 comments on commit 78e95b5

Please sign in to comment.