Documentation ¶
Index ¶
Constants ¶
View Source
const FullValidConfigForTesting = `` /* 281-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 = `{
"userKey": "test-secret-user-key",
"apiToken": "test-secret-api-token"
}`
FullValidSecretsForTesting is a string representation of JSON object that contains all fields that can be overridden from secrets
Variables ¶
View Source
var (
// APIURL of where the notification payload is sent. It is public to be overridable in integration tests.
APIURL = "https://api.pushover.net/1/messages.json"
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { UserKey string APIToken string AlertingPriority int64 OkPriority int64 Retry int64 Expire int64 Device string AlertingSound string OkSound string Upload bool Title string Message string }
func NewConfig ¶
func NewConfig(jsonData json.RawMessage, decryptFn receivers.DecryptFunc) (Config, error)
type Notifier ¶
Notifier is responsible for sending alert notifications to Pushover
func New ¶
func New(cfg Config, meta receivers.Metadata, template *templates.Template, sender receivers.WebhookSender, images images.Provider, logger logging.Logger) *Notifier
New is the constructor for the pushover notifier
func (*Notifier) SendResolved ¶
Click to show internal directories.
Click to hide internal directories.