pcm

package
v0.0.0-...-d7f789c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Types

type PCM

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

PCM

func NewPCMCollector

func NewPCMCollector() *PCM

func (*PCM) CollectMetrics

func (p *PCM) CollectMetrics(mts []plugin.MetricType) ([]plugin.MetricType, error)

// CollectMetrics returns metrics from pcm

func (*PCM) Data

func (p *PCM) Data() map[string]float64

func (*PCM) GetConfigPolicy

func (p *PCM) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy

func (*PCM) GetMetricTypes

func (p *PCM) GetMetricTypes(_ plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns the metric types exposed by pcm

func (*PCM) Keys

func (p *PCM) Keys() []string

Jump to

Keyboard shortcuts

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