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.

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
Rows the pipeline should have moved by now, per state. Only the four states with a threshold count: the rest wait on a student or a human, where an alert would fire on normal operation.
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.