GET /clusters/nodes
Gets a summary of cluster nodes.
Request
GET http://<unravel-host>:3000/api/v1/clusters/*/nodes?end_time={end_time}&start_time={start_time}&interval={interval}&pointInterval={pointInterval}
Path parameters
None
Query parameters
Name | Type | Description |
|---|---|---|
| string | Start date and time. Format |
| string | End date and time. Format |
| string | The time 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/*/nodes?end_time=2022-03-29T11:29:01%2B05:30&start_time=2022-02-27T11:29:01%2B05:30&interval=1d&pointInterval=86400000" -H "accept: application/json" -H "Authorization: JWT <token>"Response:
{
"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
}
}