Skip to content

Commit

Permalink
[Monitoring] Used fixed_interval explicitly for date_histogram aggreg…
Browse files Browse the repository at this point in the history
…ations (elastic#37023)

* Used fixed interval explicitly

* Fix tests
  • Loading branch information
chrisronline committed Aug 9, 2019
1 parent 07c4f71 commit 07b7f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function getMetricAggs(listingMetrics, bucketSize) {
date_histogram: {
field: 'timestamp',
min_doc_count: 1,
interval: bucketSize + 's'
fixed_interval: bucketSize + 's'
},
aggs: metric.aggs || metricAgg
};
Expand Down

0 comments on commit 07b7f6f

Please sign in to comment.