Skip to main content

classify

Function classify 

Source
pub fn classify(
    handle: &CertHandle,
    last_result: Option<&Result<IssuedCert, IssuanceError>>,
    now: OffsetDateTime,
    thresholds: &AlarmThresholds,
    unprovisioned: bool,
) -> CertHealth
Expand description

Computes the alarm state from the current cert and the last issuance result.

Pure function; unit-testable without time mocking fixtures beyond [OffsetDateTime].