18 lines
378 B
TypeScript
18 lines
378 B
TypeScript
export type StatusLevel = 'checking' | 'healthy' | 'degraded' | 'offline'
|
|
|
|
export interface StatusProbe {
|
|
path: string
|
|
ok: boolean
|
|
httpStatus: number | null
|
|
service: string | null
|
|
error: string | null
|
|
}
|
|
|
|
export interface StatusSnapshot {
|
|
level: StatusLevel
|
|
health: StatusProbe | null
|
|
readiness: StatusProbe | null
|
|
checkedAt: string | null
|
|
loading: boolean
|
|
}
|