plugin

package
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewDynatracePlugin(l) },
	}
)

Functions

func FallbackFromEnv

func FallbackFromEnv(key string) func() (string, error)

func NewDynatracePlugin

func NewDynatracePlugin(log hclog.Logger) apm.APM

func ValueOrFallback

func ValueOrFallback(value string, fallback func() (string, error)) (string, error)

Types

type APMPlugin

type APMPlugin struct {
	// contains filtered or unexported fields
}

func (*APMPlugin) PluginInfo

func (p *APMPlugin) PluginInfo() (*base.PluginInfo, error)

func (*APMPlugin) Query

func (*APMPlugin) QueryMultiple

func (p *APMPlugin) QueryMultiple(q string, r sdk.TimeRange) ([]sdk.TimestampedMetrics, error)

func (*APMPlugin) SetConfig

func (p *APMPlugin) SetConfig(config map[string]string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL