Skip to main content

Module metrics

Module metrics 

Source
Expand description

The dashboard’s and the health alerts’ counts over the whole ledger.

Structs§

CreditRegistrationErrorCodeCount
Live rows carrying an error code, split by whether the pipeline is still working on them.
CreditRegistrationThroughputDay
One day of terminal outcomes, for the throughput series.
ModuleRegistrationTotals
Live volumes per course module, for the Courses tab’s one row per module.
OldestNonTerminalRegistration
The row that has been waiting longest for the pipeline to do something with it.
RegistrationLatency
How long registration took, in seconds, for rows that reached registered in a window.
StuckRegistrationCount
StuckThresholds
How long a row may sit in one state before it counts as stuck. Seconds, per state.
TerminalOutcomeTotals
What the pipeline finished in a window.
WaitingForStudentNumber
A pending registration waiting for a student number, with what its student has done about it.
WaitingPresser
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 submissionPending asks verify to wait before polling again.

Functions§

count_by_error_code
The error-code breakdown the Overview shows.
count_by_module
failed_count is failed_permanent and misregistered only, 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_enrolment that 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. misregistered is not terminal, so terminal_at cannot answer this.
count_pending_by_reason
Live pending rows per blocker. Derived from credit_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_count completed on or after since, 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_id narrows to one row.