Documentation ¶
Index ¶
- func CheckAlarmCount(configPath string) func(*testing.T)
- func CheckGetAlarmConfig(configPath string) func(*testing.T)
- func CheckGetMonitoringCommandList(configPath string) func(*testing.T)
- func CheckGetMonitoringPeriod(configPath string) func(*testing.T)
- type Alarmer
- type SlackWebHookAlarmer
- func (a *SlackWebHookAlarmer) GetAlarmConfig() map[string]string
- func (a *SlackWebHookAlarmer) GetAlarmCountMap() map[string]int
- func (a *SlackWebHookAlarmer) GetMonitoringCommandList() []string
- func (a *SlackWebHookAlarmer) GetMonitoringPeriod() time.Duration
- func (a *SlackWebHookAlarmer) GetTotalAlarmCountOfMonitoringCommand(namePattern string) int
- func (a *SlackWebHookAlarmer) Init(configMonitor *alarm.ConfigMonitor)
- func (a *SlackWebHookAlarmer) IsStarted() bool
- func (a *SlackWebHookAlarmer) Start()
- func (a *SlackWebHookAlarmer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAlarmCount ¶
func CheckGetAlarmConfig ¶
Types ¶
type Alarmer ¶
type Alarmer interface { GetMonitoringCommandList() []string GetMonitoringPeriod() time.Duration GetAlarmConfig() map[string]string GetAlarmCountMap() map[string]int GetTotalAlarmCountOfMonitoringCommand(monitoringCommand string) int Init(configMonitor *alarm.ConfigMonitor) Start() IsStarted() bool Stop() }
func NewAlarmer ¶
type SlackWebHookAlarmer ¶
type SlackWebHookAlarmer struct {
// contains filtered or unexported fields
}
func (*SlackWebHookAlarmer) GetAlarmConfig ¶
func (a *SlackWebHookAlarmer) GetAlarmConfig() map[string]string
func (*SlackWebHookAlarmer) GetAlarmCountMap ¶
func (a *SlackWebHookAlarmer) GetAlarmCountMap() map[string]int
func (*SlackWebHookAlarmer) GetMonitoringCommandList ¶
func (a *SlackWebHookAlarmer) GetMonitoringCommandList() []string
func (*SlackWebHookAlarmer) GetMonitoringPeriod ¶
func (a *SlackWebHookAlarmer) GetMonitoringPeriod() time.Duration
func (*SlackWebHookAlarmer) GetTotalAlarmCountOfMonitoringCommand ¶
func (a *SlackWebHookAlarmer) GetTotalAlarmCountOfMonitoringCommand(namePattern string) int
func (*SlackWebHookAlarmer) Init ¶
func (a *SlackWebHookAlarmer) Init(configMonitor *alarm.ConfigMonitor)
func (*SlackWebHookAlarmer) IsStarted ¶
func (a *SlackWebHookAlarmer) IsStarted() bool
func (*SlackWebHookAlarmer) Start ¶
func (a *SlackWebHookAlarmer) Start()
there will be only one go routine for monitoring ProcessInfo mutex is used to achieve it
func (*SlackWebHookAlarmer) Stop ¶
func (a *SlackWebHookAlarmer) Stop()
Click to show internal directories.
Click to hide internal directories.