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 ConfigTypeBool + const ConfigTypeInt + const ConfigTypeStrArray + const ConfigTypeStrMap + const ConfigTypeString + type Check struct + CheckID string + Name string + Node string + Notes string + Output string + ServiceID string + ServiceName string + ServiceTags []string + Status string + type ChecksConfig struct + ChangeThreshold int + Enabled bool + type Consul interface + AwsSnsNotifier func() *notifier.AwsSnsNotifier + CheckChangeThreshold func() int + CheckKeyExists func(key string) bool + CheckStatus func(node, statusId, checkId string) (status, output string) + ChecksEnabled func() bool + CustomNotifiers func() map[string]string + DeleteReminder func(node string, checkid string) + EmailNotifier func() *notifier.EmailNotifier + EventHandlers func(eventName string) []string + EventsEnabled func() bool + GetProfileInfo func(node, serviceID, checkID, status string) ProfileInfo + GetReminders func() []notifier.Message + HipChatNotifier func() *notifier.HipChatNotifier + HttpEndpointNotifier func() *notifier.HttpEndpointNotifier + ILertNotifier func() *notifier.ILertNotifier + InfluxdbNotifier func() *notifier.InfluxdbNotifier + IsBlacklisted func(check *Check) bool + LoadConfig func() + LogNotifier func() *notifier.LogNotifier + MattermostNotifier func() *notifier.MattermostNotifier + MattermostWebhookNotifier func() *notifier.MattermostWebhookNotifier + NewAlerts func() []Check + NewAlertsWithFilter func(node string, service string, checkId string, statuses []string, ...) []Check + OpsGenieNotifier func() *notifier.OpsGenieNotifier + PagerDutyNotifier func() *notifier.PagerDutyNotifier + SetReminder func(m notifier.Message) + SlackNotifier func() *notifier.SlackNotifier + UpdateCheckData func() + VictorOpsNotifier func() *notifier.VictorOpsNotifier + type ConsulAlertClient struct + func NewClient(address, dc, aclToken string) (*ConsulAlertClient, error) + func (c *ConsulAlertClient) AwsSnsNotifier() *notifier.AwsSnsNotifier + func (c *ConsulAlertClient) CheckChangeThreshold() int + func (c *ConsulAlertClient) CheckKeyExists(key string) bool + func (c *ConsulAlertClient) CheckKeyMatchesRegexp(regexpKey string, key string) bool + func (c *ConsulAlertClient) CheckStatus(node, serviceId, checkId string) (status, output string) + func (c *ConsulAlertClient) ChecksEnabled() bool + func (c *ConsulAlertClient) CustomNotifiers() (customNotifs map[string]string) + func (c *ConsulAlertClient) DeleteReminder(node string, checkid string) + func (c *ConsulAlertClient) EmailNotifier() *notifier.EmailNotifier + func (c *ConsulAlertClient) EventHandlers(eventName string) []string + func (c *ConsulAlertClient) EventsEnabled() bool + func (c *ConsulAlertClient) GetChangeThreshold(check *Check) int + func (c *ConsulAlertClient) GetProfileInfo(node, serviceID, checkID, status string) ProfileInfo + func (c *ConsulAlertClient) GetReminders() []notifier.Message + func (c *ConsulAlertClient) HipChatNotifier() *notifier.HipChatNotifier + func (c *ConsulAlertClient) HttpEndpointNotifier() *notifier.HttpEndpointNotifier + func (c *ConsulAlertClient) ILertNotifier() *notifier.ILertNotifier + func (c *ConsulAlertClient) InfluxdbNotifier() *notifier.InfluxdbNotifier + func (c *ConsulAlertClient) IsBlacklisted(check *Check) bool + func (c *ConsulAlertClient) LoadConfig() + func (c *ConsulAlertClient) LogNotifier() *notifier.LogNotifier + func (c *ConsulAlertClient) MattermostNotifier() *notifier.MattermostNotifier + func (c *ConsulAlertClient) MattermostWebhookNotifier() *notifier.MattermostWebhookNotifier + func (c *ConsulAlertClient) NewAlerts() []Check + func (c *ConsulAlertClient) NewAlertsWithFilter(nodeName string, serviceName string, checkName string, statuses []string, ...) []Check + func (c *ConsulAlertClient) OpsGenieNotifier() *notifier.OpsGenieNotifier + func (c *ConsulAlertClient) PagerDutyNotifier() *notifier.PagerDutyNotifier + func (c *ConsulAlertClient) SetReminder(m notifier.Message) + func (c *ConsulAlertClient) SlackNotifier() *notifier.SlackNotifier + func (c *ConsulAlertClient) UpdateCheckData() + func (c *ConsulAlertClient) VictorOpsNotifier() *notifier.VictorOpsNotifier + type ConsulAlertConfig struct + Checks *ChecksConfig + Events *EventsConfig + Notifiers *notifier.Notifiers + func DefaultAlertConfig() *ConsulAlertConfig + type Event struct + ID string + LTime uint + Name string + NodeFilter string + Payload []byte + ServiceFilter string + TagFilter string + Version uint + type EventsConfig struct + Enabled bool + Handlers []string + type ProfileInfo struct + Interval int + NotifList map[string]bool + VarOverrides notifier.Notifiers + type Status struct + Current string + CurrentTimestamp time.Time + ForNotification bool + HealthCheck *Check + Pending string + PendingTimestamp time.Time