Collect Information

Get CPU usage

This endpoint retrieves the CPU usage statistics for the specified KVM VPS.
The api_host parameter, obtained from the "Create AUTH-session" response,
is dynamically set in the URL.
Provide the signature, kvm_id, and valid_until parameters obtained
from the same response to access CPU usage data.

post/kvm/v2/get/cpu_usage

Request

Request body application/x-www-form-urlencoded

signaturestring

The session signature obtained from the "Create AUTH-session" call.

kvm_idstring

The unique identifier of the KVM VPS to retrieve CPU usage data for.
This value is specific to your VPS.

valid_untilstring

The expiration timestamp for the session, obtained from the "Create AUTH-session" call.
Ensure that the session is valid and has not expired.

Example request

{
  "signature": "session_signature_12345",
  "kvm_id": "kvm_100200_300400",
  "valid_until": "1737476000"
}

Response

CPU usage data retrieved successfully.

statusstring
chart_cpustring

JSON string containing CPU usage chart data.

Example response

{
  "status": "success",
  "chart_cpu": "{\"datasets\":[{\"label\":\"CPU usage [%]\",\"type\":\"line\",\"borderWidth\":1,\"borderColor\":\"#46A546\",\"backgroundColor\":\"#46A546\",\"yAxisID\":\"y\",\"data\":[12,10,12,12,12,12,10,14,12,10,12,10,10,12,10,12,14,10,12,12,12,12,15,14,12,12,12,10,10,12,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,12,12,12,14,10,14,10,12,12,12,10,10,12,12,15,12,12,12,10,12,12,14,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,10,12,14,12,12,14,14,12,12,14,12,14,12,14,14,12,12,12,14,12,14,14,12,14,12,10,12,12,12,12,12,14,12,10,12,10,14,12,12,12,14,14,10,14,12,45,10,62,12,14,12,12,14,14,12,10,14,14,12,12,12,12,14,12,12,12,12,14,12,10,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,14,12,14,14,12,12,12,12,14,10,14,34,14,12,56,12,12,45,12,12,12,10,12,12,12,14,10,12,14,10,12,12,14,17,12,12,12,12,12,44,15,14,12,12,14,12,14,12,12,12,12,14,12,14,14,14,14,12,12,12,12,12,12,12,14,14,10,14,12,14,14,14,12,10,14,14,12,12,12,12,14,14,12,56,12,12,14,15,12,12,12,12,12,12,12,12,10,12,12,12,14,56,12,12,14,10,14,45,14,27,14,12,14,15,12,14,12,14,10,12,12,14,15,14,14,12,10,14,12,12,12,12,14,14,14,12,12,12,14,14,10,12,12,14,12,12,12,12,12,10,10,14,12,12,12,12,12,12,14,12,14,14,10,30,14,12,14,12,14,12,12,12,12,10,12,14,10,10,12,12,12,17,12,12,12,12,10,14,12,10,12,12,12,10,10,12,12,12,12,14,10,12,14,12,12,12,12,12,12,12,12,12,14,10,12,12,14,14,12,12,14,10,10,10,12,14,12,12,12,12,12,10,12,10,12,12,12,12,10,12,12,12,12,49,12,12,19,12,12,10,12,10,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,12,12,14,10,10,10,12,12,12,12,12,10,14,14,10,12,12,12,12,12,12,12,12,12,12,10,12,12,10,14,14,10,12,14,12,12,12,12,12,14,12,12,14,12,12,12,14,14,12,12,12,12,14,12,12,14,10,12,12,12,12,12,14,10,12,10,12,12,12,12,12,10,12,14,14,12,12,12,14,12,12,12,12,14,12,17,14,10,12,14,12,12,12,14,12,12,14,10,14,10,14,14,14,12,12,14,14,14,12,12,10,14,14,14,14,12,12,12,14,12,12,12,14,12,12,12,12,12,14,14,12,14,12,14,14,12,12,14,12,12,14,12,14,12,12,12,12,12,12,14,14,12,15,10,14,10,12,10,10,12,12,12,12,12,12,14,12,12,12,12,12,12,12,12,12,12,14,14,12,12,12,15,12,14,15,12,12,14,14,12,12,12,10,12,12,12,14,12,12,12,12,14,14,12,12,12,14,12,14,14,12,10,12,12,12,12,12,14,14,14,15,12,12,10,14,14,14,12,12,14,12,12,12,12,12,44,14,15,12,12,12,12,12,12,14,12,12,12,10,10,14,12,12,15,14,12,10,12,12,12,14,12,10,14,12,14,14,12,12,12,12,20,14,12,12,12,12,14,12,15,14]}],\"labels\":[\"08:05\",\"10:02\"]}"
}

Changes

No recorded changes to this operation across all 1 revision of this API.