interfacediagnostics

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector() collector.RPCCollector

NewCollector creates a new collector

Types

type InterfaceDiagnostics

type InterfaceDiagnostics struct {
	Name                string
	LaserBiasCurrent    float64
	LaserOutputPower    float64
	LaserOutputPowerDbm float64
	ModuleTemperature   float64

	LaserRxOpticalPower    float64
	LaserRxOpticalPowerDbm float64

	ModuleVoltage              float64
	RxSignalAvgOpticalPower    float64
	RxSignalAvgOpticalPowerDbm float64
}

type InterfaceDiagnosticsRpc

type InterfaceDiagnosticsRpc struct {
	Information struct {
		Diagnostics []PhyDiagInterface `xml:"physical-interface"`
	} `xml:"interface-information"`
}

type PhyDiagInterface

type PhyDiagInterface struct {
	Name        string `xml:"name"`
	Diagnostics struct {
		LaserBiasCurrent    float64 `xml:"laser-bias-current"`
		LaserOutputPower    float64 `xml:"laser-output-power"`
		LaserOutputPowerDbm string  `xml:"laser-output-power-dbm"`
		ModuleTemperature   struct {
			Value float64 `xml:"celsius,attr"`
		} `xml:"module-temperature"`

		ModuleVoltage              float64 `xml:"module-voltage,omitempty"`
		RxSignalAvgOpticalPower    float64 `xml:"rx-signal-avg-optical-power,omitempty"`
		RxSignalAvgOpticalPowerDbm string  `xml:"rx-signal-avg-optical-power-dbm,omitempty"`

		LaserRxOpticalPower    float64 `xml:"laser-rx-optical-power,omitempty"`
		LaserRxOpticalPowerDbm string  `xml:"laser-rx-optical-power-dbm,omitempty"`

		NA string `xml:"optic-diagnostics-not-available"`
	} `xml:"optics-diagnostics,omitempty"`
}

Jump to

Keyboard shortcuts

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