Skip to main content

Home

GET /apps/resources/memory/allocated

Gets a time series for CPU allocations by app type.

Request
GET http://<unravel-host>:3000/api/v1/apps/resources/memory/allocated?end_time={end-time}&start_time={start-time}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

start_time

string

Start time. Format yyyy-mm-ddThh:mm:ss.SSS+offset value

end_time

string

End time. Format yyyy-mm-ddThh:mm:ss.SSS+offset value

Examples

Request:

curl -X GET -H "Authorization: JWT <token>" -H "Content-Type:application/json"-H "Content-Type:application/json" -H "Accept: application/json" http://my_server.unraveldata.com:3000/api/v1/apps/resources/memory/allocated?end_time=2022-03-25T16:41:01+05:30&start_time=2022-03-25T15:41:01+05:30

Response body:

{
   "avg": {
       "1648202400000": null,
       "1648206000000": "3072"
   },
   "range": {
       "1648202400000": [
           null,
           null
       ],
       "1648206000000": [
           3072,
           3072
       ]
   }
}