Files
Central/frontend/services/dto/dashboard.ts
Matthieu ab2b3fd9ef
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
feat : display container port mappings in environment health
Extract exposed ports from docker inspect and show them as badges (hostPort:containerPort)
in the environment health section.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 11:27:46 +02:00

35 lines
609 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 EnvironmentHealth = {
status: string
version: string
startedAt: string
cpuPercent: number
memoryUsage: string
memoryLimit: string
memoryPercent: number
ports: PortMapping[]
}