2026-08-17 14:17:24 +02:00
|
|
|
import type { SystemResult } from "./system-result";
|
|
|
|
|
import type { HttpCheckResult } from "./http-result";
|
|
|
|
|
import type { TraefikResult } from "./traefik-result";
|
|
|
|
|
|
2026-08-17 14:01:53 +02:00
|
|
|
export interface DockerContainerResult {
|
|
|
|
|
status: "running" | "exited" | "restarting" | "paused" | "dead" | "created" | "unknown";
|
|
|
|
|
health: "healthy" | "unhealthy" | "starting" | "none";
|
|
|
|
|
startedAt: string | null;
|
|
|
|
|
uptimeSeconds: number | null;
|
|
|
|
|
restartCount: number;
|
|
|
|
|
cpuPercent: number | null;
|
|
|
|
|
memUsageBytes: number | null;
|
|
|
|
|
memLimitBytes: number | null;
|
|
|
|
|
image: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type WidgetResult =
|
|
|
|
|
| { type: "docker"; data: DockerContainerResult }
|
|
|
|
|
| { type: "database"; data: DockerContainerResult }
|
2026-08-17 14:17:24 +02:00
|
|
|
| { type: "system"; data: SystemResult }
|
|
|
|
|
| { type: "http"; data: HttpCheckResult }
|
|
|
|
|
| { type: "traefik"; data: TraefikResult }
|
2026-08-17 14:01:53 +02:00
|
|
|
| { type: "error"; message: string };
|