如何在Azure应用见解中保存一些自定义QNA Maker数据?

时间:2019-06-05 07:10:37

标签: azure azure-application-insights azure-bot-service qnamaker

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

我遵循了https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-telemetry?view=azure-bot-service-4.0中的文档,并添加了这样的自定义字段:

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

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

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

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

谢谢!

1 个答案:

答案 0 :(得分:1)

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