amrko
January 10, 2018, 9:18am
1
Hi,
I’m creating new snapshot using http api, but when opening snapshot in browser there is no timepicker in header line.
Next I created dashboard via HTTP api using same dasboard json what was used in snapshot creation. Timepicker was shown. After that I took snapshot via UI, and the timepicker remains.
I am using version 4.2 of Grafana.
Question is how can I make heading row timepicker visible when creating snapshot via HTTP api?
tnx Marko
Hi, is there any response to this? I think the actual version that Marko used is 4.4.1. This is somewhat surprising as I’m fairly sure we had it working with previous versions…
Panu
amrko
January 18, 2018, 11:01am
3
looks like this is same behaviour what is described here:
opened 03:15PM - 21 Jul 17 UTC
closed 07:44PM - 21 Jul 17 UTC
Hello,
I have an issue with the snapshot navbar. I create the snapshot with t… he HTTP API and use the url from the response into an iframe.
Here's a screenshot from the code where the error message comes from :
![capture d ecran 2017-07-21 a 17 09 13](https://user-images.githubusercontent.com/18116816/28469691-5d4a79be-6e37-11e7-9d25-e0f3ec04f9de.png)
https://github.com/grafana/grafana/blob/e7e675e4715ba80b4d72d8022a3fc72bf4b94631/public/app/core/nav_model_srv.ts
It works fine in local : showing what I putted into the json to generate the snapshot (dashboard - title).
{{ctrl.dashboard.title}} is what is get (cf screenshot)
GRAFANA VERSION : 4.3.2
![capture d ecran 2017-07-21 a 16 50 25](https://user-images.githubusercontent.com/18116816/28468913-c62458a4-6e34-11e7-9cfe-a615b5aef7d7.png)
![capture d ecran 2017-07-21 a 16 50 39](https://user-images.githubusercontent.com/18116816/28468912-c62413ee-6e34-11e7-8301-c822d4dda46a.png)
It was ‘fixed’ by adding
“snapshot”:{
“originalUrl”:“some uri”
}
block inside dashbord block.
This is little bit confusing, since I cannot find any reference to dashboard.snapshot structure in Grafna Http Api documentation (http://docs.grafana.org/v4.5/http_api/snapshot/ )
Marko
adonis
March 28, 2019, 8:06am
4
Hi, how what did you do to be able to take snapshot using api ?