Implement worker status

This commit is contained in:
Samuel Lorch 2024-04-28 01:59:54 +02:00
parent cf000931e4
commit 0be5af70c3
5 changed files with 62 additions and 1 deletions

8
types/status.go Normal file
View 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"`
}