Backend plugins: Send query type to backend plugins (#24120)

Use v0.60.0 of sdk.

(cherry picked from commit 890e1d8f94)
This commit is contained in:
Marcus Efraimsson
2020-05-07 14:59:21 +02:00
committed by Arve Knudsen
parent e5902b0f22
commit ef72c489de
6 changed files with 10 additions and 3 deletions
+2
View File
@@ -93,6 +93,7 @@ func (tw *TransformWrapper) Transform(ctx context.Context, query *tsdb.TsdbQuery
IntervalMS: q.IntervalMs,
RefId: q.RefId,
MaxDataPoints: q.MaxDataPoints,
QueryType: q.QueryType,
TimeRange: &pluginv2.TimeRange{
ToEpochMS: query.TimeRange.GetToAsMsEpoch(),
FromEpochMS: query.TimeRange.GetFromAsMsEpoch(),
@@ -160,6 +161,7 @@ func (s *transformCallback) QueryData(ctx context.Context, req *pluginv2.QueryDa
RefId: query.RefId,
IntervalMs: query.IntervalMS,
MaxDataPoints: query.MaxDataPoints,
QueryType: query.QueryType,
DataSource: getDsInfo.Result,
Model: sj,
}