Improve health checks for instances

This commit is contained in:
2025-10-26 19:05:03 +01:00
parent f94d05dad2
commit 2a1bebeb24
5 changed files with 324 additions and 80 deletions

View File

@@ -11,12 +11,16 @@ export const BackendType = {
export type BackendTypeValue = typeof BackendType[keyof typeof BackendType]
export type InstanceStatus = 'running' | 'stopped' | 'failed'
export type InstanceStatus = 'running' | 'stopped' | 'failed' | 'restarting'
export type HealthState = 'stopped' | 'starting' | 'loading' | 'ready' | 'error' | 'failed' | 'restarting'
export interface HealthStatus {
status: 'ok' | 'loading' | 'error' | 'unknown' | 'failed'
message?: string
state: HealthState
instanceStatus: InstanceStatus | 'unknown'
lastChecked: Date
error?: string
source: 'backend' | 'http' | 'error'
}
export interface Instance {