增加获取各项监控的单独api

This commit is contained in:
Sun
2024-01-04 12:08:39 +08:00
parent d3e3cf5d58
commit baf64a9272
7 changed files with 102 additions and 5 deletions
+9 -1
View File
@@ -1,6 +1,14 @@
package global
import "sun-panel/lib/monitor"
import (
"sun-panel/lib/monitor"
)
const (
SystemMonitor_CPU_INFO = "CPU_INFO"
SystemMonitor_MEMORY_INFO = "MEMORY_INFO"
SystemMonitor_DISK_INFO = "DISK_INFO"
)
type ModelSystemMonitor struct {
CPUInfo monitor.CPUInfo `json:"cpuInfo"`