问题描述
我是Microsoft Azure Application Insights的新手,并且在获取用户信息(登录ID,用户登录到应用程序的次数等)方面需要一些帮助.我经历了另一个类似的堆栈溢出文章 在App Insights中获取用户信息 ,但这并没有帮助我.
I am new to Microsoft Azure Application Insights and need some help on getting user information (Login ID, number of times user logged into application, etc). I went through another similar stack overflow post Getting User Information in App Insights , but it did not helped me.
我已经设置了Application Insights,并获得了Azure本身提供的默认数据.
I have already setup Application Insights and getting the default data presented by Azure itself.
在同一方面请求您的帮助.
Request your help on the same.
先谢谢了.
推荐答案
对于诸如用户登录到应用程序的次数"之类的事情可能很简单
for something like "number times user logged into application" could be as simple as
union customEvents, pageViews
| where timestamp > ago(14d)
| summarize numSessions = dcount(session_Id) by user_Id
| top 100 by numSessions
(或用英语,过去14天中,根据事件和页面浏览量中的会话数向我显示前100名用户")
(or in english, "in the last 14 days, show me top 100 users by how many sessions they have in events and page views")
根据要发送的遥测数据,您可以调整要使用的表,所需的日期/时间范围,是否要按名称显示特定事件或页面,等等.
depending on what telemetry you're sending, you'd adjust what tables you are using, what date/time ranges you want, if you want specific events or pages by names, etc.
或者,您可以使用门户中的用法"功能,该功能可以向您显示此类信息.
or, you could use the Usage features in the portal, which can show you this kind of information.
这篇关于使用Application Insights的用户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!