netif

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeltaCheck

type DeltaCheck struct {
	WarnGe     float64 `toml:"warn_ge"`
	CriticalGe float64 `toml:"critical_ge"`
	TitleRule  string  `toml:"title_rule"`
}

type Instance

type Instance struct {
	config.InternalConfig

	Include []string `toml:"include"`
	Exclude []string `toml:"exclude"`

	Errors DeltaCheck `toml:"errors"`
	Drops  DeltaCheck `toml:"drops"`
	LinkUp []LinkSpec `toml:"link_up"`
	// 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 LinkSpec

type LinkSpec struct {
	Interface string `toml:"interface"`
	Severity  string `toml:"severity"`
	TitleRule string `toml:"title_rule"`
}

type NetifPlugin

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

func (*NetifPlugin) GetInstances

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

Jump to

Keyboard shortcuts

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