Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAlertMethod ¶
func NewAlertMethod(config *AlertMethodConfig) (alert.Method, error)
NewAlertMethod creates a new *AlertMethod or a non-nil error if there was an error.
Types ¶
type AlertMethod ¶
type AlertMethod struct {
// contains filtered or unexported fields
}
AlertMethod implements the alert.AlertMethod interface for publishing new alerts to an AWS SNS topic.
type AlertMethodConfig ¶
type AlertMethodConfig struct { Region string `mapstructure:"region"` TopicARN string `mapstructure:"topic_arn"` Template string `mapstructure:"template"` }
AlertMethodConfig configures where AWS SNS alerts will be published and what the published messages should look like.
Click to show internal directories.
Click to hide internal directories.