mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Metrics UI] Use bucketSize from request options for overview query (#145032)
## Summary This PR fixes #145030 by using the `options.bucketSize` in the `date_histogram` for the Overview query.
This commit is contained in:
parent
20e2fb5e1e
commit
1cea0299ac
2 changed files with 2 additions and 1 deletions
|
@ -142,7 +142,7 @@ export const createTopNodesQuery = (
|
|||
timeseries: {
|
||||
date_histogram: {
|
||||
field: '@timestamp',
|
||||
fixed_interval: '1m',
|
||||
fixed_interval: options.bucketSize,
|
||||
extended_bounds: {
|
||||
min: options.timerange.from,
|
||||
max: options.timerange.to,
|
||||
|
|
|
@ -47,6 +47,7 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
|
||||
expect(series.length).to.be(1);
|
||||
expect(series[0].id).to.be('demo-stack-mysql-01');
|
||||
expect(series[0].timeseries[1].timestamp - series[0].timeseries[0].timestamp).to.be(300_000);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue