mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Feature: system status (#5743)
This commit is contained in:
41
src-ui/src/app/data/system-status.ts
Normal file
41
src-ui/src/app/data/system-status.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
export enum InstallType {
|
||||
Containerized = 'containerized',
|
||||
BareMetal = 'bare-metal',
|
||||
}
|
||||
|
||||
export enum SystemStatusItemStatus {
|
||||
OK = 'OK',
|
||||
ERROR = 'ERROR',
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user