azure - 如何使用 Application Insights 查询查询多个 Azure API 管理 API 名称
问题描述
您好,我正在努力通过 Azure API 管理获取请求,但是我正在获取所有 api。我想只过滤我需要的 api
这是我所做的:
requests
|summarize totalCount=sum(itemCount) by bin(timestamp,15m),toString(customDimensions.["API Name"])
where (toString(customDimensions.["API Name"]) == "api1" && "api2"
|render timechart
当我测试它告诉我 状态:有些东西坏了,我怎样才能过滤出我需要的所有 API
解决方案
将查询更改为
requests
| extend apiName = tostring(customDimensions.["API Name"])
| summarize totalCount=sum(itemCount) by bin(timestamp,15m),apiName
| where apiName in ("api1", "api2")
| render timechart
推荐阅读
- kdb - KDB+/Q:如何理解语言参考中的定义?
- javascript - 如何使用js正则表达式匹配前面没有特殊单词的不确定数字
- vue.js - 路径更改时位置滚动没有改变 - vuejs
- c++ - 在 vs2019 中构建 ffmpeg 失败但不知道为什么
- java - 我是独立的 spark 集群,我们可以使用 map reduce compress 相关属性吗?如果使用这些属性真的有效吗?
- reactjs - 如何在多选材质 UI 中传递字符串值而不是传递事件?
- node.js - cloudinary 上传器未定义 node.js
- sql - postgres 从假期列表中获取下一个即时工作日期的存储过程
- python - 用while python插入逻辑
- r - 错误:“imputeTS”的包或命名空间加载失败