GET /apps/resources/cpu/allocated
Gets a time series for CPU allocations by app type.
Request
GET http://<unravel-host>:3000/api/v1/apps/resources/cpu/allocated?end_time={end-time}&start_time={start-time}
Path parameters
None.
Query parameters
Required parameters are highlighted.
Name | Type | Description |
|---|---|---|
| string | Start time. Format |
| string | End time. Format |
Examples
Request:
curl -X GET -H "Authorization: JWT <token>" -H "Content-Type:application/json" -H "Accept: application/json" http://my_sever.unraveldata.com:3000/api/v1/apps/resources/cpu/allocated?end_time=2022-03-25T16:41:01+05:30&start_time=2022-03-25T15:41:01+05:30Response body:
{
"avg": {
"1648202400000": null,
"1648206000000": "2"
},
"range": {
"1648202400000": [
null,
null
],
"1648206000000": [
2,
2
]
}
}