Home

/clusters/nodes

Gets a summary of cluster nodes.

Request
GET http://unravel-host:3000/api/v1/clusters/nodes?start_time={date}&end_time={date}
Path parameters

None.

Query parameters

Name

Type

Description

start_time

string

Start date for report.

Format: YYYY-MM-DD

end_time

string

End date for report.

Format: YYYY-MM-DD

Response body
{
  "total": [
    {
      "ts": 0
    }
  ],
  "active": [
    {
      "ts": 0
    }
  ],
  "unhealthy": [
    {
      "ts": 0
    }
  ],
  "lost": [
    {
      "ts": 0
    }
  ],
  "rebooted": [
    {
      "ts": 0
    }
  ],
  "decommissioned": [
    {
      "ts": 0
    }
  ]
}
Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/clusters/nodes/start_time=2020-04-06&end_time=2020-04-06" -H "accept: application/json" -H  "Authorization: JWT token"

Response:

{
  "date": [
    1561611600000,
    1561615200000
  ],
  "total": {
    "1561611600000": 1,
    "1561615200000": 1
  },
  "active": {
    "1561611600000": 1,
    "1561615200000": 1
  },
  "lost": {
    "1561611600000": 0,
    "1561615200000": 0
  },
  "unhealthy": {
    "1561611600000": 0,
    "1561615200000": 0
  },
  "decommissioned": {
    "1561611600000": 0,
    "1561615200000": 0
  },
  "rebooted": {
    "1561611600000": 0,
    "1561615200000": 0
  }
}