Health API
Used for measuring node health.
Path
/ext/healthAPI Methods
health.getLiveness
Get health check on this node.
heartbeatis the unix timestamp of the last time the network handled a message.timestampis the timestamp of the last health check.durationis the execution duration of the last health check in milliseconds.contiguousFailuresis the number of fails that occurred in a row.timeOfFirstFailureis the time of the initial transitional failure.
Example Call
//Request
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"health.getLiveness"
}' -H 'content-type:application/json;' https://ava-api.bwarelabs.com/<your-endpoint-id>/ext/health
//Response
{
"jsonrpc": "2.0",
"result": {
"checks": {
"chains.default.bootstrapped": {
"timestamp": "2020-09-14T16:37:18.94094791Z",
"duration": 17731,
"contiguousFailures": 0,
"timeOfFirstFailure": null
},
"network.validators.heartbeat": {
"message": {
"heartbeat": 1600101438
},
"timestamp": "2020-09-14T16:37:18.939024201Z",
"duration": 8527,
"contiguousFailures": 0,
"timeOfFirstFailure": null
}
},
"healthy": true
},
"id": 1
}Last updated
Was this helpful?