Get all usage graphs
Overview
Returns CPU, memory, disk and network graphs. period accepts hour, day, week, month or year and defaults to hour. aggregation accepts average or maximum and defaults to average. Use maximum to see short usage spikes. Missing readings return 200 with an unavailable message and empty series. A stopped server may also have empty series.
Permissions
Requires the server.read (View servers) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The server uuid short
Query parameters
The value of period.
One of: hour, day, week, month, year
The value of aggregation.
One of: average, maximum
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The window the series cover, counted back from now.
One of: hour, day, week, month, year
How the samples inside each bucket of the series were consolidated.
One of: average, maximum
Null when the series below were read, and a sentence saying so when they could not be.
The value of series.
Show child attributesHide child attributes
The value of cpu.
The value of mem.
The value of disk.
The value of net.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 422
- The requested period or aggregation is invalid.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown