pmmetrics

package
v7.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PmMetrics

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

PmMetrics structure holds metric and device info

func NewPmMetrics

func NewPmMetrics(deviceID string, opts ...PmMetricsOption) *PmMetrics

NewPmMetrics will return the pmmetric object

func (*PmMetrics) GetSubscriberMetrics

func (pm *PmMetrics) GetSubscriberMetrics() map[string]*voltha.PmConfig

GetSubscriberMetrics will return the metrics subscribed for the device.

func (*PmMetrics) ToPmConfigs

func (pm *PmMetrics) ToPmConfigs() *voltha.PmConfigs

ToPmConfigs will enable the defined pmmetric

func (*PmMetrics) UpdateFrequency

func (pm *PmMetrics) UpdateFrequency(frequency uint32)

UpdateFrequency will update the frequency.

type PmMetricsOption

type PmMetricsOption func(*PmMetrics)

func Frequency

func Frequency(frequency uint32) PmMetricsOption

Frequency is to poll stats at this interval

func FrequencyOverride

func FrequencyOverride(frequencyOverride bool) PmMetricsOption

func Grouped

func Grouped(grouped bool) PmMetricsOption

func Metrics

func Metrics(pmNames []string) PmMetricsOption

Metrics will store the PMMetric params

Jump to

Keyboard shortcuts

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