DataPoint

A datapoint reference a time-series tag stored on DB.

Attributes

NameTypeDescription
datapoint_iduuid.UUIDUnique datapoint identifier (technical id).
hardware_idstrThe unique datapoint logical hardware id corresponding to time-series tag name.
business_typeBusinessTypeBusiness type of a datapoint defining usage.
namestrDisplay name used in the user interface.
twin_iduuid.UUIDSet parent twin id on which datapoint is attached.
unit_iduuid.UUIDUnit on which the time-series is expressed (e.g. Celsius Degree).
category_iduuid.UUIDDefines the Unit category (e.g Temperature).
descriptionstrAdditional information to help user understand the datapoint.
min_valuefloatSet manufacturer specification for hardware logical minimum values.
max_valuefloatSet manufacturer specification for hardware logical maximum values.
frequencyintSet frequency in milliseconds at which this data point should theoretically emit data.
input_modeInputModeTypeSet if time-series can or not be manually/automatically written in Wizata.
extra_propertiesdictAdd any custom properties to your datapoints as a key/value pair dictionary.

Methods

api_id()

formatted id of the datapoint (datapoint_id)

return: string formatted UUID of the DataPoint.

endpoint()

endpoint name used to manipulate datapoint on backend.

return: endpoint name.

from_json()

load the datapoint entity from a dictionary.

NameTypeDefaultDescription
objdict version of the datapoint.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

convert the datapoint to a dictionary compatible with JSON format.

NameTypeDefaultDescription
targetstrNone

return: dictionary representation of the datapoint object.