Skip to content

betting_combat.store.dashboards

The tables Grafana reads, in monitoring.betting_combat (Grafana’s Postgres datasource is the monitoring database). Every row is a latest-state snapshot, upserted on its key; the column lists mirror sql/betting_combat_monitoring.sql.

Classes

DashboardStore

data_health

data_health(rows: Sequence[dict[str, Any]]) -> None

decision_log

decision_log(rows: Sequence[dict[str, Any]]) -> None

fight_night

fight_night(rows: Sequence[dict[str, Any]]) -> None

model_registry

model_registry(rows: Sequence[dict[str, Any]]) -> None

session_status

session_status(rows: Sequence[dict[str, Any]]) -> None

trade_ledger

trade_ledger(rows: Sequence[dict[str, Any]]) -> None

write

write(table: str, rows: Sequence[dict[str, Any]]) -> None

Upsert latest state. A value the writer does not know (None) never erases one a previous writer knew (a relaunched run re-writes orders it restored).

Functions

shape

shape(table: str, rows: Sequence[dict[str, Any]]) -> list[dict[str, Any]]

Exactly the table’s columns, floats as floats, JSON as text.