-
Notifications
You must be signed in to change notification settings - Fork 489
Description
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