mirror of
https://github.com/amir20/dozzle.git
synced 2026-06-23 04:10:12 +00:00
3895d87337
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
export interface ContainerStat {
|
|
readonly id: string;
|
|
readonly cpu: number;
|
|
readonly memory: number;
|
|
readonly memoryUsage: number;
|
|
readonly networkRxTotal: number;
|
|
readonly networkTxTotal: number;
|
|
readonly diskReadTotal: number;
|
|
readonly diskWriteTotal: number;
|
|
}
|
|
|
|
export interface ContainerMount {
|
|
readonly type: string;
|
|
readonly source: string;
|
|
readonly destination: string;
|
|
readonly rw: boolean;
|
|
}
|
|
|
|
export interface MountStat {
|
|
readonly destination: string;
|
|
readonly total: number;
|
|
readonly free: number;
|
|
readonly used: number;
|
|
readonly available: boolean;
|
|
readonly lastChecked: string;
|
|
}
|
|
|
|
export type ContainerJson = {
|
|
readonly id: string;
|
|
readonly created: string;
|
|
readonly startedAt: string;
|
|
readonly finishedAt: string;
|
|
readonly image: string;
|
|
readonly name: string;
|
|
readonly command: string;
|
|
readonly status: string;
|
|
readonly state: ContainerState;
|
|
readonly host: string;
|
|
readonly cpuLimit: number;
|
|
readonly memoryLimit: number;
|
|
readonly labels: Record<string, string>;
|
|
readonly stats: ContainerStat[];
|
|
readonly mounts?: ContainerMount[];
|
|
readonly mountStats?: Record<string, MountStat>;
|
|
readonly health?: ContainerHealth;
|
|
readonly group?: string;
|
|
};
|
|
|
|
export type ContainerState = "created" | "running" | "exited" | "dead" | "paused" | "restarting" | "deleted";
|
|
export type ContainerHealth = "healthy" | "unhealthy" | "starting";
|