Health API
Used for measuring node health.

Path

1
/ext/health
Copied!

API Methods

health.getLiveness

Get health check on this node.
    heartbeat is the unix timestamp of the last time the network handled a message.
    timestamp is the timestamp of the last health check.
    duration is the execution duration of the last health check in milliseconds.
    contiguousFailures is the number of fails that occurred in a row.
    timeOfFirstFailure is the time of the initial transitional failure.

Example Call

1
//Request
2
curl -X POST --data '{
3
"jsonrpc":"2.0",
4
"id" :1,
5
"method" :"health.getLiveness"
6
}' -H 'content-type:application/json;' https://ava-api.bwarelabs.com/<your-endpoint-id>/ext/health
7
8
//Response
9
{
10
"jsonrpc": "2.0",
11
"result": {
12
"checks": {
13
"chains.default.bootstrapped": {
14
"timestamp": "2020-09-14T16:37:18.94094791Z",
15
"duration": 17731,
16
"contiguousFailures": 0,
17
"timeOfFirstFailure": null
18
},
19
"network.validators.heartbeat": {
20
"message": {
21
"heartbeat": 1600101438
22
},
23
"timestamp": "2020-09-14T16:37:18.939024201Z",
24
"duration": 8527,
25
"contiguousFailures": 0,
26
"timeOfFirstFailure": null
27
}
28
},
29
"healthy": true
30
},
31
"id": 1
32
}
Copied!
Last modified 4mo ago