notifier

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package notifier implements notifications related functionality.

Index

Constants

View Source
const (
	DefaultDashboardURLTemplate = "http://localhost:9313/status?probe=@probe@"
	DefaultSummaryTemplate      = `Cloudprober alert "@alert@" for "@target@"`
	DefaultDetailsTemplate      = `` /* 178-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

func New

func New(alertcfg *configpb.AlertConf, l *logger.Logger) (*Notifier, error)

func (*Notifier) Notify

func (n *Notifier) Notify(ctx context.Context, alertInfo *alertinfo.AlertInfo) error

func (*Notifier) NotifyResolve

func (n *Notifier) NotifyResolve(ctx context.Context, alertInfo *alertinfo.AlertInfo)

Directories

Path Synopsis
Package opsgenie implements Opsgenie notifications for Cloudprober alert events.
Package opsgenie implements Opsgenie notifications for Cloudprober alert events.
Package pagerduty implements pagerduty notifications for Cloudprober alert events.
Package pagerduty implements pagerduty notifications for Cloudprober alert events.
Package slack implements slack notifications for Cloudprober alert events.
Package slack implements slack notifications for Cloudprober alert events.

Jump to

Keyboard shortcuts

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