net_response

package
v4.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	*collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type Rule

type Rule struct {
	Address     string `` /* 165-byte string literal not displayed */
	Protocol    string `label:"Protocol"  json:"protocol" description:"Protocol, must be tcp or udp" example:"tcp"`
	Timeout     int    `label:"Timeout" json:"timeout" default:"1" description:"Set timeout"`
	ReadTimeout int    `label:"ReadTimeout" json:"read_timeout" default:"1" description:"Set read timeout (only used if expecting a response)"`
	Send        string `label:"Send" json:"send"  description:"string sent to the server, udp required" example:"hello"`
	Expect      string `label:"Expect" json:"expect"  description:"expected string in answer, udp required" example:"hello"`
}

func (*Rule) TelegrafInput

func (p *Rule) TelegrafInput() (telegraf.Input, error)

func (*Rule) Validate

func (p *Rule) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL