...

Package opsgenie

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

Overview ▾

type Notifier

Notifier implements a Notifier for OpsGenie notifications.

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

func New

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

New returns a new OpsGenie notifier.

func (*Notifier) Notify

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

Notify implements the Notifier interface.