Skip to content

Thresholds

evaluate_thresholds

evaluate_thresholds(comparison: Comparison, thresholds: Mapping[str, Mapping[str, Any]]) -> ThresholdResult

Check metric values against limits; see the module docstring.

ThresholdResult dataclass

ThresholdResult(checks: list[ThresholdCheck])

ThresholdCheck dataclass

ThresholdCheck(metric: str, sample: str, group: str, value: float, limits: dict[str, float], passed: bool, message: str, point: dict[str, Any] = dict())