Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "MonitorModule"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MonitorModule ¶
type MonitorModule struct { Id bson.ObjectId `json:"id,omitempty" bson:"_id,omitempty"` Kind string `json:"kind"` Svcname string `json:"svcname"` Namespace string `json:"namespace"` Status string `json:"status"` Msg string `json:"msg"` Num int `json:"num"` }
Write by zhangtao<ztao8607@gmail.com> . In 2018/2/7.
func (*MonitorModule) Save ¶
func (mm *MonitorModule) Save() error
Save 保存监控信息 监控信息中Kind不得为空 初始监控状态为NotDeal。如果svcname或者namespace为空,则直接将此消息置为无效
Click to show internal directories.
Click to hide internal directories.