azure - Application Insights - 如何按自定义维度排序

标签 azure azure-application-insights ms-app-analytics

我想根据 customDimension.MyCustomProperty 对查询结果进行排序,该值存在于所有实体中并且是一个数字。我怎样才能做到这一点?

最佳答案

我建议首先使用您的 customDimension 来扩展您的结果集。然后,您必须将新列转换为字符串、整数或 double 。原因是 customDimensions 被视为动态列

一个简单的例子:

traces
| extend sortKey = toint(customDimensions.MyCustomProperty)
| order by sortKey asc

类型转换选项是:

  • tostring()
  • toint()
  • todouble()

如果您想在实际排序后删除排序键,可以project-away新列。

关于azure - Application Insights - 如何按自定义维度排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43392240/

相关文章:

azure - 地理分布式 Azure 应用程序与单一区域

azure - 如何访问 Azure Application Insights 中的页面 View ?

azure - 使用 Azure 应用程序见解托管在 Azure Functions 上的 Asp.net core - 如何禁用性能计数器收集

Azure 操作系统磁盘命名约定

Python Durable Function 不调用 Activity

Azure Application Insights 查询 - 如何计算总数的百分比

azure - Application Insights Analytics - 2 个或更多表的查询并集

azure-application-insights - 使用扩展在 Azure 流分析/Application Insights 中添加计数列

azure - Microsoft Azure 机器人类型选择

azure-application-insights - 应用洞察 : How to filter only errors