【问题标题】:Check if a value is not in a list in Application Insights Query Language?检查某个值是否不在 Application Insights 查询语言的列表中?
【发布时间】:2019-01-23 12:38:24
【问题描述】:

是否有更短的方法来检查属性,例如 user_id 是否不在给定列表中:

customEvents 
| where user_Id != 123
    and user_Id != 234
    and user_Id != 345

【问题讨论】:

    标签: azure azure-application-insights ms-app-analytics aiql


    【解决方案1】:

    你可以使用!inoperator,代码如下:

    customEvents 
    | where user_Id !in (123,234,345)
    

    【讨论】:

    • 我确定我昨天尝试了多次,但现在似乎可以正常工作了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-26
    相关资源
    最近更新 更多