Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlarmBody ¶
type AlarmBody struct { IP string `json:"ip"` Cluster string `json:"cluster"` AlarmMsg []string `json:"alarmMsg"` }
AlarmBody defines alarm body sending to script or api
type Manager ¶
type Manager struct { types.AlarmConfig // contains filtered or unexported fields }
Manager is used to send alarm message
func NewManager ¶
func NewManager(cfg *types.AlarmConfig) *Manager
NewManager returns an instance of alarm manager
type WeWorkMessage ¶
type WeWorkMessage struct { MessageType string `json:"msgtype"` Markdown markdown `json:"markdown,omitempty"` }
WeWorkMessage is the format of wework message
Click to show internal directories.
Click to hide internal directories.