Azure Application Insights - 按多个维度拆分自定义事件

问题描述 投票:0回答:1

我是 Azure 应用程序见解的新手。

我有一个捕获用户和操作的自定义事件。

是否可以将其可视化,以便我可以看到它按天分组,图表中为每个用户提供一个条形,然后按操作进行分割?

azure-application-insights
1个回答
0
投票

要跟踪自定义事件,请导航到应用服务的 Azure 应用程序见解中的

Usage=>Events

  • Any CustomEvent
    部分选择
    Who used
  • 您可以根据您的要求选择其他选项,如
    Day, Split
    等。

enter image description here

您还可以使用 KQL 查询来跟踪自定义事件

Application Insights=>Logs
:

customEvents
| where name == "<customEventName>"
| summarize count() by bin(timestamp, 1d), tostring(customDimensions.user) , tostring(customDimensions.action)

您可以在图表部分看到结果。

enter image description here

参考资料:

  1. 请参阅Application Insights - Azure Monitor,了解有关如何分析 Azure Application Insights 中的自定义事件的更多详细信息。
  2. 用于自定义事件和指标的Application Insights API
© www.soinside.com 2019 - 2024. All rights reserved.