Home

/reports/operational/clusterworkload?gte={timestamp}&lte={timestamp}&reportBy={interval}

Gets a summary of the cluster's workloads.

Request
GET http://unravel-host:3000/api/v1/reports/operational/clusterworkload?gte={timestamp}&lte={timestamp}&reportBy={interval}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

gte

string

Start time, in Unix epoch format.

lte

string

End time, in Unix epoch format.

reportBy

string

Report interval.

Valid values are month, hour, hourday.

Response body
// work load by month one of more months with the application count for month
// minimum of one month
  { timestamp: appcount[,timestamp: appcount] }

// work load by hour array of 25 hours
   [
      { timestamp: appcount }, ...  { timestamp: appcount }
   ]

// work load by day - array for each days contained with the time period (Mon - Sun)
// minimum of one day
   [
      { timestamp: appcount }
   ]

// work load by hour/day:array for each day (Mon - Sun) by hour
// minimum of 24 hours for one day
  [
    { timestamp: appcount }
  ]

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/reports/operational/clusterworkload?gte=1536777000Z&lte=1536863400Z&reportBy=month" -H  "accept: application/json" -H  "Authorization: JWT token"

Response:

{"1536777000":96,"1536863400":4}  
[
{"1536813000000":0},{"1536816600000":0},{"1536820200000":0},{"1536823800000":10},{"1536827400000":7},{"1536831000000":13},{"1536834600000":10},{"1536838200000":31},{"1536841800000":0},{"1536845400000":0},{"1536849000000":4},{"1536852600000":2},{"1536856200000":0},{"1536859800000":0},{"1536863400000":0},{"1536867000000":0},{"1536870600000":0},{"1536874200000":0},{"1536877800000":0},{"1536881400000":0},{"1536885000000":0},{"1536888600000":0},{"1536892200000":0},{"1536895800000":6},{"1536899400000":2}]
[
{"1536777000000":96},{"1536863400000":7}
]
[{"1536813000000":0},{"1536816600000":0},{"1536820200000":0},{"1536823800000":10},{"1536827400000":7},{"1536831000000":13},{"1536834600000":10},{"1536838200000":31},{"1536841800000":0},{"1536845400000":0},{"1536849000000":4},{"1536852600000":2},{"1536856200000":0},{"1536859800000":0},{"1536863400000":0},{"1536867000000":0},{"1536870600000":0},{"1536874200000":0},{"1536877800000":0},{"1536881400000":0},{"1536885000000":0},{"1536888600000":0},{"1536892200000":0},{"1536895800000":6},{"1536899400000":2}]