[v9.3.x] Azure Monitor Logs: Avoid warning when the response is empty (#59231)

Azure Monitor Logs: Avoid warning when the response is empty (#59211)

(cherry picked from commit 9d88e14f01)

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2022-11-23 10:31:54 -05:00
committed by GitHub
co-authored by Andres Martinez Gotor
parent f5d7e0ed92
commit c4756c394b
2 changed files with 13 additions and 0 deletions
@@ -315,6 +315,10 @@ type LogAnalyticsMeta struct {
}
func setAdditionalFrameMeta(frame *data.Frame, query, subscriptionID, workspace string) error {
if frame.Meta == nil || frame.Meta.Custom == nil {
// empty response
return nil
}
frame.Meta.ExecutedQueryString = query
la, ok := frame.Meta.Custom.(*LogAnalyticsMeta)
if !ok {