[API] Mocking
This commit is contained in:
parent
9c0d4ef2c2
commit
e4adeece6d
1 changed files with 3 additions and 3 deletions
|
@ -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: [
|
||||||
|
|
Loading…
Add table
Reference in a new issue