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