In the new dashboards, I see that there is a time frame selector in the top right that seems like it should control the time frame for any widget on that dashboard. However, this does not seem to be the case and I cannot find any documentation on how to use what is selected in that global time frame selector in Grail queries or JavaScript code. Can someone point me in the direction of the docs for this? Or, am I mistaken on the usage?
I guess maybe I have a different use case. I think the time frame selector would work for me if I were using a DQL query and not specifying a time frame in the query. However, since the metric data I need has not been migrated to Grail yet, I am using the the classic SDK to get the data, HTTP monitor metric data, using the following:
I would like to be able to dynamically use the time frame selected instead of using the from and to values I have in the sample above. Is there a way to get the selected time frame?
I guess this may be working if I remove the from, to, and resolution params. However, the charts do not seem to adjust to fit the new data based on the time frame selected, so it is not useful. Maybe I am missing something?
Right. See my edited comment above. If I remove those fields, then the selected time frame does appear to be used. But, the charts do not seem to adjust correctly.