mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 14:01:28 +08:00
58 lines
1.2 KiB
Go
58 lines
1.2 KiB
Go
export namespace Process {
|
|
export interface StopReq {
|
|
PID: number;
|
|
}
|
|
|
|
export interface PsProcessData {
|
|
PID: number;
|
|
name: string;
|
|
PPID: number;
|
|
username: string;
|
|
status: string;
|
|
startTime: string;
|
|
numThreads: number;
|
|
numConnections: number;
|
|
cpuPercent: string;
|
|
|
|
diskRead: string;
|
|
diskWrite: string;
|
|
cmdLine: string;
|
|
|
|
rss: string;
|
|
vms: string;
|
|
hwm: string;
|
|
data: string;
|
|
stack: string;
|
|
locked: string;
|
|
swap: string;
|
|
dirty: string;
|
|
pss: string;
|
|
uss: string;
|
|
shared: string;
|
|
text: string;
|
|
|
|
cpuValue: number;
|
|
rssValue: number;
|
|
|
|
envs: string[];
|
|
|
|
openFiles: OpenFilesStat[];
|
|
connects: ProcessConnect[];
|
|
}
|
|
|
|
export interface ProcessConnect {
|
|
type: string;
|
|
status: string;
|
|
localaddr: string;
|
|
remoteaddr: string;
|
|
PID: number;
|
|
name: string;
|
|
}
|
|
|
|
export type ProcessConnects = ProcessConnect[];
|
|
|
|
export interface OpenFilesStat {
|
|
path: string;
|
|
fd: number;
|
|
}
|
|
}
|