Health Check
Get the health of the service
Health Check
- Health Check
EVM
- Chains
Chain Metrics
- Chains, Staking & Teleporter
Health Check
Get the health of the service
Check the health of the service.
GET
/
v2
/
health-check
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
chainId: "43114",
network: "mainnet",
});
async function run() {
const result = await avaCloudSDK.metrics.healthCheck();
// Handle the result
console.log(result);
}
run();
{
"status": "error",
"info": {
"database": {
"status": "up"
}
},
"error": {},
"details": {
"database": {
"status": "up"
}
}
}
Response
200
application/json
The health of the service
The response is of type object
.
Was this page helpful?
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";
const avaCloudSDK = new AvaCloudSDK({
serverURL: "https://api.example.com",
chainId: "43114",
network: "mainnet",
});
async function run() {
const result = await avaCloudSDK.metrics.healthCheck();
// Handle the result
console.log(result);
}
run();
{
"status": "error",
"info": {
"database": {
"status": "up"
}
},
"error": {},
"details": {
"database": {
"status": "up"
}
}
}