ping

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectivityCheck

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

type Instance

type Instance struct {
	config.InternalConfig
	Partial string `toml:"partial"`

	Targets      []string          `toml:"targets"`
	Concurrency  int               `toml:"concurrency"`
	Count        int               `toml:"count"`
	PingInterval config.Duration   `toml:"ping_interval"`
	Timeout      config.Duration   `toml:"timeout"`
	Interface    string            `toml:"interface"`
	IPv6         *bool             `toml:"ipv6"`
	Size         *int              `toml:"size"`
	Connectivity ConnectivityCheck `toml:"connectivity"`
	PacketLoss   PacketLossCheck   `toml:"packet_loss"`
	Rtt          RttCheck          `toml:"rtt"`
	// 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 PacketLossCheck

type PacketLossCheck struct {
	WarnGe     float64 `toml:"warn_ge"`
	CriticalGe float64 `toml:"critical_ge"`
}

type Partial

type Partial struct {
	ID           string            `toml:"id"`
	Concurrency  int               `toml:"concurrency"`
	Count        int               `toml:"count"`
	PingInterval config.Duration   `toml:"ping_interval"`
	Timeout      config.Duration   `toml:"timeout"`
	Interface    string            `toml:"interface"`
	IPv6         *bool             `toml:"ipv6"`
	Size         *int              `toml:"size"`
	Connectivity ConnectivityCheck `toml:"connectivity"`
	PacketLoss   PacketLossCheck   `toml:"packet_loss"`
	Rtt          RttCheck          `toml:"rtt"`
}

type PingPlugin

type PingPlugin struct {
	config.InternalConfig
	Partials  []Partial   `toml:"partials"`
	Instances []*Instance `toml:"instances"`
}

func (*PingPlugin) ApplyPartials

func (p *PingPlugin) ApplyPartials() error

func (*PingPlugin) GetInstances

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

type RttCheck

type RttCheck 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