【发布时间】:2019-08-16 13:34:05
【问题描述】:
我正在使用 ApplicationInsights API Explorer 来测试过滤器子句。但它会导致错误。
我发现了用于导出过滤器的语法 (startswith(request/name, 'GET')) 的罕见示例。
在 API Explorer 上: https://dev.applicationinsights.io/apiexplorer/metrics 我输入了我的帐户凭据。
我的参数是:
指标ID:
requests/count
过滤器:
startswith(request/cloud_RoleInstance, 'development')
在 Kusto 语言中,查询应该是:
requests
| where cloud_RoleInstance startswith "development"
| count
并且工作正常:结果:~ 47,000
我的查询结果是:
"error": {
"message": "Unexpected error occurred",
"code": "InternalServerFault",
"innererror": {
"code": "QueryCompilationError"
}
但我希望从任何以“开发”开头的 cloud_RoleInstance 到达 AppInsights 的请求数。
文档链接通常指向https://dev.applicationinsights.io/ 但我似乎找不到任何有关过滤器语法的有用信息。 不支持属性 cloud_RoleInstance 吗?
【问题讨论】:
标签: azure syntax azure-application-insights metrics