Expand description
The dashboard’s and the health alerts’ counts over the whole ledger.
Structs§
- Credit
Registration Error Code Count - Live rows carrying an error code, split by whether the pipeline is still working on them.
- Credit
Registration Throughput Day - One day of terminal outcomes, for the throughput series.
- Module
Registration Totals - Live volumes per course module, for the Courses tab’s one row per module.
- Oldest
NonTerminal Registration - The row that has been waiting longest for the pipeline to do something with it.
- Registration
Latency - How long registration took, in seconds, for rows that reached
registeredin a window. - Stuck
Registration Count - Stuck
Thresholds - How long a row may sit in one state before it counts as stuck. Seconds, per state.
- Terminal
Outcome Totals - What the pipeline finished in a window.
- Waiting
ForStudent Number - A
pendingregistration waiting for a student number, with what its student has done about it. - Waiting
Presser - A student waiting for a student number who pressed “I have enrolled”, with what has happened on their course code since.
Constants§
- SUOTAR_
PENDING_ 🔒WAIT - The longest
submissionPendingasks verify to wait before polling again.
Functions§
- count_
by_ error_ code - The error-code breakdown the Overview shows.
- count_
by_ module failed_countisfailed_permanentandmisregisteredonly, so the columns do not add up to the total by design.- count_
by_ state - Live rows per state, for the dashboard funnel. Superseded attempts are excluded, as in the per-course sibling, or a course that regrades counts every student twice.
- count_
due_ enrolment_ checks - Live rows parked in
no_usable_enrolmentthat an unscoped resolve-enrolments claim would take for an enrolment check now; the rest wait for their schedule, their module, or a lookup already out. Leaves out the claim’s one-row-per-student-and-module hold, which only defers a row. - count_
entered_ state_ since - Live rows that entered one state within the window.
misregisteredis not terminal, soterminal_atcannot answer this. - count_
pending_ by_ reason - Live
pendingrows per blocker. Derived fromcredit_registration_preconditions, so it cannot disagree with what the recompute is waiting for or with what the student is shown. - count_
stuck_ in_ state - Rows past their state’s threshold, per state, for the stuck-registrations alert. Counted whatever their Needs attention standing: a dismissal or another reason does not unstick a row.
- count_
terminal_ outcomes_ since - get_
oldest_ non_ terminal - get_
registration_ latency_ between - get_
throughput_ by_ day - Daily terminal outcomes over the window. Withdrawn rows are in no column: they are neither a success nor a failure.
- get_
waiting_ for_ student_ number - The rows behind
PendingReasonCounts::student_number_countcompleted on or aftersince, longest waiting first, with how many there are in all. - get_
waiting_ pressers - Students waiting for a student number who pressed “I have enrolled” and completed on or after
since, longest waiting first.credit_registration_idnarrows to one row.