-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Support updating the timerange from query/static/expression #1700
Comments
@shlomiassaf Can you give a specific example of what you need? I think i get what you mean but can you give me a concrete example? Would you want to be able to use something like criteria parameters to be able to if/then/else and have the result be a time range? and/or a time range can be the result of a query? use some kind of language like math.js? the odd thing here is that time ranges are sometimes arbitrary (like "last 15 minutes") that are evaluated as lazily as possible, and other times ae concrete specific start and endpoints. Because of that the oddities of doing proper math correctly with them gets real complicated real fast. internally tracking as |
Hi @gardnerjr Thanks for helping out! We're using application insight to measure the performance of a distributed process. Through correlation we can easily track the start/end period and store it via parameters and then in each query use the params to limit the time range of the queries
It will be better if we can update the TimeRange directly and use it in all queries instead of importing the range in kusto code, for every query we have. While it's annoying it not the problem, the problem is mainly when we want to use metrics. It's a big limitation for us. |
@shlomiassaf, Right but a specific example. how would you update the time range? shifting by a known amount and staying as a relative time? programmatically calculating start and end? you already have 2 numeric values and want to treat them as the start/end of a time range? having a workbook of the form
having a concrete example to work from will guarantee that whatever solution we come up with will actually work for what you are doing instead of possibly working based on our interpretation of what we think you want. |
Yep, got confused there, thanks for clarifying and for the extreme patience.
OR
|
The timerange is currently updatable only through user interaction either directly at the component or through brushing (via global param).
It is not possible to update it by other means, i.e providing from/to or and expression (
ago(1h
).This limitation is big, since almost all metric components are encapsulated and only accept timerange from UI or existing variables.
If I bind the metric to a variable I can't control it from the workbook code, only the user can.
In my scenario, we provide insights for a logical process in our domain, for example user uploading a file which triggers a lot of internal domain logic.
I can identify the start time and end time of this process and I would like to update the various metrics to reflect the data for that exact time frame, but I cant.
I could write queries that use the start/end to extract the metrics manually and display charts, but this is way much work and not everything is available in the workspace, some data requires explicitly adding a diagnostic settings to expose it to the log analytics workspace. Even with that, i need to know where the data is, how to query and display it...
A lot of work for something that already exists through metrics, I just need to be able to update the time range
Clearly this is possible at the JS level, since the UI TimeRange component does that.
We just need some syntax that will allow updating specific properties in the time range from kusto response or through some special component in the UI
The text was updated successfully, but these errors were encountered: