Documentation ¶
Index ¶
Constants ¶
View Source
const ( SendTags = "tags" SendDetails = "details" SendBoth = "both" DefaultAlertsURL = "https://api.opsgenie.com/v2/alerts" )
View Source
const FullValidConfigForTesting = `` /* 416-byte string literal not displayed */
FullValidConfigForTesting is a string representation of a JSON object that contains all fields supported by the notifier Config. It can be used without secrets.
View Source
const FullValidSecretsForTesting = `{
"apiKey": "test-secret-api-key"
}`
FullValidSecretsForTesting is a string representation of JSON object that contains all fields that can be overridden from secrets
Variables ¶
View Source
var SupportedResponderTypes = []string{"team", "teams", "user", "escalation", "schedule"}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { APIKey string APIUrl string Message string Description string AutoClose bool OverridePriority bool SendTagsAs string Responders []MessageResponder }
func NewConfig ¶
func NewConfig(jsonData json.RawMessage, decryptFn receivers.DecryptFunc) (Config, error)
type MessageResponder ¶
Click to show internal directories.
Click to hide internal directories.