Home

/clusters/{cluster_name}/nodes

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

Request
GET http://unravel-host:3000/api/v1/clusters/{cluster_name}/nodes?from={timestamp}&to={timestamp}
Path parameters

Name

Description

cluster_name

Cluster name.

Query parameters

Required parameters are highlighted.

Name

Type

Description

from

string

Start date. Format YYYY-MM-DD

to

string

End date. 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://http://myserver.com:3000/api/v1/clusters/QACDH601A/nodes?from=2019-03-28&to=2019-06-28" -H  "accept: application/json" -H  "Authorization: JWT token"

Response body:

{
  "date": [
    1561536000000,
    1561539600000,
    1561543200000,
    1561546800000,
    1561550400000,
    1561554000000,
    1561557600000,
    1561561200000,
    1561564800000,
    1561568400000,
    1561572000000,
    1561575600000,
    1561579200000,
    1561582800000,
    1561586400000,
    1561590000000,
    1561593600000,
    1561597200000,
    1561600800000,
    1561604400000,
    1561608000000,
    1561611600000,
    1561615200000
  ],
  "total": {
    "1561536000000": 1,
    "1561539600000": 1,
    "1561543200000": 1,
    "1561546800000": 1,
    "1561550400000": 1,
    "1561554000000": 1,
    "1561557600000": 1,
    "1561561200000": 1,
    "1561564800000": 1,
    "1561568400000": 1,
    "1561572000000": 1,
    "1561575600000": 1,
    "1561579200000": 1,
    "1561582800000": 1,
    "1561586400000": 1,
    "1561590000000": 1,
    "1561593600000": 1,
    "1561597200000": 1,
    "1561600800000": 1,
    "1561604400000": 1,
    "1561608000000": 1,
    "1561611600000": 1,
    "1561615200000": 1
  },
  "active": {
    "1561536000000": 1,
    "1561539600000": 1,
    "1561543200000": 1,
    "1561546800000": 1,
    "1561550400000": 1,
    "1561554000000": 1,
    "1561557600000": 1,
    "1561561200000": 1,
    "1561564800000": 1,
    "1561568400000": 1,
    "1561572000000": 1,
    "1561575600000": 1,
    "1561579200000": 1,
    "1561582800000": 1,
    "1561586400000": 1,
    "1561590000000": 1,
    "1561593600000": 1,
    "1561597200000": 1,
    "1561600800000": 1,
    "1561604400000": 1,
    "1561608000000": 1,
    "1561611600000": 1,
    "1561615200000": 1
  },
  "lost": {
    "1561536000000": 0,
    "1561539600000": 0,
    "1561543200000": 0,
    "1561546800000": 0,
    "1561550400000": 0,
    "1561554000000": 0,
    "1561557600000": 0,
    "1561561200000": 0,
    "1561564800000": 0,
    "1561568400000": 0,
    "1561572000000": 0,
    "1561575600000": 0,
    "1561579200000": 0,
    "1561582800000": 0,
    "1561586400000": 0,
    "1561590000000": 0,
    "1561593600000": 0,
    "1561597200000": 0,
    "1561600800000": 0,
    "1561604400000": 0,
    "1561608000000": 0,
    "1561611600000": 0,
    "1561615200000": 0
  },
  "unhealthy": {
    "1561536000000": 0,
    "1561539600000": 0,
    "1561543200000": 0,
    "1561546800000": 0,
    "1561550400000": 0,
    "1561554000000": 0,
    "1561557600000": 0,
    "1561561200000": 0,
    "1561564800000": 0,
    "1561568400000": 0,
    "1561572000000": 0,
    "1561575600000": 0,
    "1561579200000": 0,
    "1561582800000": 0,
    "1561586400000": 0,
    "1561590000000": 0,
    "1561593600000": 0,
    "1561597200000": 0,
    "1561600800000": 0,
    "1561604400000": 0,
    "1561608000000": 0,
    "1561611600000": 0,
    "1561615200000": 0
  },
  "decommissioned": {
    "1561536000000": 0,
    "1561539600000": 0,
    "1561543200000": 0,
    "1561546800000": 0,
    "1561550400000": 0,
    "1561554000000": 0,
    "1561557600000": 0,
    "1561561200000": 0,
    "1561564800000": 0,
    "1561568400000": 0,
    "1561572000000": 0,
    "1561575600000": 0,
    "1561579200000": 0,
    "1561582800000": 0,
    "1561586400000": 0,
    "1561590000000": 0,
    "1561593600000": 0,
    "1561597200000": 0,
    "1561600800000": 0,
    "1561604400000": 0,
    "1561608000000": 0,
    "1561611600000": 0,
    "1561615200000": 0
  },
  "rebooted": {
    "1561536000000": 0,
    "1561539600000": 0,
    "1561543200000": 0,
    "1561546800000": 0,
    "1561550400000": 0,
    "1561554000000": 0,
    "1561557600000": 0,
    "1561561200000": 0,
    "1561564800000": 0,
    "1561568400000": 0,
    "1561572000000": 0,
    "1561575600000": 0,
    "1561579200000": 0,
    "1561582800000": 0,
    "1561586400000": 0,
    "1561590000000": 0,
    "1561593600000": 0,
    "1561597200000": 0,
    "1561600800000": 0,
    "1561604400000": 0,
    "1561608000000": 0,
    "1561611600000": 0,
    "1561615200000": 0
  }
}