Documentation
¶
Index ¶
- type NetResponse
- func (*NetResponse) Description() string
- func (n *NetResponse) Gather(acc telegraf.Accumulator) 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) 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
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.