pub async fn get_attention_items(
conn: &mut PgConnection,
thresholds: &StuckThresholds,
too_many_attempts: i32,
selection: AttentionSelection<'_>,
) -> ModelResult<Vec<AttentionRegistration>>Expand description
A page of the attention queue, with the totals for everything the call selected on every row.
The one query behind the Errors tab’s pages and count_needing_attention, so the queue an
operator works through and the counts the Overview tile and tab badge show cannot disagree.
A row is in the queue when at least one detector fired or the pipeline flagged it, so clearing
the flag by hand only removes a row no detector also picked. Superseded rows are excluded in the
query itself rather than a later predicate: a false positive here costs an operator’s attention
directly. thresholds are the same seconds count_stuck uses, so the
table and the alert can’t disagree about what stuck means. reasons and only_without_reason
behave as on AttentionSelection.