Namespaces

ovok.health

Check that the Ovok API and its dependencies are healthy.

  • Stable unknown
  • Release candidate since 0.4.49-rc.4
  • Development since 0.4.49-dev.517+4645a0a

A health probe. It needs no sign-in and grants no access to project data.

Check the API

const health = await ovok.health.check();

if (!health.ok) {
  throw new Error('Ovok API is not healthy');
}
  • The route always answers 200. Read ok, not the HTTP status.
  • dependencies holds an ok flag per dependency, by name.
  • version, buildEnv and commitHash are filled when the server reports them, and can be null.
  • Calls GET healthcheck.

Reference

Last updated on

On this page