Returns a copy of the BreakdownSet with all the metadata values multiplied by the supplied number. This can be useful when a metric value is being scaled to convert from seconds to minutes or hours; the metadata of the metric can be similarly scaled.

var minutes = metrics.get('Time Spent').getLatest();

var timeInHours = minutes / 60;

var meta = timeSpent.breakdown().scale(1/60);

return {
   value : timeInHours,
   breakdown : meta

Did this answer your question?