[API] Mocking

This commit is contained in:
Oleg Shuralev 2020-01-08 03:07:57 +03:00
parent 9c0d4ef2c2
commit e4adeece6d
No known key found for this signature in database
GPG key ID: 0459DF80E1A2FD1B

View file

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