[Metrics UI] Set includeTimeseries on Observability fetchData request (#70735)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Chris Cowan 2020-07-07 09:47:45 -07:00 committed by GitHub
parent 735d3bae8c
commit f946e8e2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -76,6 +76,7 @@ describe('Metrics UI Observability Homepage Functions', () => {
metrics: [{ type: 'cpu' }, { type: 'memory' }, { type: 'rx' }, { type: 'tx' }],
groupBy: [],
nodeType: 'host',
includeTimeseries: true,
timerange: {
from: startTime.valueOf(),
to: endTime.valueOf(),

View file

@ -88,6 +88,7 @@ export const createMetricsFetchData = (
metrics: ['cpu', 'memory', 'rx', 'tx'].map((type) => ({ type })) as SnapshotMetricInput[],
groupBy: [],
nodeType: 'host',
includeTimeseries: true,
timerange: {
from: moment(startTime).valueOf(),
to: moment(endTime).valueOf(),