Home

GET /clusters/{clusterName}/nodes

Gets a time series of all the nodes of a given cluster grouped by node state.

Request
GET http://<unravel-host>:3000/api/v1/clusters/{clusterName}/nodes?end_time={end_time}&start_time={start_time}&interval={interval}&pointInterval={pointInterval}
Path parameters

Name

Description

cluster_name

Cluster name.

Query parameters

Required parameters are highlighted.

Name

Type

Description

start_time

string

Start date and time. Format yyyy-mm-ddThh:mm:ss

end_time

string

End date and time. Format yyyy-mm-ddThh:mm:ss

interval

string

The period after which the data needs to be shown

pointInterval

string

Interval in milliseconds.

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/clusters/2f8873f0-aa5f-11ec-9a4b-1e0036001415/nodes?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:

{
   "total": {
       "1648526400000": null,
       "1648530000000": null
   },
   "active": {
       "1648526400000": null,
       "1648530000000": null
   },
   "lost": {
       "1648526400000": null,
       "1648530000000": null
   },
   "unhealthy": {
       "1648526400000": null,
       "1648530000000": null
   },
   "decommissioned": {
       "1648526400000": null,
       "1648530000000": null
   },
   "rebooted": {
       "1648526400000": null,
       "1648530000000": null
   }
}