Implement worker status
This commit is contained in:
parent
cf000931e4
commit
0be5af70c3
5 changed files with 62 additions and 1 deletions
8
types/status.go
Normal file
8
types/status.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package types
|
||||
|
||||
type WorkerStatus struct {
|
||||
CPUCount uint64 `json:"cpu_count"`
|
||||
CPUUsage uint64 `json:"cpu_usage"`
|
||||
MemoryTotal uint64 `json:"memory_total"`
|
||||
MemoryUsage uint64 `json:"memory_usage"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue