Skip to content

RestApis Stats

Davide Miceli edited this page Jan 28, 2019 · 2 revisions

REST APIs - Stats

Returns statistics about the status of the peer.

Endpoint

GET /api/stats

URL Params

None

Data Params

None

Success Response

{
  "status": "active",
  "peer": {
    "id": "0000",
    "role": "peer",
    "blockchain": "blockchain",
    "organization": "brandName"
  },
  "system": {
    "uptime": 2654,
    "mem": 16749039616,
    "freemem": 5853126656,
    "memoryUsage": {
      "rss": 53735424,
      "heapTotal": 24940544,
      "heapUsed": 19434776,
      "external": 174773
    }
  }
}

Sample Call

curl -X GET http://<peer-host>/api/stats -H "Content-Type: application/json"