Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm interface {
Alarm(clusterId uint64, kind AlarmKind, title, content string) error
Stop()
}
func NewLocalAlarm ¶
func NewLocalAlarm() Alarm
type AlarmMessage ¶
type LocalAlarm ¶
type LocalAlarm struct {
}
func (*LocalAlarm) Alarm ¶
func (l *LocalAlarm) Alarm(clusterId uint64, kind AlarmKind, title, content string) error
func (*LocalAlarm) Stop ¶
func (l *LocalAlarm) Stop()
type RemoteAlarm ¶
type RemoteAlarm struct {
// contains filtered or unexported fields
}
func NewRemoteAlarm ¶
func NewRemoteAlarm(clusterId uint64, url, mailTo, smsTo string) *RemoteAlarm
func (*RemoteAlarm) Alarm ¶
func (a *RemoteAlarm) Alarm(clusterId uint64, kind AlarmKind, title, content string) error
func (*RemoteAlarm) Stop ¶
func (a *RemoteAlarm) Stop()
Click to show internal directories.
Click to hide internal directories.