...

Package sns

import "github.com/prometheus/alertmanager/notify/sns"
Overview
Index

Overview ▾

type Notifier

Notifier implements a Notifier for SNS notifications.

type Notifier struct {
    // contains filtered or unexported fields
}

func New

func New(c *config.SNSConfig, t *template.Template, l log.Logger, httpOpts ...commoncfg.HTTPClientOption) (*Notifier, error)

New returns a new SNS notification handler.

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, alert ...*types.Alert) (bool, error)