ping

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-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 Collector

type Collector struct {
	*collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type Rule

type Rule struct {
	Urls         []string `label:"Urls" json:"urls,required" description:"URLs to ping" example:"github.com"`
	PingInterval int      `label:"PingInterval" json:"ping_interval" default:"1" description:"Interval at which to ping (ping -i <INTERVAL>), default 1"`
	Count        int      `label:"Count" json:"count" default:"4" description:"Number of pings to send (ping -c <COUNT>), default 4"`
	Timeout      int      `label:"Timeout" json:"timeout" default:"1" description:"Per-ping timeout, in seconds. (ping -W <TIMEOUT>), default 1.0"`
	Deadline     int      `label:"Deadline" json:"deadline" default:"10" description:"Ping deadline, in seconds. (ping -w <DEADLINE>), default 10"`
	Method       string   `label:"Method" json:"method" description:"Method defines how to ping (native or exec), default native" example:"native"`
	Interface    string   `` /* 143-byte string literal not displayed */
	Binary       string   `label:"Binary" json:"binary" description:"Ping executable binary, default ping" example:"ping"`
	IPv6         bool     `label:"Ipv6" json:"ipv6" description:"Use only IPv6 addresses when resolving a hostname."`
}

func (*Rule) TelegrafInput

func (p *Rule) TelegrafInput() (telegraf.Input, error)

func (*Rule) Validate

func (p *Rule) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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