Skip to content

Get Device Metrics

GET
/api/devices/{device_id}/metrics
curl --request GET \
--url 'https://example.com/api/devices/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/metrics?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \
--header 'Authorization: Bearer <token>'

Get metrics for a device in frontend-compatible format

device_id
required
Device Id
string format: uuid
organization_id
required
Organization Id
string format: uuid
start_time
Any of:
string format: date-time
end_time
Any of:
string format: date-time
metric
Any of:
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}