from miru_agent_sdk import Miru
client = Miru()
device = client.device.retrieve()
print(device.id){
"object": "device",
"id": "dvc_123",
"name": "My Device",
"status": "online",
"last_synced_at": "2021-01-01T00:00:00Z",
"last_connected_at": "2021-01-01T00:00:00Z",
"last_disconnected_at": "2021-01-01T00:00:00Z"
}Retrieve the device.
from miru_agent_sdk import Miru
client = Miru()
device = client.device.retrieve()
print(device.id){
"object": "device",
"id": "dvc_123",
"name": "My Device",
"status": "online",
"last_synced_at": "2021-01-01T00:00:00Z",
"last_connected_at": "2021-01-01T00:00:00Z",
"last_disconnected_at": "2021-01-01T00:00:00Z"
}Successfully retrieved the device.
device "device"
ID of the device.
"dvc_123"
Name of the device.
"My Device"
The status of the device.
online, offline Timestamp of when the device was last synced.
"2021-01-01T00:00:00Z"
Timestamp of the last successful connection event with the backend.
"2021-01-01T00:00:00Z"
Timestamp of the last successful disconnection event with the backend.
"2021-01-01T00:00:00Z"