server

Get Cloud Server CPU statistics by period

Returns CPU usage statistics for the selected period.

get/1.3/server/{uuid}/stats/cpu/{period}

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/server/{uuid}/stats/cpu/{period}
  • Auth: HTTP bearer

Path parameters

uuidstring uuid required

Universally unique identifier

Example:0414e0d7-4436-4037-9dd8-6eaf47dce599

Cloud Server UUID

period'daily' | 'weekly' | 'monthly' | 'yearly' required

The period for which statistics are calculated.

Example:weekly

Statistics period.

Response

CPU statistics returned.

Example response

{
  "stats": {
    "daily": {
      "summary": {
        "variable": [
          {
            "average": "12 %",
            "current": "8 %",
            "maximum": "37 %",
            "title": "CPU usage %",
            "total": "51 seconds"
          }
        ]
      }
    }
  }
}

Changes

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