Class TransitionDetector
- Namespace
- Kuestenlogik.Bowire.Monitoring
- Assembly
- Kuestenlogik.Bowire.Monitoring.dll
Decides whether a probe crossed the pass↔fail line (#102). A signal fires only on a transition, never on every run, so an outage pages once and a recovery clears once. The "previous" state is read from the ledger's last row (Decision 2), so transition state survives a restart — a restart mid-outage neither re-fires "went critical" nor drops "recovered".
public static class TransitionDetector
- Inheritance
-
TransitionDetector
- Inherited Members
Methods
Detect(ProbeResult?, ProbeResult)
Compare the previous outcome (from the ledger, or null for a
never-run probe) with the current one. Error is
treated as not-passing, so an error after a pass is a "went failing"
transition and a pass after an error is a "recovered" transition.
public static ProbeTransition Detect(ProbeResult? previous, ProbeResult current)
Parameters
previousProbeResult?currentProbeResult