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ยง

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

Enumsยง

CreditRegistrationAttentionReason
Why a row is on the attention table. One row can carry several.

Constantsยง

ALL_ATTENTION_REASONS ๐Ÿ”’
ATTENTION_LIMIT ๐Ÿ”’
Bounds the attention table. A dashboard that renders ten thousand rows helps nobody, and the per-reason counts beside it say how much is left.
DEFAULT_ERROR_WINDOW_SECS ๐Ÿ”’
MAX_ERROR_WINDOW_SECS ๐Ÿ”’
TOO_MANY_ATTEMPTS ๐Ÿ”’
The chatbot_syncer precedent, and the point past which retrying is not the answer.

Functionsยง

_add_routes
get_credit_registration_attention_items
GET /api/v0/main-frontend/credit-registration-admin/attention - 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 ๐Ÿ”’