Documentation ¶
Index ¶
- type NetResponse
- func (n *NetResponse) Gather(acc telegraf.Accumulator) error
- func (n *NetResponse) Init() error
- func (*NetResponse) SampleConfig() string
- func (n *NetResponse) TCPGather() (map[string]string, map[string]interface{}, error)
- func (n *NetResponse) UDPGather() (map[string]string, map[string]interface{}, error)
- type ResultType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetResponse ¶
type NetResponse struct { Address string Timeout config.Duration ReadTimeout config.Duration Send string Expect string Protocol string }
NetResponse struct
func (*NetResponse) Gather ¶
func (n *NetResponse) Gather(acc telegraf.Accumulator) error
Gather is called by telegraf when the plugin is executed on its interval. It will call either UDPGather or TCPGather based on the configuration and also fill an Accumulator that is supplied.
func (*NetResponse) Init ¶ added in v1.25.3
func (n *NetResponse) Init() error
Init performs one time setup of the plugin and returns an error if the configuration is invalid.
func (*NetResponse) SampleConfig ¶
func (*NetResponse) SampleConfig() string
type ResultType ¶
type ResultType uint64
const ( Success ResultType = 0 Timeout ResultType = 1 ConnectionFailed ResultType = 2 ReadFailed ResultType = 3 StringMismatch ResultType = 4 )
Click to show internal directories.
Click to hide internal directories.