const data = Array.from({ length: 50 }, (_, i) => {
const usage = Math.floor(Math.random() * 101);
const flags = [‘red’, ‘green’, ‘blue’];
const randomIndex = Math.floor(Math.random() * flags.length);
const status = [‘in’, ‘up’];
const size = Math.floor(Math.random() * 100) + 1;
const PGs = Math.floor(Math.random() * 100) + 1;
const readBytes = Math.floor(Math.random() * 10) + 1;
const writeBytes = Math.floor(Math.random() * 10) + 1;
const readOps = Math.floor(Math.random() * 10) / 10;
const writeOps = Math.floor(Math.random() * 10) / 10;

return {
key: i,
id: i,
host: ip-172-31-77-${i},
status,
deviceClass: ‘SSD’,
PGs,
size,
flags: [flags[randomIndex]],
usage,
readBytes,
writeBytes,
readOps,
writeOps,
};
}); чему равно data?