I have a query that summarizes some data that is in milliseconds:
requests
| summarize avg(duration) by name
When I display this data, I would like to format it so that it shows the amount of time in a smart way:
Examples:
- 1500 would display 1.5 sec
- 300 would display 300 ms
- 120000 would display 2 min
I know that the built in graphs for Application Insights does this in the Performance tab, but I can't find a built in function that does it. Does anyone know if there is a function that does this?