An insight defines how display live data on control panel tiles.
Attributes
| Name | Type | Description |
|---|---|---|
| insight_id | uuid.UUID | technical id of the insight. |
| name | str | Name of the insight displayed on the tile. |
| display_precision | int | number of decimal digits to display. |
| component_id | uuid.UUID | technical id of the SolutionComponent associated. |
| twin_id | uuid.UUID | technical id of the twin associated. |
| datapoint_id | uuid.UUID | technical id of the datapoint associated. |
Methods
add_condition()
add a condition to the conditions.
| Name | Type | Default | Description |
|---|---|---|---|
| condition | |||
| return: |
clear_conditions()
remove all conditions from the insight.
remove_condition()
remove a condition at a specific index.
| Name | Type | Default | Description |
|---|---|---|---|
| index | int | index of the condition to remove. |
update_condition()
update a condition at a specific index.
| Name | Type | Default | Description |
|---|---|---|---|
| index | int | index of the condition to update. | |
| condition | new condition value. |
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. |