Documentation ¶
Index ¶
- Constants
- type NetResponse
- func (*NetResponse) Description() string
- func (n *NetResponse) Gather(acc telegraf.Accumulator) error
- func (*NetResponse) SampleConfig() string
- func (n *NetResponse) TCPGather() (tags map[string]string, fields map[string]interface{})
- func (n *NetResponse) UDPGather() (tags map[string]string, fields map[string]interface{})
- type ResultType
Constants ¶
View Source
const ( Success ResultType = 0 Timeout = 1 ConnectionFailed = 2 ReadFailed = 3 StringMismatch = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetResponse ¶
type NetResponse struct { Address string Timeout internal.Duration ReadTimeout internal.Duration Send string Expect string Protocol string }
NetResponse struct
func (*NetResponse) Description ¶
func (*NetResponse) Description() string
Description will return a short string to explain what the plugin does.
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
SampleConfig will return a complete configuration example with details about each field.
type ResultType ¶
type ResultType uint64
Click to show internal directories.
Click to hide internal directories.