interface NextHealthRouteOptions {
scope: HealthScope
format?: "json" | "summary"
httpStatus?: HealthHttpStatusPolicy
includeDetails?: boolean | ((request: Request) => boolean)
protect?: NextHealthRouteProtection
headers?: HeadersInit | ((report: HealthReport) => HeadersInit)
cache?: "no-store"
}
Exported from: @nexload-sdk/healthcheck-next
Public interface exported by @nexload-sdk/healthcheck-next.
NextHealthRouteProtection
Sourceinterface NextHealthRouteProtection {
bearerToken?: string
basicAuth?: {
username: string
password: string
}
allowCidrs?: readonly string[]
allowIps?: readonly string[]
trustProxy?: boolean
proxyHeader?: "x-forwarded-for" | "x-real-ip" | string
}
Exported from: @nexload-sdk/healthcheck-next
Public interface exported by @nexload-sdk/healthcheck-next.
interface NextMetricsRouteOptions {
format: "prometheus" | "openmetrics" | "json"
scope?: HealthRunScope
protect?: NextHealthRouteProtection
prefix?: string
defaultLabels?: Record<string, string>
}
Exported from: @nexload-sdk/healthcheck-next
Public interface exported by @nexload-sdk/healthcheck-next.