Accountant Portal

Penny restart metrics R1-R11, foundations F1-F5 and A1, and the close metrics (#4358,

Changed on

The p15 health section. metrics is exactly R1 to R11 in order. Each counts, per state, the companies whose latest value is fresh by the registry's staleAfterSeconds; a company whose latest value (in the last 3 days) is older is counted in companies.stale, and decides the state (no_data) only when no company has a fresh value; it is never shown green. state is the worst over them (red, then no_data, then amber, then green), stale counting as no_data; a metric with no value at all is no_data with computedAt null. reasons lists up to 5 distinct reasons of fresh red and no_data values (codes and counts only, e.g. no_run_within_26h, read_failed, no_source: ...). firm is the latest fresh firm-wide value for firm-grain metrics (R2, R6), else null. definition is the metric's F1 registry row in force (lines, comparators, action on red, owner Augusto, backup Jacob, who approved the lines and when), or null if the registry has none. foundations is F1 to F5 and A1: F1 is in place when every restart metric has a registry row with approved lines; F2 when every restart metric has a fresh value; F5 when every live account on every Penny client has a source registry row and there is at least one Penny client (HM-87, migration 679; its counts are in coverage); F3 is in place when a monitor pass finished in the last 15 minutes and every company Penny holds recorded a heartbeat in the last 10; A1 when a monitor pass (which evaluates the alerts) finished in the last 15 minutes and the monitor's newest alert in 7 days reached a channel (slack_sent; an alert only recorded, or none, is not in place, HM-87); F4 answers not_built. Each metric's history is its 7-day strip (HM-86): the last 7 UTC days, oldest first and today last, each the worst state any company stored that day, or none with nothing stored. interimKeys lists the hand-minted service keys not revoked (HM-30), soonest to expire first, with their days to expiry; red under 2 days, expired, or with no expiry. Only their names are shown. A foundation with its own registry row (F3's heartbeat line) carries it as definition. closeMetrics are the nine November close metrics (plan 18.5), kept by hand until Phase 2 (state: kept_by_hand). Values are written by the Penny monitor job (npm run penny:monitor). Any signed-in accountant; no company is named. Every API key is refused, the service token included (404).

get/accountant/penny/health

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Response

Metric states, foundations and close metrics

object required
success, true required
data, object required

Changes