client

package
v0.0.0-...-65648ec Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CableModemClient

type CableModemClient struct {
	// contains filtered or unexported fields
}

func NewCableModemClient

func NewCableModemClient(connectionString string, timeout time.Duration) *CableModemClient

func (*CableModemClient) Collect

func (c *CableModemClient) Collect(ch chan<- prometheus.Metric)

func (*CableModemClient) Describe

func (c *CableModemClient) Describe(ch chan<- *prometheus.Desc)

func (*CableModemClient) GetModemStatus

func (c *CableModemClient) GetModemStatus() (ModemStatus, error)

type DownStatus

type DownStatus struct {
	Id     string
	Lock   string
	Mod    string
	Freq   int
	Power  float64
	Snr    float64
	Corr   int
	Uncorr int
}

func (*DownStatus) Collect

func (ds *DownStatus) Collect(ch chan<- prometheus.Metric)

type ModemStatus

type ModemStatus struct {
	Startup StartupStatus
	Ds      []DownStatus
	Us      []UpStatus
}

type StartupStatus

type StartupStatus struct {
	Acquire       string
	ConnState     string
	BootState     string
	DownFreq      int
	ConfigFile    string
	SecurityState string
	SecurityType  string
	DocsisAccess  string
}

func (*StartupStatus) Collect

func (s *StartupStatus) Collect(ch chan<- prometheus.Metric)

type StatComm

type StatComm struct {
	// contains filtered or unexported fields
}

Status Comment

type UpStatus

type UpStatus struct {
	Num    string
	Id     string
	Lock   string
	ChType string
	Width  int
	Freq   int
	Power  float64
}

func (*UpStatus) Collect

func (us *UpStatus) Collect(ch chan<- prometheus.Metric)

Jump to

Keyboard shortcuts

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