dns

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSPlugin

type DNSPlugin struct {
	config.InternalConfig
	Instances []*Instance `toml:"instances"`
}

func (*DNSPlugin) GetInstances

func (p *DNSPlugin) GetInstances() []plugins.Instance

type Instance

type Instance struct {
	config.InternalConfig

	Targets      []string          `toml:"targets"`
	Servers      []string          `toml:"servers"`
	ExpectedIPs  []string          `toml:"expected_ips"`
	Timeout      config.Duration   `toml:"timeout"`
	Concurrency  int               `toml:"concurrency"`
	Resolution   ResolutionCheck   `toml:"resolution"`
	ResponseTime ResponseTimeCheck `toml:"response_time"`
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type ResolutionCheck

type ResolutionCheck struct {
	Severity string `toml:"severity"`
}

type ResponseTimeCheck

type ResponseTimeCheck struct {
	WarnGe     config.Duration `toml:"warn_ge"`
	CriticalGe config.Duration `toml:"critical_ge"`
}

Jump to

Keyboard shortcuts

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