alerters

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func PagerDutyInput(a types.PDAlerterConfig, m string) (pagerduty.Event, *http.Client)

PagerDutyInput generates the formatted alert inputs for triggering a pagerduty alert

func PagerDutyTrigger

func PagerDutyTrigger(e pagerduty.Event, c *http.Client) string

PagerDutyTrigger triggers a pagerduty alert

func SlackInput

func SlackInput(message string) *slack.WebhookMessage

SlackInput formats an alert for Slack

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL