feat(frontend) : add DatabaseInfo type and service
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@ type Environment = {
|
||||
deployScriptPath: string
|
||||
maintenanceFilePath: string
|
||||
appUrl?: string
|
||||
databaseName?: string
|
||||
logFiles: LogFile[]
|
||||
maintenance: boolean
|
||||
}
|
||||
@@ -22,6 +23,7 @@ type EnvironmentWrite = {
|
||||
deployScriptPath: string
|
||||
maintenanceFilePath: string
|
||||
appUrl?: string
|
||||
databaseName?: string
|
||||
logFiles: LogFile[]
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,16 @@ type PortMapping = {
|
||||
protocol: string
|
||||
}
|
||||
|
||||
type DatabaseInfo = {
|
||||
connected: boolean
|
||||
name: string
|
||||
size: string
|
||||
tableCount: number
|
||||
activeConnections: number
|
||||
cacheHitRatio: number
|
||||
largestTable: string
|
||||
}
|
||||
|
||||
type EnvironmentHealth = {
|
||||
status: string
|
||||
version: string
|
||||
|
||||
Reference in New Issue
Block a user