Skip to main content

Module health

Module health 

Source
Expand description

Shared cloud health gate (§4): poll a service URL until it returns the expected status (and, if set, a body containing a needle) or a budget expires. The loop is identical across cloud substrates; only the fault they raise differs, so this returns a neutral HealthFailure the substrate maps to its own HealthFailed (preserving per-provider codes/remediation, §2).

Structs§

HealthFailure
A health gate that never went green within its budget, as neutral data the provider maps to its own fault.

Functions§

poll
Poll url until it returns expected_status and (when set) a body containing contains, or budget expires. Each failed attempt records why, so the returned detail explains the last thing seen.