UNPKG

@cocalc/project

Version:
33 lines (32 loc) 761 B
export interface DiskAlert { type: "disk"; } export interface MemoryAlert { type: "memory"; } export interface CPUProcAlert { type: "cpu-process"; pids: string[]; } export interface CPUCGAlert { type: "cpu-cgroup"; } export declare type ComponentName = "BlobStore"; export interface Component { type: "component"; names: ComponentName[]; } export declare type Alert = DiskAlert | MemoryAlert | CPUProcAlert | CPUCGAlert | Component; export declare type AlertType = Alert["type"]; export interface ProjectStatus { version: number; alerts: Alert[]; usage: { disk_mb?: number; mem_pct?: number; mem_tot?: number; cpu_pct?: number; cpu_tot?: number; mem_rss?: number; }; }