fixtures.ts 629 B

123456789101112131415161718192021222324252627
  1. import { Cluster, ServerStatus } from 'generated-sources';
  2. export const onlineClusterPayload: Cluster = {
  3. name: 'secondLocal',
  4. defaultCluster: true,
  5. status: ServerStatus.ONLINE,
  6. brokerCount: 1,
  7. onlinePartitionCount: 6,
  8. topicCount: 3,
  9. bytesInPerSec: 1.55,
  10. bytesOutPerSec: 9.314,
  11. };
  12. export const offlineClusterPayload: Cluster = {
  13. name: 'local',
  14. defaultCluster: false,
  15. status: ServerStatus.OFFLINE,
  16. brokerCount: 1,
  17. onlinePartitionCount: 2,
  18. topicCount: 2,
  19. bytesInPerSec: 3.42,
  20. bytesOutPerSec: 4.14,
  21. };
  22. export const clustersPayload: Cluster[] = [
  23. onlineClusterPayload,
  24. offlineClusterPayload,
  25. ];