[API] Update cluster mocks
This commit is contained in:
parent
c327908493
commit
4b176b87b4
2 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
const randomBroker = () => ({
|
const randomBroker = () => ({
|
||||||
bytesInPerSec: Math.ceil(Math.random() * 10000),
|
bytesInPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
bytesOutPerSec: Math.ceil(Math.random() * 10000),
|
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
segmentSize: Math.ceil(Math.random() * 1_000_000_000),
|
segmentSize: Math.ceil(Math.random() * 1_000_000_000),
|
||||||
partitionReplicas: 134,
|
partitionReplicas: 134,
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,6 +11,8 @@ module.exports = function (fastify, opts, next) {
|
||||||
brokerCount: 1,
|
brokerCount: 1,
|
||||||
onlinePartitionCount: 20,
|
onlinePartitionCount: 20,
|
||||||
topicCount: 2,
|
topicCount: 2,
|
||||||
|
bytesInPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
|
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'dMMQx-WRh77BKYas_g2ZTz',
|
id: 'dMMQx-WRh77BKYas_g2ZTz',
|
||||||
|
@ -20,6 +22,8 @@ module.exports = function (fastify, opts, next) {
|
||||||
brokerCount: 0,
|
brokerCount: 0,
|
||||||
onlinePartitionCount: 0,
|
onlinePartitionCount: 0,
|
||||||
topicCount: 0,
|
topicCount: 0,
|
||||||
|
bytesInPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
|
bytesOutPerSec: Math.ceil(Math.random() * 10_000),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue