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));
}try:
db.execute("select 1")
controxity.health("database", True)
except Exception as error:
controxity.health("database", False, "high", controxity.code_of(error))| Argument | Meaning |
|---|---|
code | A name in lowercase snake_case, one per thing: database, google_play, stripe, arena_eu. Shown as "Google Play". |
ok | Working (true) or failing (false). Failing raises it under Problems → How it's running; working clears it. |
severity | high, medium (default) or low. A failing high one counts as down. |
reason | Why, 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#
- Today → Health: each one, working or failing since when, with its reason and what it means.
- Today, all products: one marker per product; a product with something down shows Down.
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