mirror of
https://github.com/grafana/grafana.git
synced 2026-08-13 06:34:55 -05:00
Cloud monitoring: do not create deep link if there are no timeseries (#26737)
This commit is contained in:
@@ -221,7 +221,11 @@ func (e *CloudMonitoringExecutor) executeTimeSeriesQuery(ctx context.Context, ts
|
||||
break
|
||||
}
|
||||
query.Params.Set("resourceType", resourceType)
|
||||
queryRes.Meta.Set("deepLink", query.buildDeepLink())
|
||||
dl := ""
|
||||
if len(resp.TimeSeries) > 0 {
|
||||
dl = query.buildDeepLink()
|
||||
}
|
||||
queryRes.Meta.Set("deepLink", dl)
|
||||
}
|
||||
|
||||
return result, nil
|
||||
|
||||
Reference in New Issue
Block a user