icmp

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module added in v0.7.0

type Module struct {
	Prober            string
	Timeout           time.Duration
	PacketCount       int64
	ReqSuccessCount   int64
	MaxResolveRetries int64
	ICMP              config.ICMPProbe
	Privileged        bool
}

type Prober

type Prober struct {
	// contains filtered or unexported fields
}

func NewProber

func NewProber(check model.Check) (Prober, error)

func (Prober) Name

func (p Prober) Name() string

func (Prober) Probe

func (p Prober) Probe(ctx context.Context, target string, registry *prometheus.Registry, logger logger.Logger) (bool, float64)

Jump to

Keyboard shortcuts

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