Skip to main content

record

Function record 

Source
pub fn record(
    ctx: &Ctx,
    alert: Alert,
) -> impl Future<Output = ()> + Send + use<>
Expand description

Records alert and emails it to ALERT_EMAIL unless it is a repeat or over the hourly cap.

Never fails: an alert must not break the request that raised it, so a D1 or mail problem is logged ([ocre alerts] ...) instead. See the module documentation for the rules.