Documentation ¶
Index ¶
- Variables
- func NewMetricsPlugin(log hclog.Logger) apm.APM
- type APMPlugin
- func (a *APMPlugin) PluginInfo() (*base.PluginInfo, error)
- func (a *APMPlugin) Query(q string, r sdk.TimeRange) (sdk.TimestampedMetrics, error)
- func (a *APMPlugin) QueryMultiple(q string, r sdk.TimeRange) ([]sdk.TimestampedMetrics, error)
- func (a *APMPlugin) SetConfig(config map[string]string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginID = plugins.PluginID{ Name: pluginName, PluginType: sdk.PluginTypeAPM, } PluginConfig = &plugins.InternalPluginConfig{ Factory: func(l hclog.Logger) interface{} { return NewMetricsPlugin(l) }, } )
Functions ¶
func NewMetricsPlugin ¶
NewMetricsPlugin returns the Periods implementation of the strategy.Strategy interface.
Types ¶
type APMPlugin ¶
type APMPlugin struct {
// contains filtered or unexported fields
}
APMPlugin is the implementation of the apm.APM interface.
func (*APMPlugin) PluginInfo ¶
func (a *APMPlugin) PluginInfo() (*base.PluginInfo, error)
PluginInfo satisfies the PluginInfo function on the base.Base interface.
func (*APMPlugin) QueryMultiple ¶
QueryMultiple satisfies the QueryMultiple function on the apm.APM interface
Click to show internal directories.
Click to hide internal directories.