CControxity Docs
GuidesReferenceHTTP APIOpen Controxity
How to

Report health checks

Your database, payments, Google Play or your own parts, working or failing, on Today's Health panel.

One line per thing you depend on#

try {
  await db.query("select 1");
  controxity.health("database", true);
} catch (error) {
  controxity.health("database", false, "high", controxity.codeOf(error));
}
ArgumentMeaning
codeA name in lowercase snake_case, one per thing: database, google_play, stripe, arena_eu. Shown as "Google Play".
okWorking (true) or failing (false). Failing raises it under Problems → How it's running; working clears it.
severityhigh, medium (default) or low. A failing high one counts as down.
reasonWhy, when it fails: an error code like play-403 or timeout. Controxity explains known codes in a sentence.

Call it whenever you know: after a call to that service, or on a timer. Calls are added up and sent once a minute.

Where it shows#

Uptime checks#

To check a web address from outside instead, add an uptime check on the product's Today (Uptime → Add a check): Controxity visits it every minute, times each step, and counts two misses in a row as down.

Controxity 1.132.0These pages are in the repository: docs/site