45 lines
795 B
TypeScript
45 lines
795 B
TypeScript
type DashboardEnvironment = {
|
|
id: number
|
|
name: string
|
|
status: string
|
|
version: string
|
|
}
|
|
|
|
type DashboardApplication = {
|
|
name: string
|
|
slug: string
|
|
giteaUrl?: string
|
|
environments: DashboardEnvironment[]
|
|
}
|
|
|
|
type DashboardResponse = {
|
|
applications: DashboardApplication[]
|
|
}
|
|
|
|
type PortMapping = {
|
|
hostPort: string
|
|
containerPort: string
|
|
protocol: string
|
|
}
|
|
|
|
type DatabaseInfo = {
|
|
connected: boolean
|
|
name: string
|
|
size: string
|
|
tableCount: number
|
|
activeConnections: number
|
|
cacheHitRatio: number
|
|
largestTable: string
|
|
}
|
|
|
|
type EnvironmentHealth = {
|
|
status: string
|
|
version: string
|
|
startedAt: string
|
|
cpuPercent: number
|
|
memoryUsage: string
|
|
memoryLimit: string
|
|
memoryPercent: number
|
|
ports: PortMapping[]
|
|
}
|