15 lines
490 B
Go
15 lines
490 B
Go
package service
|
|
|
|
// IMonitor 服务器系统相关信息 服务层接口
|
|
type IMonitor interface {
|
|
// RunMonitor 执行资源监控
|
|
RunMonitor()
|
|
|
|
// RunMonitorDataCancel 启动资源监控数据存储io/network通道 移除之前的chan上下文后在设置新的均值
|
|
// interval 采集的平均值(分钟)
|
|
RunMonitorDataCancel(removeBefore bool, interval float64)
|
|
|
|
// SelectMonitorInfo 查询监控资源信息
|
|
SelectMonitorInfo(query map[string]any) map[string]MonitorData
|
|
}
|