如何查看聊天机器人用户在Azure门户的AppInsights中的数量 [英] How to see the chatbot users count in AppInsights in Azure portal

查看:72
本文介绍了如何查看聊天机器人用户在Azure门户的AppInsights中的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Azure门户中的node js开发了一个聊天机器人,我想查看在门户中访问我的聊天机器人的用户总数

I have developed a chatbot using node js in Azure portal, I would like to see the total number of users accessed my chatbot in portal

感谢您的帮助

推荐答案

访问Application Insights >>概述中的 Analytics 部分.在这里,您可以编写查询以获取与应用程序/机器人相关的数据.

Access the Analytics section in Application Insights >> Overview. Here you can write queries to get app/bot related data.

此查询返回每个频道的用户数. 您应该根据自己的喜好调整时间(不要忘记时区),或者将其完全删除以使用应用程序的时间范围.

This query returns the number of users per channel. You should adjust the time as you like (don't forget about the timezones), or remove them altogether to use the apps time range.

customEvents
| where timestamp > todatetime('2018-10-01T15:30:00.000Z')
| where timestamp < todatetime('2018-10-23T15:30:00.000Z')
| where name == 'MBFEvent.UserMessage' 
| summarize dcount(tostring(customDimensions.conversationId)) by tostring(customDimensions.channel)

以下是查询的输出

您可以使用

| summarize dcount(tostring(customDimensions.conversationId))

在机器人注册页面的 Analytics 部分中也可以找到相同的信息(下图显示了不同日期范围内的数据)

The same info can also be found in Analytics section of the bot registration page (image shown below shows data for a different date range)

您可以尝试在机器人注册"页面的分析"部分中更改日期范围,并在查询中使用相同的日期范围来验证用户数.

You can try changing the date range in Bot Registration page's analytics section and using the same date range in the query to verify the number of users.

这篇关于如何查看聊天机器人用户在Azure门户的AppInsights中的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆