Documentation ¶
Index ¶
- func Alert(alertType string, alertName string, alertMessage string, ...)
- func AlertPagerDuty(alertdata types.PDAlerterConfig, message string)
- func AlertSMTP(alertdata types.SMTPAlerterConfig, message string)
- func AlertSlack(alertData types.SlackAlerterConfig, message string)
- func AlertStderr(message string)
- func AlertWebhook(alertdata types.WebhookAlerterConfig, message string)
- func PagerDutyInput(a types.PDAlerterConfig, m string) (pagerduty.Event, *http.Client)
- func PagerDutyTrigger(e pagerduty.Event, c *http.Client) string
- func SlackInput(message string) *slack.WebhookMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alert ¶
func Alert( alertType string, alertName string, alertMessage string, config types.AlertersConfig, )
Alert function takes alertType, alertName and alertMessage as inputs, and triggers the correct alert type
func AlertPagerDuty ¶
func AlertPagerDuty(alertdata types.PDAlerterConfig, message string)
AlertPagerDuty triggers Pager Duty alerts via the v2API using data relayed from alerts.go
func AlertSMTP ¶
func AlertSMTP(alertdata types.SMTPAlerterConfig, message string)
AlertSMTP send SMTP messages using inputs forwarded from alert.go
func AlertSlack ¶
func AlertSlack(alertData types.SlackAlerterConfig, message string)
AlertSlack sends an alert to slack
func AlertStderr ¶
func AlertStderr(message string)
AlertStderr sends messages to stderr forwarded from alert.go
func AlertWebhook ¶
func AlertWebhook(alertdata types.WebhookAlerterConfig, message string)
AlertWebhook sends a general http(s) payload using data relayed from alerts.go
func PagerDutyInput ¶
PagerDutyInput generates the formatted alert inputs for triggering a pagerduty alert
func PagerDutyTrigger ¶
PagerDutyTrigger triggers a pagerduty alert
func SlackInput ¶
func SlackInput(message string) *slack.WebhookMessage
SlackInput formats an alert for Slack
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.