如何在azure应用洞察中保存一些自定义qna制造商数据? [英] How can I save some custom qna maker data in azure app insights?

查看:66
本文介绍了如何在azure应用洞察中保存一些自定义qna制造商数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经用Luis和QnA Maker(在C#中,Bot Framework v4)设置了Azure Bot.我想查询App Insights,以获取有关所问问题及其答案的信息.我在这里遵循了答案:如何获取Qna Maker"Q",但我需要一个附加字段来存储用户角色(如果可以将其存储在customDimension字段中,那将是完美的选择).

I have set up an Azure Bot with Luis and QnA Maker (in C#, Bot Framework v4). I want to query the App Insights and get information about the questions asked together with their answer. I followed the answers here: How to get the Qna Maker "Q" from Analytics Application Insights?, and I was able to get them, but I need an additional field for storing the user role (it would be perfect if I could store it in the customDimension field).

我已遵循 https://docs.microsoft.com/zh-cn/azure/bot-service/bot-builder-telemetry?view=azure-bot-service-4.0 ,我添加了这样的自定义字段:

I have followed the documentation from https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-telemetry?view=azure-bot-service-4.0 and I added the custom field like this:

var telemetryProperties = new Dictionary<string, string>
{
   { "dialogId", myDialogId },
};

var results = await qna.GetAnswersAsync(context, opts, telemetryProperties);

还是,我不知道该值是保存的还是保存在哪里.在实时指标中,我看到了信息已发送,但是在Analytics/日志中的任何地方都找不到.

Still, I don't know if the value is saved or where it is saved. I the live metrics I see that the information is sent, but I can't find it anywhere in the Analytics/Logs.

如果您需要其他任何信息,请告诉我.

If you need any further information, let me know.

谢谢!

推荐答案

根据与op的通信,遥测最终位于应用程序见解分析日志的customEvents表中.有时由于不为空,所以不存在.

As per the communication with op, the telemetry is eventually in the customEvents table of app insights analytics logs. Sometimes it does not exist due to the value is null.

这篇关于如何在azure应用洞察中保存一些自定义qna制造商数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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