opsgenie

package
v0.20.16 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func With

func With(apiURL string, apiKey string, opts ...Option) alertmanager.ContactPointOption

With creates an Opsgenie contact point type with the given settings.

Types

type Option

type Option func(contactType *opsgenieType)

Option represents an option that can be used to configure an "opsgenie" contact point type.

func AutoClose

func AutoClose() Option

AutoClose automatically closes an alert in Opsgenie once it goes back to OK in Grafana.

func OverridePriority

func OverridePriority() Option

OverridePriority allows the alert priority to be set in Opsgenie based on the content of the `og_priority` annotation.

func SentTagsAs

func SentTagsAs(mode TagForwardMode) Option

SentTagsAs defines how alert tags should be forwarded to Opsgenie.

type TagForwardMode

type TagForwardMode string

TagForwardMode describes how alert tags should be forwarded to Opsgenie.

const (
	Tags                   TagForwardMode = "tags"
	ExtraProperties        TagForwardMode = "details"
	TagsAndExtraProperties TagForwardMode = "both"
)

Jump to

Keyboard shortcuts

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