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,41 @@
package monitorNewMgr
// 监控信息传输对象
type MonitorModel struct {
//状态码 0 是心跳,非零为错误信息
Code int `json:"Code"`
//组Id
GroupId string `json:"GroupId"`
//组密钥
ProjectId string `json:"ProjectId"`
//项目Id
ServerIp string `json:"ServerIp"`
// 监控使用的服务器IP
ServerName string `json:"ServerName"`
// 监控使用的服务器名称
Content string `json:"Content"`
// 消息产生时的时间戳
Timestamp int64 `json:"Timestamp"`
// 签名
Sign string `json:"Sign"`
}
func newMonitorModel(code int, groupId, projectId, serverIp, serverName, content string, timestamp int64, sign string) *MonitorModel {
return &MonitorModel{
Code: code,
GroupId: groupId,
ProjectId: projectId,
ServerIp: serverIp,
ServerName: serverName,
Content: content,
Timestamp: timestamp,
Sign: sign,
}
}