Versions in this module Expand all Collapse all v0 v0.6.2 Nov 6, 2021 v0.6.1 Nov 6, 2021 Changes in this version + const SYSTEM_CRITICAL + const SYSTEM_HEALTHY + const SYSTEM_UNSTABLE + type AwsSnsNotifier struct + ClusterName string + Enabled bool + Region string + Template string + TopicArn string + func (awssns *AwsSnsNotifier) Copy() Notifier + func (awssns *AwsSnsNotifier) NotifierName() string + func (awssns *AwsSnsNotifier) Notify(messages Messages) bool + type EmailNotifier struct + ClusterName string + Enabled bool + OnePerAlert bool + OnePerNode bool + Password string + Port int + Receivers []string + SenderAlias string + SenderEmail string + Template string + Url string + Username string + func (emailNotifier *EmailNotifier) Copy() Notifier + func (emailNotifier *EmailNotifier) NotifierName() string + func (emailNotifier *EmailNotifier) Notify(alerts Messages) bool + type HipChatNotifier struct + AuthToken string + BaseURL string + ClusterName string + Enabled bool + From string + RoomId string + func (notifier *HipChatNotifier) Copy() Notifier + func (notifier *HipChatNotifier) NotifierName() string + func (notifier *HipChatNotifier) Notify(messages Messages) bool + type HttpEndpointNotifier struct + BaseURL string + ClusterName string + Enabled bool + Endpoint string + Payload map[string]string + func (notifier *HttpEndpointNotifier) Copy() Notifier + func (notifier *HttpEndpointNotifier) NotifierName() string + func (notifier *HttpEndpointNotifier) Notify(messages Messages) bool + type ILertNotifier struct + ApiKey string + Enabled bool + IncidentKeyTemplate string + func (il *ILertNotifier) Copy() Notifier + func (il *ILertNotifier) NotifierName() string + func (il *ILertNotifier) Notify(messages Messages) bool + type InfluxdbNotifier struct + Database string + Enabled bool + Host string + Password string + SeriesName string + Username string + func (influxdb *InfluxdbNotifier) Copy() Notifier + func (influxdb *InfluxdbNotifier) NotifierName() string + func (influxdb *InfluxdbNotifier) Notify(messages Messages) bool + type LogNotifier struct + Enabled bool + Path string + func (logNotifier *LogNotifier) Copy() Notifier + func (logNotifier *LogNotifier) NotifierName() string + func (logNotifier *LogNotifier) Notify(alerts Messages) bool + type MattermostAuthInfo struct + AllowMarketing bool + AuthData string + AuthService string + CreateAt int64 + DeleteAt int64 + Email string + EmailVerified bool + FirstName string + LastName string + LastPasswordUpdate int64 + LastPictureUpdate int64 + NickName string + NotifyProps StringMap + Props StringMap + Roles string + UpdateAt int64 + UserID string + UserName string + type MattermostChannelInfo struct + ChannelID string + CreateAt int64 + CreatorID string + DeleteAt int64 + DisplayName string + ExtraUpdateAt int64 + Header string + LastPostAt int64 + Name string + Purpose string + TeamID string + TotalMsgCount int64 + Type string + UpdateAt int64 + type MattermostChannelList struct + Channels []MattermostChannelInfo + type MattermostLoginInfo struct + LoginID string + Password string + type MattermostNotifier struct + Channel string + ChannelID string + ClusterName string + Detailed bool + Enabled bool + Initialized bool + NotifName string + Password string + Team string + TeamID string + Text string + Token string + Url string + UserID string + UserName string + func (mattermost *MattermostNotifier) Authenticate() bool + func (mattermost *MattermostNotifier) Copy() Notifier + func (mattermost *MattermostNotifier) GetAllTeams(teams *[]MattermostTeamInfo) bool + func (mattermost *MattermostNotifier) GetChannels(teamID string, channels *[]MattermostChannelInfo) bool + func (mattermost *MattermostNotifier) GetMe(me *MattermostUserInfo) bool + func (mattermost *MattermostNotifier) GetTeam(teamID string, teamInfo *MattermostTeamInfo) bool + func (mattermost *MattermostNotifier) GetURL() string + func (mattermost *MattermostNotifier) GetUser(userID string, userInfo *MattermostUserInfo) bool + func (mattermost *MattermostNotifier) Init() bool + func (mattermost *MattermostNotifier) NotifierName() string + func (mattermost *MattermostNotifier) Notify(messages Messages) bool + func (mattermost *MattermostNotifier) PostMessage(teamID string, channelID string, postInfo *MattermostPostInfo) bool + type MattermostPostInfo struct + ChannelID string + CreateAt int64 + DeleteAt int64 + Filenames StringMap + Hashtags string + Message string + OriginalID string + ParentID string + PendingPostID string + PostID string + Props StringMap + RootID string + Type string + UpdateAt int64 + UserID string + type MattermostTeamInfo struct + AllowOpenInvite bool + AllowedDomains string + CreateAt int64 + DeleteAt int64 + DisplayName string + Email string + InviteID string + Name string + TeamID string + Type string + UpdateAt int64 + type MattermostUserInfo struct + AuthData *string + AuthService string + CreateAt int64 + DeleteAt int64 + Email string + EmailVerified bool + FailedAttempts int + FirstName string + LastName string + LastPasswordUpdate int64 + LastPictureUpdate int64 + MfaActive bool + MfaSecret string + Nickname string + NotifyProps StringMap + Password string + Props StringMap + Roles string + UpdateAt int64 + UserID string + Username string + type MattermostWebhookNotifier struct + Channel string + ClusterName string + Detailed bool + Enabled bool + IconUrl string + Text string + Url string + Username string + func (n *MattermostWebhookNotifier) Copy() Notifier + func (n *MattermostWebhookNotifier) NotifierName() string + func (n *MattermostWebhookNotifier) Notify(messages Messages) bool + type Message struct + Check string + CheckId string + Interval int + Node string + Notes string + NotifList map[string]bool + Output string + RmdCheck time.Time + Service string + ServiceId string + Status string + Timestamp time.Time + VarOverrides Notifiers + func (m Message) IsCritical() bool + func (m Message) IsPassing() bool + func (m Message) IsWarning() bool + type Messages []Message + func (m Messages) Summary() (overallStatus string, pass, warn, fail int) + type Notifier interface + Copy func() Notifier + NotifierName func() string + Notify func(alerts Messages) bool + type Notifiers struct + AwsSns *AwsSnsNotifier + Custom []string + Email *EmailNotifier + HipChat *HipChatNotifier + HttpEndpoint *HttpEndpointNotifier + ILert *ILertNotifier + Influxdb *InfluxdbNotifier + Log *LogNotifier + Mattermost *MattermostNotifier + MattermostWebhook *MattermostWebhookNotifier + OpsGenie *OpsGenieNotifier + PagerDuty *PagerDutyNotifier + Slack *SlackNotifier + VictorOps *VictorOpsNotifier + func (n Notifiers) GetNotifier(name string) (Notifier, bool) + type OpsGenieNotifier struct + ApiKey string + ClusterName string + Enabled bool + func (opsgenie *OpsGenieNotifier) Copy() Notifier + func (opsgenie *OpsGenieNotifier) NotifierName() string + func (opsgenie *OpsGenieNotifier) Notify(messages Messages) bool + type PagerDutyNotifier struct + ClientName string + ClientUrl string + Enabled bool + MaxRetry int + RetryBaseInterval int + ServiceKey string + func (pd *PagerDutyNotifier) Copy() Notifier + func (pd *PagerDutyNotifier) NotifierName() string + func (pd *PagerDutyNotifier) Notify(messages Messages) bool + type SlackNotifier struct + Attachments []attachment + Channel string + ClusterName string + Detailed bool + Enabled bool + IconEmoji string + IconUrl string + Text string + Url string + Username string + func (slack *SlackNotifier) Copy() Notifier + func (slack *SlackNotifier) NotifierName() string + func (slack *SlackNotifier) Notify(messages Messages) bool + type StringMap map[string]string + type TemplateData struct + ClusterName string + FailCount int + Nodes map[string]Messages + PassCount int + SystemStatus string + WarnCount int + func (t TemplateData) IsCritical() bool + func (t TemplateData) IsPassing() bool + func (t TemplateData) IsWarning() bool + type VictorOpsEvent struct + ConsulCheck string + ConsulCheckID string + ConsulNode string + ConsulService string + ConsulServiceID string + EntityDisplayName string + EntityID string + HostName string + MessageType string + MonitorName string + MonitoringTool string + StateMessage string + Timestamp uint32 + type VictorOpsNotifier struct + APIKey string + Enabled bool + RoutingKey string + func (vo *VictorOpsNotifier) Copy() Notifier + func (vo *VictorOpsNotifier) NotifierName() string + func (vo *VictorOpsNotifier) Notify(messages Messages) bool