Class ProbeFile
- Namespace
- Kuestenlogik.Bowire.Monitoring
- Assembly
- Kuestenlogik.Bowire.Monitoring.dll
Loads a probe definition file — a saved recording wrapped with the three Monitoring extras (schedule, assertions, severity):
{
"name": "payments-health",
"schedule": "every 60s, 09:00-17:00 UTC, Mon-Fri",
"severity": "crit",
"assertions": [
{ "kind": "status", "expected": "200" },
{ "kind": "latencyBelowMs", "expected": "500" },
{ "kind": "bodyContains", "expected": "healthy" }
],
"recording": { "id": "...", "name": "...", "steps": [ ... ] }
}
A malformed file throws ProbeFileException with a clear reason (the CLI reports it and skips that probe — visible, non-silent).
public static class ProbeFile
- Inheritance
-
ProbeFile
- Inherited Members
Methods
Load(string)
Read + parse a probe file from disk.
public static Probe Load(string path)
Parameters
pathstring
Returns
Parse(string)
Parse a probe definition from a JSON string.
public static Probe Parse(string json)
Parameters
jsonstring