http

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpMetricExporter

type HttpMetricExporter struct {
	ProbeId     int
	DstAddr     string
	Uri         string
	ReturnCode  int
	HttpVersion float64
	BodySize    int
	HeaderSize  int
	Method      string
	Rtt         float64
	DnsError    int
	Asn         int
	IpVersion   int
}

HttpMetricExporter exports metrics for HTTP measurement results

func FromResult

func FromResult(r *measurement.Result) *HttpMetricExporter

FromResult creates metric exporter for HTTP measurement result

func (*HttpMetricExporter) Describe

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

Describe exports metric descriptions for Prometheus

func (*HttpMetricExporter) Export

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

Export exports metrics for Prometheus

func (*HttpMetricExporter) IsValid

func (m *HttpMetricExporter) IsValid() bool

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

func (*HttpMetricExporter) SetAsn

func (m *HttpMetricExporter) 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