/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 |
---|---|---|
| string | Start date. Format |
| string | End date. Format |
Response body
Name | Type | Description |
---|---|---|
| integer | Timestamp in Unix epoch format |
| 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 } ]