mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TestData: use new format for random walk example (#34441)
This commit is contained in:
parent
01a3a3c4c8
commit
b02403e3fc
@ -251,5 +251,9 @@ func (hs *HTTPServer) GetTestDataRandomWalk(c *models.ReqContext) response.Respo
|
||||
return response.Error(500, "Metric request error", err)
|
||||
}
|
||||
|
||||
return response.JSON(200, &resp)
|
||||
qdr, err := resp.ToBackendDataResponse()
|
||||
if err != nil {
|
||||
return response.Error(http.StatusInternalServerError, "error converting results", err)
|
||||
}
|
||||
return toMacronResponse(qdr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user