dummy

package
v0.8.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of plugin
	Name = "dummy2"
	// Version of plugin
	Version = 2
	// Type of plugin
	Type = plugin.CollectorPluginType
)

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Meta returns meta data for testing

Types

type Dummy

type Dummy struct {
}

Dummy collector implementation used for testing

func (*Dummy) CollectMetrics

func (f *Dummy) CollectMetrics(mts []plugin.PluginMetricType) ([]plugin.PluginMetricType, error)

CollectMetrics collects metrics for testing

func (*Dummy) GetConfigPolicy

func (f *Dummy) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns a ConfigPolicy for testing

func (*Dummy) GetMetricTypes

func (f *Dummy) GetMetricTypes(cfg plugin.PluginConfigType) ([]plugin.PluginMetricType, error)

GetMetricTypes returns metric types for testing

Jump to

Keyboard shortcuts

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