backend-app-api: flip logic of health service

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-06-05 13:27:39 +02:00
parent 918b397763
commit 44f97c173b
7 changed files with 88 additions and 14 deletions
+12 -1
View File
@@ -335,7 +335,18 @@ export type ExtensionPoint<T> = {
export type ExtensionPointConfig = CreateExtensionPointOptions;
// @public (undocumented)
export interface HealthService {}
export interface HealthService {
// (undocumented)
getLiveness(): Promise<{
status: number;
payload?: any;
}>;
// (undocumented)
getReadiness(): Promise<{
status: number;
payload?: any;
}>;
}
// @public
export interface HttpAuthService {
@@ -17,4 +17,7 @@
/**
* @public
*/
export interface HealthService {}
export interface HealthService {
getLiveness(): Promise<{ status: number; payload?: any }>;
getReadiness(): Promise<{ status: number; payload?: any }>;
}