add new docker payload types, promote docker type monitor to first class monitor

This commit is contained in:
Alex Holliday committed 2026-08-28 12:24:44 -07:00
1 parent 80073af80a
commit 1ca38a31c9
5 files changed
+177 -112

No files matched your search

+33 -1
View File
@@ -96,7 +96,39 @@ export interface HardwareStatusPayload {
[key: string]: unknown;
}
export type DockerStatusPayload = Record<string, unknown>;
// Docker host monitoring
export const DockerContainerStates = ["created", "running", "paused", "restarting", "removing", "exited", "dead"];
export type DockerContainerState = (typeof DockerContainerStates)[number];
export const DockerHealthStatuses = ["healthy", "unhealthy", "starting", "none"] as const;
export type DockerHealthStatus = (typeof DockerHealthStatuses)[number];
export interface DockerContainerSummary {
total: number;
running: number;
stopped: number;
unhealthy: number;
}
export interface DockerContainerInfo {
id: string;
name: string;
image: string;
state: DockerContainerState;
status: string;
health: DockerHealthStatus;
cpuPct?: number;
memoryUsedBytes?: number;
memoryLimitBytes?: number;
memoryPct?: number;
restartCount?: number;
startedAt?: string; // ISO date
}
export interface DockerStatusPayload {
containers: DockerContainerInfo[];
summary: DockerContainerSummary;
}
export interface PortStatusPayload {
success: boolean;