Devices Type¶
bucket¶
Attributes:
id: GenericID
name: str
DeviceInfo¶
Attributes:
id: GenericIDDevice ID.type: DataStorageTypeDevice’s data storage (bucket) type.profile: GenericIDID of the profile that owns the device.bucket: bucketBucket storing the device’s data.last_output: datetime or NoneDate for the device’s last output.last_input: datetime or NoneDate for the device’s last input.updated_at: datetimeDate for the device’s last update.created_at: datetimeDate for the device’s creation.inspected_at: datetime or NoneDate for the device’s last inspection.last_retention: datetime or NoneDate for the device’s last data retention.
DeviceInfoList¶
Attributes:
id: GenericIDDevice ID.type: DataStorageTypeDevice’s data storage (bucket) type.profile: GenericIDID of the profile that owns the device.last_output: datetime or NoneDate for the device’s last output.last_input: datetime or NoneDate for the device’s last input.updated_at: datetimeDate for the device’s last update.created_at: datetimeDate for the device’s creation.inspected_at: datetime or NoneDate for the device’s last inspection.last_retention: datetime or NoneDate for the device’s last data retention.bucket: GenericID
DeviceQuery¶
Attributes:
page: int or floatPage of list starting from 1amount: int or floatAmount of items will return.fields: list[ “id” or “type” or “profile” or “last_output” or “last_input” or “updated_at” or “created_at” or “inspected_at” or “last_retention” ]Array of field names.filter: DeviceInfoFilter object.orderBy: list[ “name” or “visible” or “active” or “last_input” or “last_output” or “created_at” or “updated_at” or “asc” or “desc” ]Tuple with a field and an orderresolveBucketName: Optional[bool]
DeviceListItem¶
DeviceListItem = DeviceInfoList
ConfigurationParams¶
Attributes:
sent: bool
key: str
value: str
id: Optional[str]
DeviceCreateResponse¶
Attributes:
DeviceCreateInfoBasic¶
Attributes:
name: strDevice name.connector: GenericIDConnector ID.network: GenericIDNetwork ID.type: Optional[DataStorageType][Optional] Device’s data storage (bucket) type.:default: “legacy”description: Optional[str or None][Optional] Description of the device.active: Optional[bool][Optional] Set if the device will be active.visible: Optional[bool][Optional] Set if the device will be visible.configuration_params: Optional[list[ConfigurationParams]][Optional] An array of configuration paramstags: Optional[list[TagsObj]][Optional] An array of tagsserie_number: Optional[str][Optional] Device serial number.connector_parse: Optional[bool][Optional] If device will use connector parserparse_function: Optional[str][Optional] Javascript code for use as payload parser
DeviceCreateInfoBasicMutable¶
Attributes:
name: strDevice name.connector: GenericIDConnector ID.network: GenericIDNetwork ID.type: “mutable”Device’s data storage (bucket) type.:default: “legacy”description: str or NoneDescription of the device.active: boolSet if the device will be active.visible: boolSet if the device will be visible.configuration_params: list[ConfigurationParams]An array of configuration paramstags: list[TagsObj]An array of tagsserie_number: strDevice serial number.connector_parse: boolIf device will use connector parserparse_function: strJavascript code for use as payload parser
DeviceCreateInfoBasicImutable¶
Attributes:
name: strDevice name.connector: GenericIDConnector ID.network: GenericIDNetwork ID.type: “imutable”Device’s data storage (bucket) type.:default: “legacy”description: str or NoneDescription of the device.active: boolSet if the device will be active.visible: boolSet if the device will be visible.configuration_params: list[ConfigurationParams]An array of configuration paramstags: list[TagsObj]An array of tagsserie_number: strDevice serial number.connector_parse: boolIf device will use connector parserparse_function: strJavascript code for use as payload parserchunk_period: “day” or “week” or “month” or “quarter”Chunk division to retain data in the device.Required for Immutable devices.chunk_retention: int or floatAmount of chunks to retain data according to the chunk_period.Integer between in the range of 0 to 36 (inclusive).Required for Immutable devices.
DeviceCreateInfoMutable¶
DeviceCreateInfoMutable = DeviceCreateInfoBasicMutable
DeviceCreateInfoImmutable¶
DeviceCreateInfoImmutable = DeviceCreateInfoBasicImutable
DeviceCreateInfo¶
DeviceCreateInfo = DeviceCreateInfoMutable or DeviceCreateInfoImmutable
DeviceEditInfo¶
Attributes:
name: strDevice name.connector: GenericIDConnector ID.network: GenericIDNetwork ID.description: str or NoneDescription of the device.active: boolSet if the device will be active.visible: boolSet if the device will be visible.configuration_params: list[ConfigurationParams]An array of configuration paramstags: list[TagsObj]An array of tagsserie_number: strDevice serial number.connector_parse: boolIf device will use connector parserparse_function: strJavascript code for use as payload parserchunk_retention: int or floatAmount of chunks to retain data according to the chunk_period.Integer between in the range of 0 to 36 (inclusive).Required for Immutable devices.
TokenData¶
Attributes:
name: strA name for the token.expire_time: ExpireTimeOptionThe time for when the token should expire.It will be randomly generated if not included.Accepts “never” as value.permission: PermissionOptionToken permission should be ‘write’, ‘read’ or ‘full’.serie_number: Optional[str][optional] The serial number of the device.verification_code: Optional[str][optional] Verification code to validate middleware requests.middleware: Optional[str][optional] Middleware or type of the device that will be added.
DeviceTokenDataList¶
Attributes:
token: GenericToken
device_id: GenericID
network_id: GenericID
name: str
permission: PermissionOption
serie_number: str or None
last_authorization: str or None
expire_time: ExpireTimeOption
created_at: str
ListDeviceTokenQuery¶
Attributes:
page: int or floatPage of list starting from 1amount: int or floatAmount of items will return.fields: list[ “token” or “device_id” or “network_id” or “name” or “permission” or “serie_number” or “last_authorization” or “expire_time” ]Array of field names.filter: DeviceTokenDataListFilter object.orderBy: Optional[ list[ “name” or “permission” or “serie_number” or “last_authorization” or “created_at” or “asc” or “desc” ]][Optional] Tuple with a field and an order