azure - 从 CustomEvent 过滤数据

标签 azure azure-application-insights

我在 azure Insights 中以自定义事件格式保存了数据。 现在,我需要在我的网站中创建一个仪表板页面,该页面将从见解中提取数据并显示该数据的图表。 问题是我如何根据自定义事件中保存的数据过滤数据。例如基于自定义事件或自定义数据。

请向我提供任何可以让我了解 $filer、$search、$query 如何工作的资源吗? 我在这里https://dev.applicationinsights.io/quickstart但看起来还不够。

我尝试添加过滤器,例如 startswith(customEvent/name, 'BotMessageReceived')https://dev.applicationinsights.io/apiexplorer/events 但它不起作用。是说“运行查询时出现问题”, 我有自定义事件,其名称以 BotMessageReceived 开头

谢谢 达尔维尔

最佳答案

更新: 没有 like 运算符,如果您想使用时间戳作为过滤器,您应该使用以下三种方法之一:

    customEvents 
    | where timestamp >= datetime('2018-11-23T00:00:00.000') and timestamp <= 
datetime('2018-11-23T23:59:00.000')


    customEvents
    | where tostring(timestamp) contains "2018-12-11"


    customEvents
    | where timestamp between(datetime('2018-11-23T00:00:00.000') .. 
datetime('2018-11-23T23:59:00.000') ) 
<小时/>

请使用这个:

customEvents
| where name startswith "BotMessageReceived"

如果你使用上面提到的 api,你可以使用:

    https://api.applicationinsights.io/v1/apps/Your_application_id/query?
query=customEvents | where name startswith "BotMessageReceived"

它在我身边工作。

关于azure - 从 CustomEvent 过滤数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53755613/

相关文章:

azure - 使用图形 API 在 Azure AD 中注册应用程序

azure-application-insights - MS Application Insights 使用什么客户端代码来设置应用程序版本

Azure App Insights 从 url 获取字符串的一部分并将其显示在名称列中

azure - 返回电子邮件地址 - 自定义策略 Azure B2C AD(企业帐户)

使用无服务器创建的 Azure 队列触发器函数不会触发

azure - 是否可以在 Azure 容器应用程序中创建一次性(运行至完成)作业?

Azure 通知中心 : 'Test Send' was successfully sent,,但没有任何 GCM 流量。为什么?

asp.net - Application Insight 中的 MVC 异常隐藏堆栈跟踪

azure - 在 Application Insights 中捕获 Java 应用程序的方法名称和行号

azure-application-insights - Application Insights 中的城市数据