HealthConfig
Defined in: src/core/health.ts:8
Configuration for the health route factory.
Properties
Section titled “Properties”includeUpstreamStatus?
Section titled “includeUpstreamStatus?”
optionalincludeUpstreamStatus:boolean
Defined in: src/core/health.ts:14
Include individual upstream statuses in response. Default: false.
optionalpath:string
Defined in: src/core/health.ts:10
Health endpoint path. Default: “/health”.
probeMethod?
Section titled “probeMethod?”
optionalprobeMethod:string
Defined in: src/core/health.ts:18
HTTP method for upstream probes. Default: "HEAD".
probeTimeoutMs?
Section titled “probeTimeoutMs?”
optionalprobeTimeoutMs:number
Defined in: src/core/health.ts:16
Timeout in ms for each upstream probe. Default: 5000.
unhealthyStatusCode?
Section titled “unhealthyStatusCode?”
optionalunhealthyStatusCode:number
Defined in: src/core/health.ts:20
Status code returned when all probes are unhealthy. Default: 503.
upstreamProbes?
Section titled “upstreamProbes?”
optionalupstreamProbes:string[]
Defined in: src/core/health.ts:12
URLs to probe for upstream health.