This constructor function creates a time series from a map of labels and an array of samples.
Note that this takes labels as a simple object/map, unlike TimeSeries interface which uses an array.
Parameters
labels: Record<string,string>
Map of label names to values (including name for metric name)
Creates a Timeseries object.
This constructor function creates a time series from a map of labels and an array of samples. Note that this takes labels as a simple object/map, unlike TimeSeries interface which uses an array.