Collecting Statistics on Node Status

Function

Queries the status of all nodes and returns the number of nodes in this status.

Syntax

Operation type: GET

URL: https://{ip}:{port}/edgemanager/v1/node/stats

Usage Guidelines

None

Usage Example

Request:

GET https://10.10.10.10:30035/edgemanager/v1/node/stats

Response:

{
    "status": "00000000",
    "msg": "success",
    "data": {
        "ready": 1,
        "notReady": 1,
        "unknown": 1,
        "offline": 1
    }
}

Response status code: 200

Output Description

Table 1 Operation output description

Parameter

Type

Description

status

String

Error code

msg

String

Description

data

Object

Query result

Table 2 data field description

Parameter

Type

Description

ready

Number

Number of nodes in the ready status

notReady

Number

Number of nodes in the notReady status

unknown

Number

Number of nodes in the unknown status

offline

Number

Number of nodes in the offline status

abnormal

Number

Number of nodes in the abnormal status