Skip to main content

Module credit_registration_daily_snapshots

Module credit_registration_daily_snapshots 

Source
Expand description

Daily queue depth per ledger state.

The ledger holds current state only, so a row that passed through a state in an hour leaves no depth trace. Aggregates only: anything per-person belongs in the ledger.

Structs§

CreditRegistrationDailySnapshot
DailyStateCounts

Functions§

count_states_for_day
One row per state, whether or not anything is in it: a state missing from a day would read as a gap in the chart rather than as an empty queue.
get_between
get_series_for_state
write_snapshot_for_date
Writes one day’s counts. Idempotent, so a re-run cannot double-count.