Files
grafana/pkg/plugins/backendplugin/ifaces.go
T

37 lines
724 B
Go
Raw Normal View History

2021-03-08 07:02:49 +01:00
package backendplugin
import (
"context"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana/pkg/plugins/log"
2021-03-08 07:02:49 +01:00
)
// Plugin is the backend plugin interface.
type Plugin interface {
PluginID() string
Logger() log.Logger
Start(ctx context.Context) error
Stop(ctx context.Context) error
IsManaged() bool
Exited() bool
Decommission() error
IsDecommissioned() bool
Target() Target
2021-03-08 07:02:49 +01:00
backend.CollectMetricsHandler
backend.CheckHealthHandler
backend.QueryDataHandler
2021-03-08 07:02:49 +01:00
backend.CallResourceHandler
2021-03-23 20:24:08 +03:00
backend.StreamHandler
2021-03-08 07:02:49 +01:00
}
type Target string
const (
TargetNone Target = "none"
TargetUnknown Target = "unknown"
TargetInMemory Target = "in_memory"
TargetLocal Target = "local"
)