Frontend system status

This commit is contained in:
shamoon
2024-02-10 23:47:08 -08:00
parent e482aa4e92
commit 87c2efef4d
14 changed files with 564 additions and 48 deletions

View File

@@ -0,0 +1,34 @@
export enum PaperlessInstallType {
Containerized = 'containerized',
BareMetal = 'bare-metal',
}
export enum PaperlessConnectionStatus {
OK = 'OK',
ERROR = 'ERROR',
}
export interface PaperlessSystemStatus {
pngx_version: string
server_os: string
install_type: PaperlessInstallType
storage: {
total: number
available: number
}
database: {
type: string
url: string
status: PaperlessConnectionStatus
error?: string
migration_status: {
latest_migration: string
unapplied_migrations: string[]
}
}
redis: {
url: string
status: PaperlessConnectionStatus
error: string
}
}