Cluster Api

Get Status

It returns the current status of the cluster's nodes

GET/rest/cluster/status
Query parameters None
Header auth-token: token from authentication
Header / Parameter None
Body None
Returns Cluster Status
Required role MWP ADMIN
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/cluster/status' -H 'auth-token: 928c5455-e984-4211-b811-95fdf57a50f1.1d86309a-ff8b-48f5-8a0e-7c11bc932ba4 192.168.99.1'

Example response

{
  "summary": {
    "minTotalFreeMemoryPercentage": 93,
    "maxTotalFreeMemoryPercentage": 93,
    "avgTotalFreeMemoryPercentage": 93,
    "nodesOnline": 1,
    "totalNodes": 1,
    "latencyProblems": 0
  },
    "nodeStatus": {
      "local": {
        "uptime": {
          "online": true,
          "activeThreads": 44,
          "startTime": 1476765222080,
          "latencyproblems": {},
          "elapsedTimeReport": {
            "atExceptionFilter": {
              "totalTime": 10181,
              "totalCalls": 195
            },
            "total": {
              "totalTime": 10182,
              "totalCalls": 195
            },
            "elaboration": {
              "totalTime": 8408,
              "totalCalls": 190
            }
          },
          "updatimeHR": "0 days 9 hours 55 minutes"
        },
        "memory": {
          "freeMemory": 88872488,
          "totalMemory": 198103040,
          "maxMemory": 1555431424,
          "totalFreeMemoryPercentage": 93
        }
     }
  }
}