Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient interface {
// Returns the result of an http request
//
// Parameters:
// req: HTTP request object
//
// Returns:
// http.Response: HTTP respons object
// error : Any error that may have occurred
MakeRequest(req *http.Request) (*http.Response, error)
SetHTTPClient(client *http.Client)
HTTPClient() *http.Client
}
type HttpJson ¶
type HttpJson struct {
Name string
Servers []string
Method string
TagKeys []string
ResponseTimeout internal.Duration
Parameters map[string]string
Headers map[string]string
// 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
// contains filtered or unexported fields
}
HttpJson struct
func (*HttpJson) Description ¶
func (*HttpJson) Gather ¶
func (h *HttpJson) Gather(acc telegraf.Accumulator) error
Gathers data for all servers.
func (*HttpJson) SampleConfig ¶
type RealHTTPClient ¶
type RealHTTPClient struct {
// contains filtered or unexported fields
}
func (*RealHTTPClient) HTTPClient ¶
func (c *RealHTTPClient) HTTPClient() *http.Client
func (*RealHTTPClient) MakeRequest ¶
func (*RealHTTPClient) SetHTTPClient ¶
func (c *RealHTTPClient) SetHTTPClient(client *http.Client)
Click to show internal directories.
Click to hide internal directories.