Skip to main content

Home

Operational

All timestamps are in Unix epoch.

Cluster Nodes by health

Return the count by node status/health.

curl -X GET "http://UNRAVEL_HOST:Port/api/v1/clusters/resources/clusters/nodes?to=End&interval=Interval&from=Start" -H "accept: application/json" -H "Authorization: JWT token"

Additional required parameters:

Polling Interval: 1m | 5m | 10m | 30m |1h

Schema

Note: total = active + unhealthly

{ 
   "date" :  [ 
      // array of polling EPOCH_timestamp
      EPOCH_timestamp
    ],
   "total"  : { 
      // for each polling interval
      EPOCH_timestamp: count
    },
   "active"  : { 
      // for each polling interval
      EPOCH_timestamp: count
    },
   "lost"  : { 
      // for each polling interval
      EPOCH_timestamp: count
    },   
   "unhealthy"  : { 
     //  for each polling interval
     EPOCH_timestamp: count
    },   
   "decommissioned"  : { 
     //  for each polling interval
    EPOCH_timestamp: count
    },   
   "rebooted"  : { 
     //  for each polling interval
    EPOCH_timestamp: count
    }
}

Example

curl -X GET "http://localhost:3000/api/v1/clusters/nodes?to=1536339111&interval=1h&from=1535734311" -H "accept: application/json" -H "Authorization: JWT token"

Sample Output

{
  "date": [
    1535688000000,
    1535691600000,
    1535695200000,
    1535698800000
  ],
  "total": {
    "1535688000000": 3,
    "1535691600000": 3,
    "1535695200000": 3,
    "1535698800000": 3
  },
  "active": {
    "1535688000000": 1,
    "1535691600000": 1,
    "1535695200000": 1,
    "1535698800000": 1
  },
  "lost": {
    "1535688000000": 0,
    "1535691600000": 0,
    "1535695200000": 0,
    "1535698800000": 0
  },
  "unhealthy": {
    "1535688000000": 1,
    "1535691600000": 1,
    "1535695200000": 1,
    "1535698800000": 1
  },
  "decommissioned": {
    "1535688000000": 1,
    "1535691600000": 1,
    "1535695200000": 1,
    "1535698800000": 1
  },
  "rebooted": {
    "1535688000000": 0,
    "1535691600000": 0,
    "1535695200000": 0,
    "1535698800000": 0
  }
}