Documentation
¶
Index ¶
- type HTTPListenerV2
- func (*HTTPListenerV2) Gather(telegraf.Accumulator) error
- func (h *HTTPListenerV2) Init() error
- func (*HTTPListenerV2) SampleConfig() string
- func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *HTTPListenerV2) SetParser(parser telegraf.Parser)
- func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
- func (h *HTTPListenerV2) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPListenerV2 ¶
type HTTPListenerV2 struct { ServiceAddress string `toml:"service_address"` SocketMode string `toml:"socket_mode"` Path string `toml:"path" deprecated:"1.20.0;1.35.0;use 'paths' instead"` Paths []string `toml:"paths"` PathTag bool `toml:"path_tag"` Methods []string `toml:"methods"` HTTPHeaders map[string]string `toml:"http_headers"` DataSource string `toml:"data_source"` ReadTimeout config.Duration `toml:"read_timeout"` WriteTimeout config.Duration `toml:"write_timeout"` MaxBodySize config.Size `toml:"max_body_size"` Port int `toml:"port" deprecated:"1.32.0;1.35.0;use 'service_address' instead"` SuccessCode int `toml:"http_success_code"` BasicUsername string `toml:"basic_username"` BasicPassword string `toml:"basic_password"` HTTPHeaderTags map[string]string `toml:"http_header_tags"` common_tls.ServerConfig Log telegraf.Logger telegraf.Parser // contains filtered or unexported fields }
func (*HTTPListenerV2) Gather ¶
func (*HTTPListenerV2) Gather(telegraf.Accumulator) error
func (*HTTPListenerV2) Init ¶ added in v1.21.0
func (h *HTTPListenerV2) Init() error
func (*HTTPListenerV2) SampleConfig ¶
func (*HTTPListenerV2) SampleConfig() string
func (*HTTPListenerV2) ServeHTTP ¶
func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
ServeHTTP implements http.Handler
func (*HTTPListenerV2) SetParser ¶
func (h *HTTPListenerV2) SetParser(parser telegraf.Parser)
func (*HTTPListenerV2) Start ¶
func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
func (*HTTPListenerV2) Stop ¶
func (h *HTTPListenerV2) Stop()
Click to show internal directories.
Click to hide internal directories.