1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 16:59:17 +08:00

71 lines
1.6 KiB
Go

export namespace Dashboard {
export interface BaseInfo {
websiteNumber: number;
databaseNumber: number;
cronjobNumber: number;
appInstalldNumber: number;
hostname: string;
os: string;
platform: string;
platformFamily: string;
platformVersion: string;
kernelArch: string;
kernelVersion: string;
virtualizationSystem: string;
cpuCores: number;
cpuLogicalCores: number;
cpuModelName: string;
currentInfo: CurrentInfo;
}
export interface CurrentInfo {
uptime: number;
timeSinceUptime: string;
procs: number;
load1: number;
load5: number;
load15: number;
loadUsagePercent: number;
cpuPercent: Array<number>;
cpuUsedPercent: number;
cpuUsed: number;
cpuTotal: number;
memoryTotal: number;
memoryAvailable: number;
memoryUsed: number;
MemoryUsedPercent: number;
ioReadBytes: number;
ioWriteBytes: number;
ioCount: number;
ioReadTime: number;
ioWriteTime: number;
diskData: Array<DiskInfo>;
netBytesSent: number;
netBytesRecv: number;
shotTime: Date;
}
export interface DiskInfo {
path: string;
type: string;
device: string;
total: number;
free: number;
used: number;
usedPercent: number;
inodesTotal: number;
inodesUsed: number;
inodesFree: number;
inodesUsedPercent: number;
}
}