Skip to main content
Version: Next

HTTPServiceDiscoveryHealthCheckOptions

HTTP 健康检查配置

Hierarchy

Index

Properties

optionalexpectedStatus

expectedStatus?: number

期望的 HTTP 状态码

optionalheaders

headers?: Record<string, string>

HTTP 请求头

optionalinterval

interval?: number

检查间隔(毫秒)

optionalmaxRetries

maxRetries?: number

最大重试次数

optionalmethod

method?: string

HTTP 方法

optionalretryInterval

retryInterval?: number

重试间隔(毫秒)

optionaltimeout

timeout?: number

检查超时时间(毫秒)

url

url: string

健康检查 URL