fe71cb07ae78

latestOpenAPI 3.0.3Apache-2.0raw.githubusercontent.com2026-08-11231735.9 KB
System Metrics

Get disk usage history

Historical filesystem usage across mountpoints with optional date range filtering

get/api/disk/history

Query parameters

fromstring date-time

Start date in ISO 8601 format (UTC timezone). If not provided, defaults to 1970-01-01T00:00:00Z.

tostring date-time

End date in ISO 8601 format (UTC timezone). If not provided, defaults to current time.

Response

Historical disk usage data

timestring

Unix timestamp in milliseconds

mountstring

Filesystem mountpoint

totalinteger

Total capacity in bytes

usedinteger

Used space in bytes

availableinteger

Available space in bytes

usedPercentnumber float

Disk usage percentage (0-100)

human_friendly_timestring date-time

ISO 8601 formatted timestamp (only in debug mode)

Example response

[
  {
    "time": "1700000000000",
    "mount": "/",
    "total": 500000000000,
    "used": 250000000000,
    "available": 250000000000,
    "usedPercent": 50,
    "human_friendly_time": "2024-01-15T10:00:00Z"
  }
]