按最大值排列的 KQL 过滤器系列

大车

我想制作一个时间表,但我的图表中充斥着没有重要价值的系列:在此处输入图像描述是否可以通过以下方式过滤系列:

  1. 只取一定数量的最大值
  2. 丢弃最大值 < const 的所有系列

我的要求是

let Step = timespan(1d);
let PeriodStart = ago(30d);
cluster("").database("").table("")
    | where Timestamp > PeriodStart
    | where Source == "courierapp" and isnotempty(CourierId)
    | summarize by CourierId, bin(Timestamp, Step), AppVersion
    | make-series Version=count() default=0 on Timestamp from PeriodStart to ago(0d) step Step by AppVersion
    | render timechart 
大卫杜杜马尔科维茨

一种可能的解决方案是基于series_stats()

let threshold = 1000;
...  
| make-series Version=count() default=0 on Timestamp from PeriodStart to ago(0d) step Step by AppVersion
| extend series_stats(Version)
| where series_stats_Version_max >= threshold
| render timechart 

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章