...

Package discord

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

Overview ▾

type Notifier

Notifier implements a Notifier for Discord notifications.

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

func New

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

New returns a new Discord notifier.

func (*Notifier) Notify

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

Notify implements the Notifier interface.