Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name of plugin Name = "dummy1" // Version of plugin Version = 1 // Type of plugin Type = plugin.CollectorPluginType )
Variables ¶
This section is empty.
Functions ¶
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 ConfigPolicyTree for testing
func (*Dummy) GetMetricTypes ¶
func (f *Dummy) GetMetricTypes(cfg plugin.PluginConfigType) ([]plugin.PluginMetricType, error)
GetMetricTypes returns metric types for testing
Click to show internal directories.
Click to hide internal directories.