Documentation ¶
Index ¶
- Constants
- type Config
- type HandlerConfig
- type Service
- func (s *Service) Alert(message, device, title, URL, URLTitle, sound string, level alert.Level) error
- func (s *Service) Close() error
- func (s *Service) Handler(c HandlerConfig, l *log.Logger) alert.Handler
- func (s *Service) Open() error
- func (s *Service) Test(options interface{}) error
- func (s *Service) TestOptions() interface{}
- func (s *Service) Update(newConfig []interface{}) error
Constants ¶
View Source
const (
DefaultPushoverURL = "https://api.pushover.net/1/messages.json"
)
DefaultPushoverURL is the default URL for the Pushover API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Whether Pushover integration is enabled. Enabled bool `toml:"enabled" override:"enabled"` // The Pushover API token. Token string `toml:"token" override:"token,redact"` // The User/Group that will be alerted. UserKey string `toml:"user-key" override:"user-key,redact"` // The URL for the Pushover API. // Default: DefaultPushoverAPI URL string `toml:"url" override:"url"` }
Config is the pushover configuration as defined in the Kapacitor configuration file.
type HandlerConfig ¶
type HandlerConfig struct { // rather than all of a user's devices (multiple device names may // be separated by a comma) Device string `mapstructure:"device"` // Your message's title, otherwise your apps name is used Title string `mapstructure:"title"` // A supplementary URL to show with your message URL string `mapstructure:"url"` // A title for your supplementary URL, otherwise just URL is shown URLTitle string `mapstructure:"url-title"` // The name of one of the sounds supported by the device clients to override // the user's default sound choice Sound string `mapstructure:"sound"` }
Click to show internal directories.
Click to hide internal directories.