SolutionComponent

A component handle part of a solution displayed to end users to interact with solution. The component is rendered under 'operate' section and associated to a digital twin item. It can be a native dashboard, a grafana dashboard, ...

Attributes

NameTypeDescription
solution_component_iduuid.UUIDidentifier of the component.
contentstrdepending on component type : iframe URL or grafana relative URL (e.g. 'd/your_uid/name')
dashboard_iduuid.UUIDtechnical UUID of a dashboard only for native dashboard.
default_fromstrrelative date (e.g. now-1d) used as default value to filter the component content.
default_tostrrelative date (e.g. now) used as default value to filter the component content.
label_iduuid.UUIDBusiness Label identification on which menu displaying the component.
namestrComponent name used as the tab name.
orderintValue used to order the tabs.
owner_iduuid.UUIDset to a user to associate for a personal component, leave None for a global component.
solution_typeSolutionTypedefines component type (Dashboard, Grafana, ...)
template_iduuid.UUIDunique identifier of template (optional).
twin_iduuid.UUIDunique identifier of digital twin item associated.
createdByIduuid.UUIDunique identifier of creating user.
createdDateinttimestamp of created date.
updatedByIduuid.UUIDunique identifier of updating user.
updatedDateinttimestamp of updated date.
refreshIntervalintrefresh interval in ms or as a str Grafana format (e.g. '30s').

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.

NameTypeDefaultDescription
objobject to load information from.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value
return:

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone
return: dumpable dict.