Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package monitorMgr
import (
"encoding/json"
)
// 监控配置对象
type MonitorConfig struct {
// 监控使用的服务器IP
ServerIp string
// 监控使用的服务器名称
ServerName string
// 监控的时间间隔(单位:分钟)
Interval int
}
func (this *MonitorConfig) String() string {
bytes, _ := json.Marshal(this)
return string(bytes)
}
func NewMonitorConfig(serverIp, serverName string, interval int) *MonitorConfig {
return &MonitorConfig{
ServerIp: serverIp,
ServerName: serverName,
Interval: interval,
}
}