models.metric_data_point module

class models.metric_data_point.MetricDataPoint(data=None, rollup_function=None, timestamp_msecs=None)[source]

Bases: object

Implementation of the ‘MetricDataPoint’ model.

Specifies information about a single data point in a time series.

Attributes:
data (ValueData): Specifies the fields to store data of a given type.

Specify data in the appropriate field for the current data type.

rollup_function (int): If this is a rolled up data point, following

enum denotes the rollup function used for rolling up. For a raw point this enum is not set.

timestamp_msecs (long|int): Specifies a timestamp when the metric data

point was captured.

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.