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§
- Credit
Registration Daily Snapshot - Daily
State Counts - Daily
Step Count - 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
fromtoto, 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_engagementreturns them summed over modules. Idempotent.