chore: watch api

This commit is contained in:
jialin
2024-06-28 17:14:34 +08:00
parent 871bca1916
commit cf0113e8d8
35 changed files with 1171 additions and 627 deletions
+24 -1
View File
@@ -17,6 +17,29 @@ export interface Gpu {
temperature: number;
}
export interface GPUDeviceItem {
uuid: string;
name: string;
vendor: string;
index: number;
core: {
total: number;
utilization_rate: number;
};
memory: {
total: number;
utilization_rate: number;
is_unified_memory: boolean;
used: number;
allocated: number;
};
temperature: number;
id: string;
worker_id: number;
worker_name: string;
worker_ip: string;
}
export interface Filesystem {
name: string;
mount_point: string;
@@ -52,7 +75,7 @@ export interface ListItem {
used: number;
allocated: number;
};
gpu: Gpu[];
gpu_devices: GPUDeviceItem[];
swap: {
total: number;
used: number;