소스 검색

[API] Mocking

Oleg Shuralev 5 년 전
부모
커밋
e4adeece6d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      api/mocks/brokerMetrics.js

+ 3 - 3
api/mocks/brokerMetrics.js

@@ -5,9 +5,9 @@ const randomBrokerMetrics = () => ({
   zooKeeperStatus: 1,
   activeControllers: 1,
   uncleanLeaderElectionCount: 0,
-  networkPoolUsage: Math.random(),
-  requestPoolUsage: Math.random(),
-  onlinePartitionCount: Math.ceil(Math.random() * 1000),
+  networkPoolUsage: Math.random() * 0.01,
+  requestPoolUsage: Math.random() * 0.01,
+  onlinePartitionCount: Math.ceil(Math.random() * 100),
   underReplicatedPartitionCount: Math.ceil(Math.random() * 10),
   offlinePartitionCount: Math.ceil(Math.random() * 10),
   diskUsage: [