mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
32 lines
553 B
TypeScript
32 lines
553 B
TypeScript
import { Duration, URI } from "../types";
|
|
/**
|
|
* @additionalProperties false
|
|
*/
|
|
export type HealthcheckConfig = {
|
|
/** Disable healthcheck
|
|
*
|
|
* @default false
|
|
*/
|
|
disable?: boolean;
|
|
/** Healthcheck path
|
|
*
|
|
* @default /
|
|
*/
|
|
path?: URI;
|
|
/**
|
|
* Use GET instead of HEAD
|
|
*
|
|
* @default false
|
|
*/
|
|
use_get?: boolean;
|
|
/** Healthcheck interval
|
|
*
|
|
* @default 5s
|
|
*/
|
|
interval?: Duration;
|
|
/** Healthcheck timeout
|
|
*
|
|
* @default 5s
|
|
*/
|
|
timeout?: Duration;
|
|
};
|