Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name of plugin Name = "mock" // Version of plugin Version = 2 // Type of plugin Type = plugin.CollectorPluginType )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mock ¶
type Mock struct { }
Mock collector implementation used for testing
func (*Mock) CollectMetrics ¶
func (f *Mock) CollectMetrics(mts []plugin.PluginMetricType) ([]plugin.PluginMetricType, error)
CollectMetrics collects metrics for testing
func (*Mock) GetConfigPolicy ¶
func (f *Mock) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)
GetConfigPolicy returns a ConfigPolicy for testing
func (*Mock) GetMetricTypes ¶
func (f *Mock) GetMetricTypes(cfg plugin.PluginConfigType) ([]plugin.PluginMetricType, error)
GetMetricTypes returns metric types for testing
Click to show internal directories.
Click to hide internal directories.