Entity#

class Entity(entity_type=None, source=None, parents=None, metrics=None, ext_id=None, links=None, tenant_id=None, *args, **kwargs)[source]#

Bases: ExternalizableAbstractModel

Parameters:
  • entity_type – (entity_type) Entity type of the data supported for a given source. For example VM, cluster etc.

  • source – (source) Source name for the vendors. For example ‘nutanix’.

  • parents – (parents) Parent entity types for the given entity.

  • metrics – (metrics) Metrics data for the entity.

property entity_type#

Entity type of the data supported for a given source. For example VM, cluster etc.

Type:

str

property metrics#

Metrics data for the entity.

Type:

list[ Metric ]

property parents#

Parent entity types for the given entity.

Type:

list[ Entity ]

property source#

Source name for the vendors. For example ‘nutanix’.

Type:

str

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model