alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
56 lines • 1.79 kB
TypeScript
import { Alepha } from "alepha";
import { DateTimeProvider } from "alepha/datetime";
//#region ../../src/server/health/providers/ServerHealthProvider.d.ts
/**
* Register `/health` & `/healthz` endpoint.
*
* - Provides basic health information about the server.
*/
declare class ServerHealthProvider {
protected readonly time: DateTimeProvider;
protected readonly alepha: Alepha;
readonly health: import("alepha/server").RoutePrimitive<{
response: import("zod").ZodObject<{
message: import("zod").ZodString;
uptime: import("zod").ZodNumber;
date: import("zod").ZodString;
ready: import("zod").ZodBoolean;
}, import("zod/v4/core").$strip>;
}>;
readonly healthz: import("alepha/server").RoutePrimitive<{
response: import("zod").ZodObject<{
message: import("zod").ZodString;
uptime: import("zod").ZodNumber;
date: import("zod").ZodString;
ready: import("zod").ZodBoolean;
}, import("zod/v4/core").$strip>;
}>;
protected healthCheck(): {
message: string;
uptime: number;
date: string;
ready: boolean;
};
}
//#endregion
//#region ../../src/server/health/schemas/healthSchema.d.ts
declare const healthSchema: import("zod").ZodObject<{
message: import("zod").ZodString;
uptime: import("zod").ZodNumber;
date: import("zod").ZodString;
ready: import("zod").ZodBoolean;
}, import("zod/v4/core").$strip>;
//#endregion
//#region ../../src/server/health/index.d.ts
/**
* Application health monitoring endpoints.
*
* **Features:**
* - `GET /health` endpoint
*
* @module alepha.server.health
*/
declare const AlephaServerHealth: import("alepha").Service<import("alepha").Module>;
//#endregion
export { AlephaServerHealth, ServerHealthProvider, healthSchema };
//# sourceMappingURL=index.d.ts.map