Cloud monitoring: Add query parameter (#26354)

This commit is contained in:
Sofia Papagiannaki
2020-07-15 19:31:17 +03:00
committed by GitHub
parent 42dfdabdba
commit 9d8ae39108
2 changed files with 4 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ func (query *cloudMonitoringQuery) buildDeepLink() string {
q := u.Query()
q.Set("project", query.ProjectName)
q.Set("Grafana_deeplink", "true")
pageState := map[string]interface{}{
"xyChart": map[string]interface{}{

View File

@@ -1016,6 +1016,9 @@ func verifyDeepLink(dl string, expectedTimeSelection map[string]string, expected
params, err = url.ParseQuery(u.RawQuery)
So(err, ShouldBeNil)
deepLinkParam := params.Get("Grafana_deeplink")
So(deepLinkParam, ShouldNotBeEmpty)
pageStateStr := params.Get("pageState")
So(pageStateStr, ShouldNotBeEmpty)