Unit defines how a time-series value is expressed.
Attributes
| Name | Type | Description |
|---|---|---|
| unit_id | uuid.UUID | Technical id of the unit. |
| short_name | str | Short Display Name of the unit. |
Methods
api_id()
return current object id on Web API format.
endpoint()
return endpoint name used to contact backend.
from_json()
Load the datapoint entity from a dictionary.
| Name | Type | Default | Description |
|---|---|---|---|
| obj | Dict version of the datapoint. |
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. |