浏览代码

minor renaming

iliax 2 年之前
父节点
当前提交
9af88aa139

+ 2 - 2
kafka-ui-api/src/main/java/com/provectus/kafka/ui/model/InternalBroker.java

@@ -14,7 +14,7 @@ public class InternalBroker {
   private final @Nullable BigDecimal bytesInPerSec;
   private final @Nullable BigDecimal bytesOutPerSec;
   private final @Nullable Integer partitionsLeader;
-  private final @Nullable Integer partitionsHost;
+  private final @Nullable Integer partitions;
   private final @Nullable Integer inSyncPartitions;
   private final @Nullable BigDecimal leadersSkew;
   private final @Nullable BigDecimal partitionsSkew;
@@ -28,7 +28,7 @@ public class InternalBroker {
     this.bytesInPerSec = statistics.getMetrics().getBrokerBytesInPerSec().get(node.id());
     this.bytesOutPerSec = statistics.getMetrics().getBrokerBytesOutPerSec().get(node.id());
     this.partitionsLeader = partitionDistribution.getPartitionLeaders().get(node);
-    this.partitionsHost = partitionDistribution.getPartitionsCount().get(node);
+    this.partitions = partitionDistribution.getPartitionsCount().get(node);
     this.inSyncPartitions = partitionDistribution.getInSyncPartitions().get(node);
     this.leadersSkew = partitionDistribution.leadersSkew(node);
     this.partitionsSkew = partitionDistribution.partitionsSkew(node);

+ 1 - 1
kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml

@@ -2357,7 +2357,7 @@ components:
           type: number
         partitionsLeader:
           type: integer
-        partitionsHost:
+        partitions:
           type: integer
         inSyncPartitions:
           type: integer