Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRedirectAttempted = errors.New("redirect")
ErrRedirectAttempted indicates that a redirect occurred
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
type HTTPResponse struct {
Address string
Body string
Method string
ResponseTimeout internal.Duration
Headers map[string]string
FollowRedirects bool
// Path to CA file
SSLCA string `toml:"ssl_ca"`
// Path to host cert file
SSLCert string `toml:"ssl_cert"`
// Path to cert key file
SSLKey string `toml:"ssl_key"`
// Use SSL but skip chain & host verification
InsecureSkipVerify bool
}
HTTPResponse struct
func (*HTTPResponse) Description ¶
func (h *HTTPResponse) Description() string
Description returns the plugin Description
func (*HTTPResponse) Gather ¶
func (h *HTTPResponse) Gather(acc telegraf.Accumulator) error
Gather gets all metric fields and tags and returns any errors it encounters
func (*HTTPResponse) HTTPGather ¶
func (h *HTTPResponse) HTTPGather() (map[string]interface{}, error)
HTTPGather gathers all fields and returns any errors it encounters
func (*HTTPResponse) SampleConfig ¶
func (h *HTTPResponse) SampleConfig() string
SampleConfig returns the plugin SampleConfig
Click to show internal directories.
Click to hide internal directories.