Plugins: Update client to use SDK resource contract (#42888)

* client uses sdk resource handler

* apply pr feedback
This commit is contained in:
Will Browne
2021-12-14 10:15:49 +00:00
committed by GitHub
parent daaab0d88c
commit 6c4555265a
5 changed files with 299 additions and 303 deletions

View File

@@ -55,9 +55,8 @@ type Client interface {
backend.QueryDataHandler
backend.CheckHealthHandler
backend.StreamHandler
backend.CallResourceHandler
// CallResource calls a plugin resource.
CallResource(pCtx backend.PluginContext, ctx *models.ReqContext, path string)
// CollectMetrics collects metrics from a plugin.
CollectMetrics(ctx context.Context, pluginID string) (*backend.CollectMetricsResult, error)
}