Class ProbeAssertion
- Namespace
- Kuestenlogik.Bowire.Monitoring
- Assembly
- Kuestenlogik.Bowire.Monitoring.dll
A must-pass predicate over a probe's response. v1 covers the three checks a black-box health probe actually needs: an expected status, a latency budget, and a body substring. Richer predicates (JSON-path, header, regex) converge on the shared Flows expectation DSL in a follow-up; this minimal set keeps the Core engine self-contained.
public sealed class ProbeAssertion
- Inheritance
-
ProbeAssertion
- Inherited Members
Constructors
ProbeAssertion()
public ProbeAssertion()
Properties
Expected
The right-hand-side value, string-typed on the wire. Coerced per Kind: an integer status for Status, a millisecond budget for LatencyBelowMs, a substring for BodyContains.
public required string Expected { get; init; }
Property Value
Kind
What to check.
public required ProbeAssertionKind Kind { get; init; }
Property Value
Methods
Evaluate(ProbeExecutionResult)
Evaluate this assertion against a probe execution result.
public ProbeAssertionVerdict Evaluate(ProbeExecutionResult result)
Parameters
resultProbeExecutionResult