App Insights 查询在从代码运行时触发错误

问题描述 投票:0回答:0

我正在尝试从一段 Java 代码对 App Insights 运行查询。我从非常简单的事情开始:

requests | where success == false

当我通过 Azure 门户在 App Insights 中直接运行该查询时,它会返回一些结果。但是当我将这个查询添加到我的代码中时,我得到了这个错误:

Failure Exception: HttpResponseException: Status code 400, "{"error":{"message":"The request had some invalid properties","code":"BadArgumentError","correlationId":"22758365-9459-45ba-b4a3-1b134ce3a7a2","innererror":{"code":"SemanticError","message":"A semantic error occurred.","innererror":{"code":"SEM0100","message":"'where' operator: Failed to resolve table or column expression named 'requests'"}}}}"

在我的代码中,我尝试使用 LogsQueryClient 来执行它。这里有什么问题?

azure-application-insights kql
© www.soinside.com 2019 - 2024. All rights reserved.