Function: probeHealth()
Makaio Framework / utils/health-probe / probeHealth
Function: probeHealth()
Section titled “Function: probeHealth()”probeHealth(
url,timeoutMs?):Promise<HealthResult|null>
Defined in: ../../../packages/utils/src/health-probe.ts:20
Probe a running Makaio instance at the given URL.
Parameters
Section titled “Parameters”string
Full URL of the /health endpoint (e.g. http://127.0.0.1:6252/health).
timeoutMs?
Section titled “timeoutMs?”number = DEFAULT_PROBE_TIMEOUT_MS
Abort timeout in milliseconds (default 2000).
Returns
Section titled “Returns”Promise<HealthResult | null>
Health result if the instance is alive and responding, null otherwise.