Skip to content

Commit

Permalink
Update x-pack/legacy/plugins/infra/server/routes/metrics_explorer/lib…
Browse files Browse the repository at this point in the history
…/populate_series_with_tsvb_data.ts

Co-Authored-By: Chris Cowan <chris@chriscowan.us>
  • Loading branch information
phillipb and simianhacker authored Nov 13, 2019
1 parent b2c3985 commit a13211a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ export const populateSeriesWithTSVBData = (
timestampField: options.timerange.field,
timerange: options.timerange,
},
model.requires
options.metrics
.filter(metric => metric.field)
.map(metric => {
return metric
.field!.split(/\./)
.slice(0, 2)
.join('.');
})
);

if (calculatedInterval) {
Expand Down

0 comments on commit a13211a

Please sign in to comment.