Skip to content

Commit

Permalink
Use fixed_interval instead of interval (#47725)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 10, 2019
1 parent c961095 commit cecbcf7
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 cecbcf7

Please sign in to comment.