opsgenie

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Type represents OpsGenie as notify backend
	Type = "opsgenie"

	// Zone are opsgenie api zones
	ZoneSandbox = "sandbox"
	ZoneDefault = "global"
	ZoneEU      = "eu"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationSender

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

NotificationSender is a notify.NotificationSender implementation capable of sending formatted notifications over OpsGenie (https://www.atlassian.com/software/opsgenie)

func NewOpsGenieNotificationSender

func NewOpsGenieNotificationSender(zone, apikey, timeout string) (*NotificationSender, error)

NewOpsGenieNotificationSender instantiates a NotificationSender

func (*NotificationSender) Send

func (ns *NotificationSender) Send(msg *notify.Message, name string)

Send dispatches a notify.Message to OpsGenie

Jump to

Keyboard shortcuts

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