mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
43 lines
942 B
TypeScript
43 lines
942 B
TypeScript
export enum InstallType {
|
|
Containerized = 'containerized',
|
|
BareMetal = 'bare-metal',
|
|
}
|
|
|
|
export enum SystemStatusItemStatus {
|
|
OK = 'OK',
|
|
ERROR = 'ERROR',
|
|
WARNING = 'WARNING',
|
|
}
|
|
|
|
export interface SystemStatus {
|
|
pngx_version: string
|
|
server_os: string
|
|
install_type: InstallType
|
|
storage: {
|
|
total: number
|
|
available: number
|
|
}
|
|
database: {
|
|
type: string
|
|
url: string
|
|
status: SystemStatusItemStatus
|
|
error?: string
|
|
migration_status: {
|
|
latest_migration: string
|
|
unapplied_migrations: string[]
|
|
}
|
|
}
|
|
tasks: {
|
|
redis_url: string
|
|
redis_status: SystemStatusItemStatus
|
|
redis_error: string
|
|
celery_status: SystemStatusItemStatus
|
|
index_status: SystemStatusItemStatus
|
|
index_last_modified: string // ISO date string
|
|
index_error: string
|
|
classifier_status: SystemStatusItemStatus
|
|
classifier_last_trained: string // ISO date string
|
|
classifier_error: string
|
|
}
|
|
}
|