Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultAPIURL = "https://webexapis.com/v1/messages"
)
View Source
const FullValidConfigForTesting = `{
"message" :"test-message",
"room_id" :"test-room-id",
"api_url" :"http://localhost",
"bot_token" :"12345"
}`
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 = `{
"bot_token" :"12345-secret"
}`
FullValidSecretsForTesting is a string representation of JSON object that contains all fields that can be overridden from secrets
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Message string `json:"message,omitempty" yaml:"message,omitempty"` RoomID string `json:"room_id,omitempty" yaml:"room_id,omitempty"` APIURL string `json:"api_url,omitempty" yaml:"api_url,omitempty"` Token string `json:"bot_token" yaml:"bot_token"` }
PLEASE do not touch these settings without taking a look at what we support as part of https://github.com/prometheus/alertmanager/blob/main/notify/webex/webex.go Currently, the Alerting team is unifying channels and (upstream) receivers - any discrepancy is detrimental to that.
func NewConfig ¶
func NewConfig(jsonData json.RawMessage, decryptFn receivers.DecryptFunc) (Config, error)
NewConfig is the constructor for the Webex notifier.
Click to show internal directories.
Click to hide internal directories.