hosts
Rolling telemetry history in 5-minute buckets (host owner/admin)
Min/avg/max per measured field per 5-minute bucket, for sparklines. Host owner only: a non-owner receives 404, never 403, so machine existence never leaks. History is retained for 48 h and pruned by the worker cleanup task; a window longer than the retention is refused rather than silently clamped. A field that was never measured in a bucket is absent, and a bucket's samples count states how much evidence backs it.
get/api/v1/hosts/machines/{id}/telemetry
Request
- Base URL: https://amplerun-api.spiry.org
- URL: https://amplerun-api.spiry.org/api/v1/hosts/machines/{id}/telemetry
- Auth: HTTP bearer
Path parameters
idstring uuid required
Example:3f0e2a55-8c1b-4d2e-9a6f-0b7c1d2e3f40
Query parameters
windowstring
Lookback as <n>s|<n>m|<n>h (default 6h, at most the retention window).
Response
Telemetry history buckets, oldest first.
Example response
{
"machine_id": "3f0e2a55-8c1b-4d2e-9a6f-0b7c1d2e3f40",
"buckets": [
{
"bucket": "2026-09-25T12:00:00Z",
"devices": [
{
"memory_used_bytes": {
"min": "1",
"avg": "1",
"max": "1"
},
"unified_memory_used_bytes": {
"min": "1",
"avg": "1",
"max": "1"
}
}
],
"host": {
"memory_used_bytes": {
"min": "1",
"avg": "1",
"max": "1"
},
"disk_free_bytes": {
"min": "1",
"avg": "1",
"max": "1"
},
"uptime_s": {
"min": "1",
"avg": "1",
"max": "1"
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.