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" )
Click to show internal directories.
Click to hide internal directories.