device module#

class edgeimpulse_api.models.device.Device(
*,
id: StrictInt,
deviceId: StrictStr,
created: datetime,
lastSeen: datetime,
name: StrictStr,
deviceType: StrictStr,
sensors: List[DeviceSensorsInner],
remote_mgmt_connected: StrictBool,
remote_mgmt_host: StrictStr | None = None,
supportsSnapshotStreaming: StrictBool,
)[source]#

Bases: BaseModel

class Config[source]#

Bases: object

allow_population_by_field_name = True#
validate_assignment = False#
created: datetime#
device_id: StrictStr#
device_type: StrictStr#
classmethod from_dict(obj: dict) Device[source]#

Create an instance of Device from a dict

classmethod from_json(json_str: str) Device[source]#

Create an instance of Device from a JSON string

id: StrictInt#
last_seen: datetime#
name: StrictStr#
remote_mgmt_connected: StrictBool#
remote_mgmt_host: StrictStr | None#
sensors: List[DeviceSensorsInner]#
supports_snapshot_streaming: StrictBool#
to_dict()[source]#

Returns the dictionary representation of the model using alias

to_json() str[source]#

Returns the JSON representation of the model using alias

to_str() str[source]#

Returns the string representation of the model using alias