[v9.5.x] Cloudwatch: Pass refId from query for expression queries (#66434)
Co-authored-by: Shirley <4163034+fridgepoet@users.noreply.github.com>
Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
(cherry picked from commit 6309d3fae6)
This commit is contained in:
@@ -65,9 +65,14 @@ var executeSyncLogQuery = func(ctx context.Context, e *cloudWatchExecutor, req *
|
||||
frames = data.Frames{dataframe}
|
||||
}
|
||||
|
||||
respD := resp.Responses["A"]
|
||||
refId := "A"
|
||||
if q.RefID != "" {
|
||||
refId = q.RefID
|
||||
}
|
||||
|
||||
respD := resp.Responses[refId]
|
||||
respD.Frames = frames
|
||||
resp.Responses["A"] = respD
|
||||
resp.Responses[refId] = respD
|
||||
}
|
||||
|
||||
return resp, nil
|
||||
|
||||
Reference in New Issue
Block a user