Files
1Panel/frontend/src/api/interface/process.ts
T
KOMATA e5b7e99cce feat: retrieve listening processes in firewall port page (#11665)
* feat: Add endpoint to retrieve listening processes and update related services

* fix: Update listening process retrieval logic to include socket type checks

* refactor:  accept context for improved request handling
2026-01-16 16:54:15 +08:00

66 lines
1.3 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;
}
export interface ListeningProcess {
PID: number;
Port: { [key: string]: {} };
Protocol: number;
Name: string;
}
}