Containers
Container stats history
The sampled history behind the container charts, oldest sample first. The daemon samples every five seconds while a stats stream is open or a history read came in during the last minute, so a first read can return `collecting` with no samples. Requires the **viewer** role.
udon_session<token>
In: cookie
Path Parameters
id*string
The container id, as GET /api/containers lists it.
Query Parameters
window?string
How far back to read. An unknown value reads 5m.
Default
"5m"Value in
- "5m"
- "15m"
- "1h"
- "24h"
Response Body
application/json
application/json
curl -X GET "https://example.com/api/containers/string/stats/history"{ "id": "string", "window": "5m", "state": "collecting", "samples": [ { "timestamp": "2019-08-24T14:15:22Z", "cpuPercent": 0, "memoryBytes": 0, "memoryLimitBytes": 0, "networkRxPerSec": 0, "networkTxPerSec": 0, "blockReadPerSec": 0, "blockWritePerSec": 0, "pids": 0 } ]}