Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name of plugin Name = "mock" // Version of plugin Version = 1 // 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.MetricType) ([]plugin.MetricType, error)
CollectMetrics collects metrics for testing
func (*Mock) GetConfigPolicy ¶
func (f *Mock) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)
GetConfigPolicy returns a ConfigPolicyTree for testing
func (*Mock) GetMetricTypes ¶
func (f *Mock) GetMetricTypes(cfg plugin.ConfigType) ([]plugin.MetricType, error)
GetMetricTypes returns metric types for testing
Click to show internal directories.
Click to hide internal directories.