monitoring

package
v0.0.0-...-53791e0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name     string
	XconName string
}

Device keeps information about a device

type Metrics

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

Metrics monitoring instance type

func CreateMetricsMonitor

func CreateMetricsMonitor(requestPeriod time.Duration) *Metrics

CreateMetricsMonitor creates new metric monitoring instance

func (*Metrics) GetDevices

func (m *Metrics) GetDevices() *RegisteredDevices

GetDevices returns the currently available devices

func (*Metrics) Start

func (m *Metrics) Start(monitor metrics.MetricsMonitor)

Start starts the monitoring

type RegisteredDevices

type RegisteredDevices struct {
	sync.Mutex
	// contains filtered or unexported fields
}

RegisteredDevices keeps track of all devices created by the forwarding plane

func (*RegisteredDevices) UpdateDeviceList

func (m *RegisteredDevices) UpdateDeviceList(devices map[string]Device, connect bool)

UpdateDeviceList keeps track of the devices being handled by the Kernel forwarding plane

Jump to

Keyboard shortcuts

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