ee-ts-util
Version:
typescript utilities and functions
15 lines (14 loc) • 612 B
TypeScript
export declare type ServiceHealthCheckAdapter = () => Promise<ServiceHealthCheck>;
export declare enum HealthCheckStatus {
OK = "OK",
FAIL = "FAIL",
}
export declare const FAIL: HealthCheckStatus;
export declare const OK: HealthCheckStatus;
export declare type ServiceHealthCheck = {
name: string;
status: HealthCheckStatus;
reason?: string;
};
export declare const buildWebServiceHealthCheckAdapter: (baseUrl: string, serviceName: string) => ServiceHealthCheckAdapter;
export declare const webServiceHealthCheckAdapter: (baseUrl: string, serviceName: string) => Promise<ServiceHealthCheck>;