Documentation ¶
Index ¶
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) 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.