dns_query

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: 5 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 {
	Servers    []string `label:"Servers" json:"servers,required" description:"List of DNS" example:"223.5.5.5"`
	Network    string   `label:"Network"  json:"network" description:"Protocol, must be tcp or udp" example:"udp"`
	Domains    []string `label:"Domains" json:"domains,required" description:"List of Domains", example:"www.baidu.com"`
	RecordType string   `` /* 164-byte string literal not displayed */
	Port       int      `label:"Port" json:"port" default:"53" description:"Port"`
	Timeout    int      `label:"Timeout" json:"timeout" default:"10" description:"Set timeout"`
}

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