narrow 插件

narrow 插件将宽表“逆透视”为包含三个列的表:

  • 行号
  • 列类型
  • 列值(表示为 string

narrow 插件主要用于显示目的,它可以让你在不需要水平滚动的情况下轻松显示宽表。

该插件通过 evaluate 运算符调用。

语法

T | evaluate narrow()

详细了解语法约定

示例

以下示例演示了读取 Kusto .show diagnostics 管理命令的输出的一种简单方法。

.show diagnostics
 | evaluate narrow()

.show diagnostics 本身的结果是一个具有单个行和 33 个列的表。 通过使用 narrow 插件,我们将输出“旋转”为如下所示的结果:

0 IsHealthy True
0 IsRebalanceRequired 错误
0 IsScaleOutRequired 错误
0 MachinesTotal 2
0 MachinesOffline 0
0 NodeLastRestartedOn 2017-03-14 10:59:18.9263023
0 AdminLastElectedOn 2017-03-14 10:58:41.6741934
0 ClusterWarmDataCapacityFactor 0.130552847673333
0 ExtentsTotal 136
0 DiskColdAllocationPercentage 5
0 InstancesTargetBasedOnDataCapacity 2
0 TotalOriginalDataSize 5167628070
0 TotalExtentSize 1779165230
0 IngestionsLoadFactor 0
0 IngestionsInProgress 0
0 IngestionsSuccessRate 100
0 MergesInProgress 0
0 BuildVersion 1.0.6281.19882
0 BuildTime 2017-03-13 11:02:44.0000000
0 ClusterDataCapacityFactor 0.130552847673333
0 IsDataWarmingRequired 错误
0 RebalanceLastRunOn 2017-03-21 09:14:53.8523455
0 DataWarmingLastRunOn 2017-03-21 09:19:54.1438800
0 MergesSuccessRate 100
0 NotHealthyReason [null]
0 IsAttentionRequired 错误
0 AttentionRequiredReason [null]
0 ProductVersion KustoRelease_2017.03.13.2
0 FailedIngestOperations 0
0 FailedMergeOperations 0
0 MaxExtentsInSingleTable 64
0 TableWithMaxExtents KustoMonitoringPersistentDatabase.KustoMonitoringTable
0 WarmExtentSize 1779165230