models.entity_proto module

class models.entity_proto.EntityProto(attribute_vec=None, entity_id=None, latest_metric_vec=None)[source]

Bases: object

Implementation of the ‘EntityProto’ model.

Specifies the attributes and the latest statistics about an entity.

Attributes:
attribute_vec (list of KeyValuePair): Array of Attributes. List of

attributes of an entity.

entity_id (EntityIdentifier): Specifies a unique identifier for the

entity.

latest_metric_vec (list of MetricValue): Array of Metric Statistics.

List of the latest statistics for all metrics defined in the schema that this entity belongs to. If statistics for a metric is not available, then that data point is not returned.

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.