monitor

package
v0.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 7 Imported by: 1

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为空,则直接将此消息置为无效

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL