metrics

package
v0.0.0-...-5b66776 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricPhysicalLinkStatus         = "physicalLinkStatus"
	MetricLayer1DownstreamMaxBitRate = "layer1DownstreamMaxBitRate"
	MetricLayer1UpstreamMaxBitRate   = "layer1UpstreamMaxBitRate"
	MetricTotalBytesSent             = "totalBytesSent"
	MetricTotalBytesReceived         = "totalBytesReceived"
	MetricTotalPacketsSent           = "totalPacketsSent"
	MetricTotalPacketsReceived       = "totalPacketsReceived"
)

Variables

This section is empty.

Functions

func ConvertPhysicalLinkStatus

func ConvertPhysicalLinkStatus(status fritzbox.PhysicalLinkStatus) float64

ConvertPhysicalLinkStatus converts the physical link status string to a float64 metric value. 1 = Up; 0.5 = Initializing; 0 = Down; -1 = Unavailable;

Types

This section is empty.

Jump to

Keyboard shortcuts

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