Documentation ¶
Index ¶
- type BasicAuth
- type Config
- type Configs
- type Endpoint
- type HandlerConfig
- type Service
- func (s *Service) Close() error
- func (s *Service) Endpoint(name string) (*Endpoint, bool)
- 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(newConfigs []interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Endpoint string `toml:"endpoint" override:"endpoint"` URL string `toml:"url" override:"url"` Headers map[string]string `toml:"headers" override:"headers"` BasicAuth BasicAuth `toml:"basic-auth" override:"basic-auth,redact"` }
Config is the configuration for a single [httppost] section of the kapacitor configuration file.
type Configs ¶
type Configs []Config
Configs is the configuration for all [[alertpost]] sections of the kapacitor configuration file.
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
Only one of name and url should be non-empty
func NewEndpoint ¶
func (*Endpoint) NewHTTPRequest ¶
type HandlerConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) TestOptions ¶
func (s *Service) TestOptions() interface{}
Click to show internal directories.
Click to hide internal directories.