Variable HealthChecksSchemaConst
HealthChecksSchema: ZodObject<
{
active: ZodOptional<
ZodObject<
{
expect_body: ZodOptional<ZodString>;
expect_status: ZodOptional<ZodNumber>;
fails: ZodOptional<ZodNumber>;
follow_redirects: ZodOptional<ZodBoolean>;
headers: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
interval: ZodOptional<ZodUnion<[ZodNumber, ZodString]>>;
max_size: ZodOptional<ZodNumber>;
passes: ZodOptional<ZodNumber>;
path: ZodOptional<ZodString>;
port: ZodOptional<ZodNumber>;
timeout: ZodOptional<ZodUnion<[ZodNumber, ZodString]>>;
uri: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
expect_body?: string;
expect_status?: number;
fails?: number;
follow_redirects?: boolean;
headers?: Record<string, string[]>;
interval?: string | number;
max_size?: number;
passes?: number;
path?: string;
port?: number;
timeout?: string | number;
uri?: string;
},
{
expect_body?: string;
expect_status?: number;
fails?: number;
follow_redirects?: boolean;
headers?: Record<string, string[]>;
interval?: string | number;
max_size?: number;
passes?: number;
path?: string;
port?: number;
timeout?: string | number;
uri?: string;
},
>,
>;
passive: ZodOptional<
ZodObject<
{
fail_duration: ZodOptional<ZodUnion<[ZodNumber, ZodString]>>;
max_fails: ZodOptional<ZodNumber>;
unhealthy_latency: ZodOptional<ZodUnion<[ZodNumber, ZodString]>>;
unhealthy_request_count: ZodOptional<ZodNumber>;
unhealthy_status: ZodOptional<ZodArray<ZodNumber, "many">>;
},
"strip",
ZodTypeAny,
{
fail_duration?: string
| number;
max_fails?: number;
unhealthy_latency?: string | number;
unhealthy_request_count?: number;
unhealthy_status?: number[];
},
{
fail_duration?: string
| number;
max_fails?: number;
unhealthy_latency?: string | number;
unhealthy_request_count?: number;
unhealthy_status?: number[];
},
>,
>;
},
"strip",
ZodTypeAny,
{
active?: {
expect_body?: string;
expect_status?: number;
fails?: number;
follow_redirects?: boolean;
headers?: Record<string, string[]>;
interval?: string | number;
max_size?: number;
passes?: number;
path?: string;
port?: number;
timeout?: string | number;
uri?: string;
};
passive?: {
fail_duration?: string
| number;
max_fails?: number;
unhealthy_latency?: string | number;
unhealthy_request_count?: number;
unhealthy_status?: number[];
};
},
{
active?: {
expect_body?: string;
expect_status?: number;
fails?: number;
follow_redirects?: boolean;
headers?: Record<string, string[]>;
interval?: string | number;
max_size?: number;
passes?: number;
path?: string;
port?: number;
timeout?: string | number;
uri?: string;
};
passive?: {
fail_duration?: string
| number;
max_fails?: number;
unhealthy_latency?: string | number;
unhealthy_request_count?: number;
unhealthy_status?: number[];
};
},
> = ...
Combined health checks schema