models.sample module

class models.sample.Sample(float_value=None, timestamp_msecs=None, value=None)[source]

Bases: object

Implementation of the ‘Sample’ model.

Specifies a sample of data collected at a timestamp.

Attributes:
float_value (float): Specifies the value of the data sample if the

type is float64. This field is nil if the type of the data is not a float value.

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

sample occured.

value (long|int): Specifies the value of the data sample if the type

is int64. This field is nil if the type of the data is not an int value.

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.