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 ¶
GetSubscriberMetrics will return the metrics subscribed for the device.
func (*PmMetrics) ToPmConfigs ¶
ToPmConfigs will enable the defined pmmetric
func (*PmMetrics) UpdateFrequency ¶
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
Click to show internal directories.
Click to hide internal directories.