完成基本的系统监控类库
This commit is contained in:
@@ -35,5 +35,6 @@ var (
|
||||
Db *gorm.DB
|
||||
RedisDb *redis.Client
|
||||
SystemSetting *systemSetting.SystemSettingCache
|
||||
SystemMonitor cache.Cacher[ModelSystemMonitor]
|
||||
RateLimit *RateLimiter
|
||||
)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package global
|
||||
|
||||
import "sun-panel/lib/monitor"
|
||||
|
||||
type ModelSystemMonitor struct {
|
||||
CPUInfo monitor.CPUInfo
|
||||
DiskInfo []monitor.DiskInfo
|
||||
NetIOCountersInfo []monitor.NetIOCountersInfo
|
||||
MemoryInfo monitor.MemoryInfo
|
||||
// NetIOCountersInfo monitor.NetIOCountersInfo
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user