Explorar el Código

[API] Mocking

Oleg Shuralev hace 5 años
padre
commit
e4adeece6d
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  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: [