models.metric_data_block module

class models.metric_data_block.MetricDataBlock(data_point_vec=None, metric_name=None, mtype=None)[source]

Bases: object

Implementation of the ‘MetricDataBlock’ model.

Specifies a series of metric data points for a time series.

Attributes:
data_point_vec (list of MetricDataPoint): Array of Data Points.

Specifies a list of metric data points for a time series.

metric_name (string): Specifies the name of a metric such as

‘kDiskAwaitTimeMsecs’.

mtype (int): Specifies the data type of the data points. 0 specifies a

data point of type Int64. 1 specifies a data point of type Double. 2 specifies a data point of type String. 3 specifies a data point of type Bytes.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.