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.metricsHealthCheck();

  // 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
status
enum<string>
Available options:
error,
ok,
shutting_down
info
object | null
Example:
{ "database": { "status": "up" } }
error
object | null
Example:
{}
details
object
Example:
{ "database": { "status": "up" } }