Home

/apps/resources/cpu/allocated

Gets a time series for CPU allocattions by app type.

Request
GET http://unravel-host:3000/api/v1/apps/resources/cpu/allocated
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

Name

Type

Description

date

integer

Timestamp in Unix epoch format

SUCCEEDED

integer

Examples

Request:

curl -X GET "http://playground3.unraveldata.com/api/v1/apps/events/inefficient_apps/?start_time=2019-03-01&end_time=2019-03-06&entity_type=2" -H  "accept: application/json" -H  "Authorization: JWT token"

Response body:

[
  {
    "date": 1551938400000,
    "SUCCEEDED": 86
  },
  {
    "date": 1551942000000,
    "SUCCEEDED": 20
  },
  {
    "date": 1551945600000,
    "SUCCEEDED": 34
  }
]