mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-06 00:16:53 +08:00
初次提交
This commit is contained in:
22
model/proc.go
Normal file
22
model/proc.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package model
|
||||
|
||||
type ProcessInfo struct {
|
||||
Name string `json:"name"`
|
||||
Uuid int `json:"uuid"`
|
||||
StartTime string `json:"startTime"`
|
||||
User string `json:"user"`
|
||||
Usage Usage `json:"usage"`
|
||||
State State `json:"state"`
|
||||
TermType string `json:"termType"`
|
||||
}
|
||||
|
||||
type Usage struct {
|
||||
Cpu []float64 `json:"cpu"`
|
||||
Mem []float64 `json:"mem"`
|
||||
Time []string `json:"time"`
|
||||
}
|
||||
|
||||
type State struct {
|
||||
State uint8 `json:"state"`
|
||||
Info string `json:"info"`
|
||||
}
|
Reference in New Issue
Block a user