probers

package
v0.0.0-...-0e5e1e9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigurer

type MockConfigurer struct {
	Valid    bool            `yaml:"valid"`
	ErrMsg   string          `yaml:"errmsg"`
	PName    string          `yaml:"pname"`
	PKind    string          `yaml:"pkind"`
	PTook    config.Duration `yaml:"ptook"`
	PSuccess bool            `yaml:"psuccess"`
}

func (MockConfigurer) Instrument

func (c MockConfigurer) Instrument() map[string]prometheus.Collector

func (MockConfigurer) Kind

func (c MockConfigurer) Kind() string

Kind returns a name that uniquely identifies the `Kind` of `Configurer`.

func (MockConfigurer) MakeProber

func (c MockConfigurer) MakeProber(_ map[string]prometheus.Collector) (probers.Prober, error)

func (MockConfigurer) UnmarshalSettings

func (c MockConfigurer) UnmarshalSettings(settings []byte) (probers.Configurer, error)

type MockProber

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

func (MockProber) Kind

func (p MockProber) Kind() string

func (MockProber) Name

func (p MockProber) Name() string

func (MockProber) Probe

func (p MockProber) Probe(timeout time.Duration) (bool, time.Duration)

Jump to

Keyboard shortcuts

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