GET /clusters/resources/memory/total
Gets a time series for total memory usage in a given cluster.
Request
GET http://<unravel-host>
:3000/api/v1/clusters/resources/memory/total?end_time={end_time}
&start_time={start_time}
&interval={interval}
&pointInterval={pointInterval}
Path parameters
Name | Description |
---|---|
| Cluster name. |
Query parameters
Required parameters are highlighted
.
Name | Type | Description |
---|---|---|
| string | Start date and time. Format |
| string | End date and time. Format |
| string | The period after which the data needs to be shown |
| string | Interval in milliseconds. |
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/clusters/resources/memory/total?end_time=2022-03-29T11:32:42%2B05:30&start_time=2022-02-27T11:32:42%2B05:30&interval=1d&pointInterval=86400000" -H "accept: application/json" -H "Content-Type:application/json" -H "Authorization: JWT <token>
"
Response body:
{ "1645920000000": null, "1647648000000": null, "1647993600000": 4096, "1648080000000": null }