16 lines
387 B
TypeScript
16 lines
387 B
TypeScript
|
export type HealthStatus = 'UP' | 'DOWN' | 'UNKNOWN' | 'OUT_OF_SERVICE';
|
||
|
|
||
|
export type HealthKey = 'diskSpace' | 'mail' | 'ping' | 'livenessState' | 'readinessState' | 'db';
|
||
|
|
||
|
export interface Health {
|
||
|
status: HealthStatus;
|
||
|
components: {
|
||
|
[key in HealthKey]?: HealthDetails;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export interface HealthDetails {
|
||
|
status: HealthStatus;
|
||
|
details?: { [key: string]: unknown };
|
||
|
}
|