v1

latestOpenAPI 3.0.3Apache-2.02026-07-179814.8 KB
Container Metrics

Get container memory usage history

Retrieve memory usage history for a specific Docker container

get/api/container/{containerId}/memory/history

Path parameters

containerIdstring required

Docker container ID (alphanumeric characters only)

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

Container memory usage history

timestring

Unix timestamp in milliseconds

totalinteger

Total container memory limit in bytes

availableinteger

Available memory in bytes

usedinteger

Used memory in bytes

usedPercentnumber float

Memory usage percentage

freeinteger

Free memory in bytes

human_friendly_timestring date-time

ISO 8601 formatted timestamp (only in debug mode)

Example response

[
  {
    "time": "1700000000000",
    "total": 4000000000,
    "available": 2000000000,
    "used": 2000000000,
    "usedPercent": 50,
    "free": 2000000000,
    "human_friendly_time": "2024-01-15T10:00:00Z"
  }
]