Documentation ¶
Index ¶
- type NetResponse
- func (*NetResponse) Description() string
- func (n *NetResponse) Gather(acc cua.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 ¶
This section is empty.
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 cua.Accumulator) error
Gather is called by agent 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.