import _m0 from 'protobufjs/minimal'; import { Duration } from '../../../../google/protobuf/duration'; export declare const protobufPackage = "yandex.cloud.loadbalancer.v1"; /** A HealthCheck resource. For more information, see [Health check](/docs/network-load-balancer/concepts/health-check). */ export interface HealthCheck { /** Name of the health check. The name must be unique for each target group that attached to a single load balancer. 3-63 characters long. */ name: string; /** The interval between health checks. The default is 2 seconds. */ interval?: Duration; /** Timeout for a target to return a response for the health check. The default is 1 second. */ timeout?: Duration; /** Number of failed health checks before changing the status to `` UNHEALTHY ``. The default is 2. */ unhealthyThreshold: number; /** Number of successful health checks required in order to set the `` HEALTHY `` status for the target. The default is 2. */ healthyThreshold: number; /** Options for TCP health check. */ tcpOptions?: HealthCheck_TcpOptions | undefined; /** Options for HTTP health check. */ httpOptions?: HealthCheck_HttpOptions | undefined; } /** Configuration option for a TCP health check. */ export interface HealthCheck_TcpOptions { /** Port to use for TCP health checks. */ port: number; } /** Configuration option for an HTTP health check. */ export interface HealthCheck_HttpOptions { /** Port to use for HTTP health checks. */ port: number; /** * URL path to set for health checking requests for every target in the target group. * For example `` /ping ``. The default path is `` / ``. */ path: string; } export declare const HealthCheck: { encode(message: HealthCheck, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheck; fromJSON(object: any): HealthCheck; toJSON(message: HealthCheck): unknown; fromPartial, never>) | undefined; timeout?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; unhealthyThreshold?: number | undefined; healthyThreshold?: number | undefined; tcpOptions?: ({ port?: number | undefined; } & { port?: number | undefined; } & Record, never>) | undefined; httpOptions?: ({ port?: number | undefined; path?: string | undefined; } & { port?: number | undefined; path?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): HealthCheck; }; export declare const HealthCheck_TcpOptions: { encode(message: HealthCheck_TcpOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheck_TcpOptions; fromJSON(object: any): HealthCheck_TcpOptions; toJSON(message: HealthCheck_TcpOptions): unknown; fromPartial, never>>(object: I): HealthCheck_TcpOptions; }; export declare const HealthCheck_HttpOptions: { encode(message: HealthCheck_HttpOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HealthCheck_HttpOptions; fromJSON(object: any): HealthCheck_HttpOptions; toJSON(message: HealthCheck_HttpOptions): unknown; fromPartial, never>>(object: I): HealthCheck_HttpOptions; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};