Home

/clusters/resources/cpu/total

Gets total CPU usage across all clusters.

Request
GET http://unravel-host:3000/api/v1/clusters/resources/cpu/total?from={timestamp}&to={timestamp}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

from

string

Start date. Format YYYY-MM-DD

to

string

End date. Format YYYY-MM-DD

Response body
Examples

Request:

curl -X GET "http://http://myserver.com:3000/api/v1/clusters/resources/cpu/total?from=2019-03-28&to=2019-06-28" -H  "accept: application/json" -H  "Authorization: JWT token"

Response body:

{
  "1561536000000": 24,
  "1561539600000": 24,
  "1561543200000": 24,
  "1561546800000": 24,
  "1561550400000": 24,
  "1561554000000": 24,
  "1561557600000": 24,
  "1561561200000": 24,
  "1561564800000": 24,
  "1561568400000": 24,
  "1561572000000": 24,
  "1561575600000": 24,
  "1561579200000": 24,
  "1561582800000": 24,
  "1561586400000": 24,
  "1561590000000": 24,
  "1561593600000": 24,
  "1561597200000": 24,
  "1561600800000": 24,
  "1561604400000": 24,
  "1561608000000": 24,
  "1561611600000": 24,
  "1561615200000": 24
}