evaluate

fun evaluate(current: MetricSnapshot, baseline: MetricSnapshot?, gates: Set<MetricGate>, severity: Severity): List<Violation>(source)

Returns one Violation per enabled gate whose current value is worse than baseline.

Parameters

baseline

The committed baseline metrics, or null when none is recorded - in which case no gate can fire (there is nothing to compare against), mirroring cycle preventRegression.

gates

The metrics to enforce.

severity

The severity to assign to each regression violation.