digital twin item representing an asset, machine, equipment.
Attributes
Name | Type | Description |
---|---|---|
twin_id | uuid.UUID | technical id of the twin. |
hardware_id | uuid.UUID | unique str hardware id (e.g. required in template and ml models 'by_twin'). |
name | str | logical display name of the Asset. |
parent_id | uuid.UUID | technical id of the parent twin item. |
type | TwinBlockType | type (area, machine, equipment or flow). |
latitude | float | fixed latitude of the twin item. |
longitude | float | fixed longitude of the twin item. |
latitude_id | uuid.UUID | technical id of a datapoint specifying dynamic latitude of twin. |
longitude_id | uuid.UUID | technical id of a datapoint specifying dynamic longitude of twin. |
color | str | hexadecimal code of the color to associate with this twin item. |
icon | str | logical id of the icon or svg schema to associate with this twin item. |
createdById | uuid.UUID | unique identifier of creating user. |
createdDate | int | timestamp of created date. |
updatedById | uuid.UUID | unique identifier of updating user. |
updatedDate | int | timestamp of updated date. |
Methods
api_id()
return current object id on Web API format.
endpoint()
return endpoint name used to contact backend.
from_json()
load the object from a dict originating of a JSON format.
Name | Type | Default | Description |
---|---|---|---|
obj | object to load information from. |
set_id()
specify the id_value neutrally
Name | Type | Default | Description |
---|---|---|---|
id_value |
return:
to_json()
transform current object into a dict that could be JSONIFY.
Name | Type | Default | Description |
---|---|---|---|
target | str | None |
return: dumpable dict.