StructsΒ§
- DayBucket
- Digest
- Logged
Event - Logger
- Background writer for
events.jsonl.logis fire-and-forget over an mpsc channel; the writer thread holdswrite_lockwhile appending soclear_logcan take the same lock to safely truncate without racing an in-flight write. - Postpone
Follow Through - Previous
Period - Suppression
ByKind - Suppression
Count - Weekday
Bucket
EnumsΒ§
FunctionsΒ§
- append_
one π - clear_
log - Remove
events.jsonl. Takes the shared writer lock so an in-flight append from theLoggerworker thread can finish first β without it, the writer could re-create the file between ourremove_fileand the next event landing. - compute_
digest - compute_
postpone_ πfollow_ through - For every
BreakPostponedevent inside[range_start, now], look forward in the (chronologically ordered) event stream for the nextBreakEndorBreakSkippedof the same kind and bucket the outcome. Intervening postpones of the same kind donβt resolve β we keep scanning. A postpone with no later resolution in the log counts asunresolved. - export_
csv - guard_
str π - kind_
str π - outcome_
str π - read_
all - weekday_
index π
Type AliasesΒ§
- CsvFields π