ping

package
v0.0.0-...-ffd7706 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2017 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingMetricExporter

type PingMetricExporter struct {
	ProbeId   int
	DstAddr   string
	DstName   string
	Min       float64
	Max       float64
	Avg       float64
	Sent      int
	Rcvd      int
	Dup       int
	Ttl       int
	Size      int
	Asn       int
	IpVersion int
}

PingMetricExporter exports metrics for PING measurement results

func FromResult

func FromResult(r *measurement.Result) *PingMetricExporter

FromResult creates metric exporter for PING measurement result

func (*PingMetricExporter) Describe

func (m *PingMetricExporter) Describe(ch chan<- *prometheus.Desc)

Describe exports metric descriptions for Prometheus

func (*PingMetricExporter) Export

func (m *PingMetricExporter) Export(ch chan<- prometheus.Metric, pk string)

Export exports metrics for Prometheus

func (*PingMetricExporter) IsValid

func (m *PingMetricExporter) IsValid() bool

IsValid returns whether an result is valid or not (e.g. IPv6 measurement and Probe does not support IPv6)

func (*PingMetricExporter) SetAsn

func (m *PingMetricExporter) SetAsn(asn int)

SetAsn sets AS number for measurement result

Jump to

Keyboard shortcuts

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