2021-03-08 00:02:49 -06:00
|
|
|
package backendplugin
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
2021-05-12 13:05:16 -05:00
|
|
|
Decommission() error
|
|
|
|
IsDecommissioned() bool
|
2021-03-08 00:02:49 -06:00
|
|
|
backend.CollectMetricsHandler
|
|
|
|
backend.CheckHealthHandler
|
2021-06-03 07:16:58 -05:00
|
|
|
backend.QueryDataHandler
|
2021-03-08 00:02:49 -06:00
|
|
|
backend.CallResourceHandler
|
2021-03-23 12:24:08 -05:00
|
|
|
backend.StreamHandler
|
2021-03-08 00:02:49 -06:00
|
|
|
}
|