defines a data store configuration for time-series storage.
Attributes
| Name | Type | Description |
|---|---|---|
| data_store_id | uuid.UUID | technical id of the data store. |
| name | str | display name of the data store. |
| bucket | str | time-series bucket name. |
| measurement | str | measurement name within the bucket. |
| retention_seconds | int | retention period in seconds. |
| do_not_use_sensor_id | bool | if True, do not use sensor ID in storage path. |
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. |