models.metric_value module

class models.metric_value.MetricValue(metric_name=None, timestamp_msecs=None, value=None)[source]

Bases: object

Implementation of the ‘MetricValue’ model.

Specifies one data point of a metric.

Attributes:

metric_name (string): Specifies the metric name. timestamp_msecs (long|int): Specifies the creation time of a data

point as a Unix epoch Timestamp (in milliseconds).

value (Value): Specifies a data type and data field used to store

data.

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.