collector

package
v0.0.0-...-f2512de 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Meta returns meta data for plugin

Types

type Collector

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

Collector neutron plugin struct

func New

func New() *Collector

New creates initialized instance of Glance collector

func (*Collector) CollectMetrics

func (c *Collector) CollectMetrics(metricTypes []plugin.MetricType) ([]plugin.MetricType, error)

CollectMetrics returns list of requested metric values It returns error in case retrieval was not successful

func (*Collector) GetConfigPolicy

func (c *Collector) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns config policy It returns error in case retrieval was not successful

func (*Collector) GetMetricTypes

func (c *Collector) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)

GetMetricTypes returns list of available metric types It returns error in case retrieval was not successful

Jump to

Keyboard shortcuts

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