kql

Kusto row_cumsum modifying the Term if Term reaches a point

只愿长相守 提交于 2021-02-08 03:59:01
问题 I have a list of Employee names and Salaries in the following order I need to create the output table in the below format. ie, whenever the accumulated salary-total crosses 3000 I have to detect that and mark that row. I have tried to do row_cumsum and reset the Term once it crossed 3000 but it didn't work for the second iteration. datatable (name:string, month:int, salary:long) [ "Alice", 1, 1000, "Alice", 2, 2000, "Alice", 3, 1400, "Alice", 3, 1400, "Alice", 3, 1400, ] | order by name asc,

How to evaluate Application Insights requests “own” duration, without considering duration of dependencies?

有些话、适合烂在心里 提交于 2021-01-23 06:51:05
问题 I'm trying to produce a Kusto query to measure the "own" duration of the requests (subtracting out durations of dependencies). However, I can't really figure out how to work this out through a pure Kusto query. To better understand what would would expected, below a sample case: High level view (where R is the request and Dx the dependencies) R =============================== (31ms) D1 ******* (7ms) D2 ******** (8ms) D3 ****** (6ms) D4 ** (2ms) D5 **** (4ms) Proj ==*************======******==