在Azure应用程序洞察中查看/查询自定义事件

时间:2017-10-30 00:55:34

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

我正在使用曲棍球应用程序来分发移动应用程序。

enter image description here

我需要看到他们的附加属性,并且它说我需要链接到azure应用程序洞察。我已经这样做了。在那里,我也看到了我的自定义事件与属性。问题是我不知道如何用他们的有效负载查询我的所有自定义事件。我怎么写脚本?我的一个事件名称叫做#34; VIEW_MEDIA"。

我已经使用此查询命令获取VIEW_MEDIA的报告,但它没有给我他们的属性。

customEvents | where name startswith "VIEW_MEDIA" | summarize count() by name | render piechart 

1 个答案:

答案 0 :(得分:0)

运行summarize count() by name部分时,除了事件名称及其各自的计数外,您基本上都会删除结果中的所有数据。

如果您希望查询按某些属性汇总,则可以运行类似于此的查询:

customEvents 
| where name starswith "VIEW_MEDIA" 
| extend myProperty = tostring(customDimensions.MyProperty) 
| summarize count() by name, myProperty 
| render ...
相关问题