Skip to main content

Module errors

Expand description

The Errors & stuck tab: what is going wrong by error code, and which rows want a human.

Structsยง

AttentionQuery
CreditRegistrationAttentionItem
CreditRegistrationAttentionItems
CreditRegistrationAttentionReasonCount
CreditRegistrationErrorCodeWindow
One error code over the chosen window and the one before it.
CreditRegistrationErrorsByCode
CreditRegistrationTerminalVerdicts
The verdicts an operator needs beside the errors to rule them out. not_improved is not a failure and is never in the error table above.
ErrorWindowQuery

Constantsยง

ATTENTION_PAGE_SIZE ๐Ÿ”’
Rows per page of the attention queue when the caller names no limit.
DEFAULT_ERROR_WINDOW_SECS ๐Ÿ”’
MAX_ERROR_WINDOW_SECS ๐Ÿ”’

Functionsยง

_add_routes
get_credit_registration_attention_items
GET /api/v0/main-frontend/credit-registration-admin/attention - A page of the rows at least one detector wants a human to look at, with the detectors that picked each.
get_credit_registration_errors_by_code
GET /api/v0/main-frontend/credit-registration-admin/errors/by-code - Error events per code over a window and the window before it, with the terminal verdicts of the same window beside them.
get_credit_registration_thresholds
GET /api/v0/main-frontend/credit-registration-admin/thresholds - Every number the alert rules and the stuck detectors use.
to_attention_item ๐Ÿ”’
to_error_code_window ๐Ÿ”’