Skip to main content

Module credit_registration_daily_snapshots

Module credit_registration_daily_snapshots 

Source
Expand description

Daily queue depth per ledger state, and per timeline step with the Needs attention count.

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
DailyStepCount
One timeline step’s count on one day.

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_attention_counts_between
The Needs attention count per day that has one.
get_between
get_step_counts_between
The step snapshots of every day from from to to, both included, oldest day first.
write_attention_snapshot_for_date
Writes one day’s Needs attention count. Idempotent.
write_snapshot_for_date
Writes one day’s counts. Idempotent, so a re-run cannot double-count.
write_step_snapshot_for_date
Writes one day’s counts per step and engagement, as count_by_step_and_engagement returns them summed over modules. Idempotent.