tianji/src/types/server.ts

25 lines
488 B
TypeScript
Raw Normal View History

2023-10-03 20:45:00 +08:00
export interface ServerStatusInfo {
workspaceId: string;
name: string;
hostname: string;
timeout: number;
updatedAt: number;
payload: ServerStatusInfoPayload;
}
export interface ServerStatusInfoPayload {
uptime: number;
load: number;
memory_total: number;
memory_used: number;
swap_total: number;
swap_used: number;
hdd_total: number;
hdd_used: number;
cpu: number;
network_tx: number;
network_rx: number;
network_in: number;
network_out: number;
}