Class: NutanixClustermgmt::ClustermgmtV40StatsHostStats

Inherits:
ApiModelBase
  • Object
show all
Defined in:
lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb

Overview

Host entity statistic attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApiModelBase

_deserialize, #_to_hash, #to_body, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ ClustermgmtV40StatsHostStats

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 302

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `NutanixClustermgmt::ClustermgmtV40StatsHostStats` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  acceptable_attribute_map = self.class.acceptable_attribute_map
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `NutanixClustermgmt::ClustermgmtV40StatsHostStats`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'tenant_id')
    self.tenant_id = attributes[:'tenant_id']
  end

  if attributes.key?(:'ext_id')
    self.ext_id = attributes[:'ext_id']
  end

  if attributes.key?(:'links')
    if (value = attributes[:'links']).is_a?(Array)
      self.links = value
    end
  end

  if attributes.key?(:'controller_avg_io_latency_usecs')
    if (value = attributes[:'controller_avg_io_latency_usecs']).is_a?(Array)
      self.controller_avg_io_latency_usecs = value
    end
  end

  if attributes.key?(:'controller_avg_io_latency_usecs_upper_buf')
    if (value = attributes[:'controller_avg_io_latency_usecs_upper_buf']).is_a?(Array)
      self.controller_avg_io_latency_usecs_upper_buf = value
    end
  end

  if attributes.key?(:'controller_avg_io_latency_usecs_lower_buf')
    if (value = attributes[:'controller_avg_io_latency_usecs_lower_buf']).is_a?(Array)
      self.controller_avg_io_latency_usecs_lower_buf = value
    end
  end

  if attributes.key?(:'controller_avg_read_io_latency_usecs')
    if (value = attributes[:'controller_avg_read_io_latency_usecs']).is_a?(Array)
      self.controller_avg_read_io_latency_usecs = value
    end
  end

  if attributes.key?(:'controller_avg_read_io_latency_usecs_upper_buf')
    if (value = attributes[:'controller_avg_read_io_latency_usecs_upper_buf']).is_a?(Array)
      self.controller_avg_read_io_latency_usecs_upper_buf = value
    end
  end

  if attributes.key?(:'controller_avg_read_io_latency_usecs_lower_buf')
    if (value = attributes[:'controller_avg_read_io_latency_usecs_lower_buf']).is_a?(Array)
      self.controller_avg_read_io_latency_usecs_lower_buf = value
    end
  end

  if attributes.key?(:'controller_avg_write_io_latency_usecs')
    if (value = attributes[:'controller_avg_write_io_latency_usecs']).is_a?(Array)
      self.controller_avg_write_io_latency_usecs = value
    end
  end

  if attributes.key?(:'controller_avg_write_io_latency_usecs_upper_buf')
    if (value = attributes[:'controller_avg_write_io_latency_usecs_upper_buf']).is_a?(Array)
      self.controller_avg_write_io_latency_usecs_upper_buf = value
    end
  end

  if attributes.key?(:'controller_avg_write_io_latency_usecs_lower_buf')
    if (value = attributes[:'controller_avg_write_io_latency_usecs_lower_buf']).is_a?(Array)
      self.controller_avg_write_io_latency_usecs_lower_buf = value
    end
  end

  if attributes.key?(:'controller_num_iops')
    if (value = attributes[:'controller_num_iops']).is_a?(Array)
      self.controller_num_iops = value
    end
  end

  if attributes.key?(:'controller_num_iops_upper_buf')
    if (value = attributes[:'controller_num_iops_upper_buf']).is_a?(Array)
      self.controller_num_iops_upper_buf = value
    end
  end

  if attributes.key?(:'controller_num_iops_lower_buf')
    if (value = attributes[:'controller_num_iops_lower_buf']).is_a?(Array)
      self.controller_num_iops_lower_buf = value
    end
  end

  if attributes.key?(:'hypervisor_cpu_usage_ppm')
    if (value = attributes[:'hypervisor_cpu_usage_ppm']).is_a?(Array)
      self.hypervisor_cpu_usage_ppm = value
    end
  end

  if attributes.key?(:'hypervisor_cpu_usage_ppm_upper_buf')
    if (value = attributes[:'hypervisor_cpu_usage_ppm_upper_buf']).is_a?(Array)
      self.hypervisor_cpu_usage_ppm_upper_buf = value
    end
  end

  if attributes.key?(:'hypervisor_cpu_usage_ppm_lower_buf')
    if (value = attributes[:'hypervisor_cpu_usage_ppm_lower_buf']).is_a?(Array)
      self.hypervisor_cpu_usage_ppm_lower_buf = value
    end
  end

  if attributes.key?(:'aggregate_hypervisor_memory_usage_ppm')
    if (value = attributes[:'aggregate_hypervisor_memory_usage_ppm']).is_a?(Array)
      self.aggregate_hypervisor_memory_usage_ppm = value
    end
  end

  if attributes.key?(:'aggregate_hypervisor_memory_usage_ppm_upper_buf')
    if (value = attributes[:'aggregate_hypervisor_memory_usage_ppm_upper_buf']).is_a?(Array)
      self.aggregate_hypervisor_memory_usage_ppm_upper_buf = value
    end
  end

  if attributes.key?(:'aggregate_hypervisor_memory_usage_ppm_lower_buf')
    if (value = attributes[:'aggregate_hypervisor_memory_usage_ppm_lower_buf']).is_a?(Array)
      self.aggregate_hypervisor_memory_usage_ppm_lower_buf = value
    end
  end

  if attributes.key?(:'controller_num_read_iops')
    if (value = attributes[:'controller_num_read_iops']).is_a?(Array)
      self.controller_num_read_iops = value
    end
  end

  if attributes.key?(:'controller_num_read_iops_upper_buf')
    if (value = attributes[:'controller_num_read_iops_upper_buf']).is_a?(Array)
      self.controller_num_read_iops_upper_buf = value
    end
  end

  if attributes.key?(:'controller_num_read_iops_lower_buf')
    if (value = attributes[:'controller_num_read_iops_lower_buf']).is_a?(Array)
      self.controller_num_read_iops_lower_buf = value
    end
  end

  if attributes.key?(:'controller_num_write_iops')
    if (value = attributes[:'controller_num_write_iops']).is_a?(Array)
      self.controller_num_write_iops = value
    end
  end

  if attributes.key?(:'controller_num_write_iops_upper_buf')
    if (value = attributes[:'controller_num_write_iops_upper_buf']).is_a?(Array)
      self.controller_num_write_iops_upper_buf = value
    end
  end

  if attributes.key?(:'controller_num_write_iops_lower_buf')
    if (value = attributes[:'controller_num_write_iops_lower_buf']).is_a?(Array)
      self.controller_num_write_iops_lower_buf = value
    end
  end

  if attributes.key?(:'io_bandwidth_kbps')
    if (value = attributes[:'io_bandwidth_kbps']).is_a?(Array)
      self.io_bandwidth_kbps = value
    end
  end

  if attributes.key?(:'io_bandwidth_kbps_upper_buf')
    if (value = attributes[:'io_bandwidth_kbps_upper_buf']).is_a?(Array)
      self.io_bandwidth_kbps_upper_buf = value
    end
  end

  if attributes.key?(:'io_bandwidth_kbps_lower_buf')
    if (value = attributes[:'io_bandwidth_kbps_lower_buf']).is_a?(Array)
      self.io_bandwidth_kbps_lower_buf = value
    end
  end

  if attributes.key?(:'controller_read_io_bandwidth_kbps')
    if (value = attributes[:'controller_read_io_bandwidth_kbps']).is_a?(Array)
      self.controller_read_io_bandwidth_kbps = value
    end
  end

  if attributes.key?(:'controller_read_io_bandwidth_kbps_upper_buf')
    if (value = attributes[:'controller_read_io_bandwidth_kbps_upper_buf']).is_a?(Array)
      self.controller_read_io_bandwidth_kbps_upper_buf = value
    end
  end

  if attributes.key?(:'controller_read_io_bandwidth_kbps_lower_buf')
    if (value = attributes[:'controller_read_io_bandwidth_kbps_lower_buf']).is_a?(Array)
      self.controller_read_io_bandwidth_kbps_lower_buf = value
    end
  end

  if attributes.key?(:'controller_write_io_bandwidth_kbps_upper_buf')
    if (value = attributes[:'controller_write_io_bandwidth_kbps_upper_buf']).is_a?(Array)
      self.controller_write_io_bandwidth_kbps_upper_buf = value
    end
  end

  if attributes.key?(:'controller_write_io_bandwidth_kbps_lower_buf')
    if (value = attributes[:'controller_write_io_bandwidth_kbps_lower_buf']).is_a?(Array)
      self.controller_write_io_bandwidth_kbps_lower_buf = value
    end
  end

  if attributes.key?(:'controller_write_io_bandwidth_kbps')
    if (value = attributes[:'controller_write_io_bandwidth_kbps']).is_a?(Array)
      self.controller_write_io_bandwidth_kbps = value
    end
  end

  if attributes.key?(:'storage_usage_bytes')
    if (value = attributes[:'storage_usage_bytes']).is_a?(Array)
      self.storage_usage_bytes = value
    end
  end

  if attributes.key?(:'storage_capacity_bytes')
    if (value = attributes[:'storage_capacity_bytes']).is_a?(Array)
      self.storage_capacity_bytes = value
    end
  end

  if attributes.key?(:'free_physical_storage_bytes')
    if (value = attributes[:'free_physical_storage_bytes']).is_a?(Array)
      self.free_physical_storage_bytes = value
    end
  end

  if attributes.key?(:'memory_capacity_bytes')
    if (value = attributes[:'memory_capacity_bytes']).is_a?(Array)
      self.memory_capacity_bytes = value
    end
  end

  if attributes.key?(:'cpu_capacity_hz')
    if (value = attributes[:'cpu_capacity_hz']).is_a?(Array)
      self.cpu_capacity_hz = value
    end
  end

  if attributes.key?(:'overall_memory_usage_ppm')
    if (value = attributes[:'overall_memory_usage_ppm']).is_a?(Array)
      self.overall_memory_usage_ppm = value
    end
  end

  if attributes.key?(:'overall_memory_usage_ppm_upper_buf')
    if (value = attributes[:'overall_memory_usage_ppm_upper_buf']).is_a?(Array)
      self.overall_memory_usage_ppm_upper_buf = value
    end
  end

  if attributes.key?(:'overall_memory_usage_ppm_lower_buf')
    if (value = attributes[:'overall_memory_usage_ppm_lower_buf']).is_a?(Array)
      self.overall_memory_usage_ppm_lower_buf = value
    end
  end

  if attributes.key?(:'health_check_score')
    if (value = attributes[:'health_check_score']).is_a?(Array)
      self.health_check_score = value
    end
  end

  if attributes.key?(:'logical_storage_usage_bytes')
    if (value = attributes[:'logical_storage_usage_bytes']).is_a?(Array)
      self.logical_storage_usage_bytes = value
    end
  end

  if attributes.key?(:'cpu_usage_hz')
    if (value = attributes[:'cpu_usage_hz']).is_a?(Array)
      self.cpu_usage_hz = value
    end
  end

  if attributes.key?(:'overall_memory_usage_bytes')
    if (value = attributes[:'overall_memory_usage_bytes']).is_a?(Array)
      self.overall_memory_usage_bytes = value
    end
  end

  if attributes.key?(:'power_consumption_instant_watt')
    if (value = attributes[:'power_consumption_instant_watt']).is_a?(Array)
      self.power_consumption_instant_watt = value
    end
  end
end

Instance Attribute Details

#aggregate_hypervisor_memory_usage_ppmObject

Aggregate Hypervisor Memory Usage(ppm).



74
75
76
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 74

def aggregate_hypervisor_memory_usage_ppm
  @aggregate_hypervisor_memory_usage_ppm
end

#aggregate_hypervisor_memory_usage_ppm_lower_bufObject

Lower Buf value of Aggregate Hypervisor Memory Usage(ppm).



80
81
82
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 80

def aggregate_hypervisor_memory_usage_ppm_lower_buf
  @aggregate_hypervisor_memory_usage_ppm_lower_buf
end

#aggregate_hypervisor_memory_usage_ppm_upper_bufObject

Upper Buf value of Aggregate Hypervisor Memory Usage(ppm).



77
78
79
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 77

def aggregate_hypervisor_memory_usage_ppm_upper_buf
  @aggregate_hypervisor_memory_usage_ppm_upper_buf
end

#controller_avg_io_latency_usecsObject

Controller Average IO Latency(usecs).



29
30
31
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 29

def controller_avg_io_latency_usecs
  @controller_avg_io_latency_usecs
end

#controller_avg_io_latency_usecs_lower_bufObject

Lower Buf value of Controller Average IO Latency(usecs).



35
36
37
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 35

def controller_avg_io_latency_usecs_lower_buf
  @controller_avg_io_latency_usecs_lower_buf
end

#controller_avg_io_latency_usecs_upper_bufObject

Upper Buf value of Controller Average IO Latency(usecs).



32
33
34
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 32

def controller_avg_io_latency_usecs_upper_buf
  @controller_avg_io_latency_usecs_upper_buf
end

#controller_avg_read_io_latency_usecsObject

Controller Average Read IO Latency(usecs).



38
39
40
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 38

def controller_avg_read_io_latency_usecs
  @controller_avg_read_io_latency_usecs
end

#controller_avg_read_io_latency_usecs_lower_bufObject

Lower Buf value of Controller Average Read IO Latency(usecs).



44
45
46
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 44

def controller_avg_read_io_latency_usecs_lower_buf
  @controller_avg_read_io_latency_usecs_lower_buf
end

#controller_avg_read_io_latency_usecs_upper_bufObject

Upper Buf value of Controller Average Read IO Latency(usecs).



41
42
43
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 41

def controller_avg_read_io_latency_usecs_upper_buf
  @controller_avg_read_io_latency_usecs_upper_buf
end

#controller_avg_write_io_latency_usecsObject

Controller Average Write IO Latency(usecs).



47
48
49
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 47

def controller_avg_write_io_latency_usecs
  @controller_avg_write_io_latency_usecs
end

#controller_avg_write_io_latency_usecs_lower_bufObject

Lower Buf value of Controller Average Write IO Latency(usecs).



53
54
55
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 53

def controller_avg_write_io_latency_usecs_lower_buf
  @controller_avg_write_io_latency_usecs_lower_buf
end

#controller_avg_write_io_latency_usecs_upper_bufObject

Upper Buf value of Controller Average Write IO Latency(usecs).



50
51
52
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 50

def controller_avg_write_io_latency_usecs_upper_buf
  @controller_avg_write_io_latency_usecs_upper_buf
end

#controller_num_iopsObject

Controller IOPS Number.



56
57
58
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 56

def controller_num_iops
  @controller_num_iops
end

#controller_num_iops_lower_bufObject

Lower Buf value of Controller IOPS Number.



62
63
64
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 62

def controller_num_iops_lower_buf
  @controller_num_iops_lower_buf
end

#controller_num_iops_upper_bufObject

Upper Buf value of Controller IOPS Number.



59
60
61
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 59

def controller_num_iops_upper_buf
  @controller_num_iops_upper_buf
end

#controller_num_read_iopsObject

Number of controller read IOPS.



83
84
85
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 83

def controller_num_read_iops
  @controller_num_read_iops
end

#controller_num_read_iops_lower_bufObject

Lower Buf value of Number of controller read IOPS.



89
90
91
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 89

def controller_num_read_iops_lower_buf
  @controller_num_read_iops_lower_buf
end

#controller_num_read_iops_upper_bufObject

Upper Buf value of Number of controller read IOPS.



86
87
88
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 86

def controller_num_read_iops_upper_buf
  @controller_num_read_iops_upper_buf
end

#controller_num_write_iopsObject

Number of controller write IOPS.



92
93
94
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 92

def controller_num_write_iops
  @controller_num_write_iops
end

#controller_num_write_iops_lower_bufObject

Lower Buf value of Number of controller write IoPS.



98
99
100
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 98

def controller_num_write_iops_lower_buf
  @controller_num_write_iops_lower_buf
end

#controller_num_write_iops_upper_bufObject

Upper Buf value of Number of controller write IOPS.



95
96
97
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 95

def controller_num_write_iops_upper_buf
  @controller_num_write_iops_upper_buf
end

#controller_read_io_bandwidth_kbpsObject

Controller Read IO Bandwidth(kBps).



110
111
112
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 110

def controller_read_io_bandwidth_kbps
  @controller_read_io_bandwidth_kbps
end

#controller_read_io_bandwidth_kbps_lower_bufObject

Lower Buf value of Controller Read IO Bandwidth(kBps).



116
117
118
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 116

def controller_read_io_bandwidth_kbps_lower_buf
  @controller_read_io_bandwidth_kbps_lower_buf
end

#controller_read_io_bandwidth_kbps_upper_bufObject

Upper Buf value of Controller Read IO Bandwidth(kBps).



113
114
115
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 113

def controller_read_io_bandwidth_kbps_upper_buf
  @controller_read_io_bandwidth_kbps_upper_buf
end

#controller_write_io_bandwidth_kbpsObject

Controller Write IO Bandwidth(kBps).



125
126
127
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 125

def controller_write_io_bandwidth_kbps
  @controller_write_io_bandwidth_kbps
end

#controller_write_io_bandwidth_kbps_lower_bufObject

Lower Buf value of Controller Write IO Bandwidth(kBps).



122
123
124
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 122

def controller_write_io_bandwidth_kbps_lower_buf
  @controller_write_io_bandwidth_kbps_lower_buf
end

#controller_write_io_bandwidth_kbps_upper_bufObject

Upper Buf value of Controller Write IO Bandwidth(kBps).



119
120
121
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 119

def controller_write_io_bandwidth_kbps_upper_buf
  @controller_write_io_bandwidth_kbps_upper_buf
end

#cpu_capacity_hzObject

CPU capacity in Hz.



140
141
142
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 140

def cpu_capacity_hz
  @cpu_capacity_hz
end

#cpu_usage_hzObject

CPU usage (Hz)



158
159
160
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 158

def cpu_usage_hz
  @cpu_usage_hz
end

#ext_idObject

A globally unique identifier of an instance that is suitable for external consumption.



23
24
25
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 23

def ext_id
  @ext_id
end

#free_physical_storage_bytesObject

Free physical space(bytes).



134
135
136
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 134

def free_physical_storage_bytes
  @free_physical_storage_bytes
end

#health_check_scoreObject

NCC check score indicating the health of the entity. The value to health mapping is as follows: Good: 100, Info: 98, Warning: 74, Critical: 24, Error: 13, Unknown: -1.



152
153
154
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 152

def health_check_score
  @health_check_score
end

#hypervisor_cpu_usage_ppmObject

Hypervisor CPU Usage(ppm).



65
66
67
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 65

def hypervisor_cpu_usage_ppm
  @hypervisor_cpu_usage_ppm
end

#hypervisor_cpu_usage_ppm_lower_bufObject

Lower Buf value of Hypervisor CPU Usage(ppm).



71
72
73
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 71

def hypervisor_cpu_usage_ppm_lower_buf
  @hypervisor_cpu_usage_ppm_lower_buf
end

#hypervisor_cpu_usage_ppm_upper_bufObject

Upper Buf value of Hypervisor CPU Usage(ppm).



68
69
70
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 68

def hypervisor_cpu_usage_ppm_upper_buf
  @hypervisor_cpu_usage_ppm_upper_buf
end

#io_bandwidth_kbpsObject

Controller IO Bandwidth(kBps).



101
102
103
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 101

def io_bandwidth_kbps
  @io_bandwidth_kbps
end

#io_bandwidth_kbps_lower_bufObject

Lower Buf value of Controller IO Bandwidth(kBps).



107
108
109
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 107

def io_bandwidth_kbps_lower_buf
  @io_bandwidth_kbps_lower_buf
end

#io_bandwidth_kbps_upper_bufObject

Upper Buf value of Controller IO Bandwidth(kBps).



104
105
106
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 104

def io_bandwidth_kbps_upper_buf
  @io_bandwidth_kbps_upper_buf
end

A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.



26
27
28
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 26

def links
  @links
end

#logical_storage_usage_bytesObject

Logical storage usage(bytes).



155
156
157
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 155

def logical_storage_usage_bytes
  @logical_storage_usage_bytes
end

#memory_capacity_bytesObject

Size of memory(in bytes).



137
138
139
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 137

def memory_capacity_bytes
  @memory_capacity_bytes
end

#overall_memory_usage_bytesObject

Overall memory usage(bytes).



161
162
163
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 161

def overall_memory_usage_bytes
  @overall_memory_usage_bytes
end

#overall_memory_usage_ppmObject

Overall memory usage(ppm).



143
144
145
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 143

def overall_memory_usage_ppm
  @overall_memory_usage_ppm
end

#overall_memory_usage_ppm_lower_bufObject

Lower Buf value of overall memory usage(ppm).



149
150
151
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 149

def overall_memory_usage_ppm_lower_buf
  @overall_memory_usage_ppm_lower_buf
end

#overall_memory_usage_ppm_upper_bufObject

Upper Buf value of overall memory usage(ppm).



146
147
148
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 146

def overall_memory_usage_ppm_upper_buf
  @overall_memory_usage_ppm_upper_buf
end

#power_consumption_instant_wattObject

Power instant consumption (watt)



164
165
166
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 164

def power_consumption_instant_watt
  @power_consumption_instant_watt
end

#storage_capacity_bytesObject

Storage capacity(bytes).



131
132
133
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 131

def storage_capacity_bytes
  @storage_capacity_bytes
end

#storage_usage_bytesObject

Storage usage(bytes).



128
129
130
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 128

def storage_usage_bytes
  @storage_usage_bytes
end

#tenant_idObject

A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this Id to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).



20
21
22
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 20

def tenant_id
  @tenant_id
end

Class Method Details

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



222
223
224
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 222

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



227
228
229
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 227

def self.acceptable_attributes
  acceptable_attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 167

def self.attribute_map
  {
    :'tenant_id' => :'tenantId',
    :'ext_id' => :'extId',
    :'links' => :'links',
    :'controller_avg_io_latency_usecs' => :'controllerAvgIoLatencyUsecs',
    :'controller_avg_io_latency_usecs_upper_buf' => :'controllerAvgIoLatencyUsecsUpperBuf',
    :'controller_avg_io_latency_usecs_lower_buf' => :'controllerAvgIoLatencyUsecsLowerBuf',
    :'controller_avg_read_io_latency_usecs' => :'controllerAvgReadIoLatencyUsecs',
    :'controller_avg_read_io_latency_usecs_upper_buf' => :'controllerAvgReadIoLatencyUsecsUpperBuf',
    :'controller_avg_read_io_latency_usecs_lower_buf' => :'controllerAvgReadIoLatencyUsecsLowerBuf',
    :'controller_avg_write_io_latency_usecs' => :'controllerAvgWriteIoLatencyUsecs',
    :'controller_avg_write_io_latency_usecs_upper_buf' => :'controllerAvgWriteIoLatencyUsecsUpperBuf',
    :'controller_avg_write_io_latency_usecs_lower_buf' => :'controllerAvgWriteIoLatencyUsecsLowerBuf',
    :'controller_num_iops' => :'controllerNumIops',
    :'controller_num_iops_upper_buf' => :'controllerNumIopsUpperBuf',
    :'controller_num_iops_lower_buf' => :'controllerNumIopsLowerBuf',
    :'hypervisor_cpu_usage_ppm' => :'hypervisorCpuUsagePpm',
    :'hypervisor_cpu_usage_ppm_upper_buf' => :'hypervisorCpuUsagePpmUpperBuf',
    :'hypervisor_cpu_usage_ppm_lower_buf' => :'hypervisorCpuUsagePpmLowerBuf',
    :'aggregate_hypervisor_memory_usage_ppm' => :'aggregateHypervisorMemoryUsagePpm',
    :'aggregate_hypervisor_memory_usage_ppm_upper_buf' => :'aggregateHypervisorMemoryUsagePpmUpperBuf',
    :'aggregate_hypervisor_memory_usage_ppm_lower_buf' => :'aggregateHypervisorMemoryUsagePpmLowerBuf',
    :'controller_num_read_iops' => :'controllerNumReadIops',
    :'controller_num_read_iops_upper_buf' => :'controllerNumReadIopsUpperBuf',
    :'controller_num_read_iops_lower_buf' => :'controllerNumReadIopsLowerBuf',
    :'controller_num_write_iops' => :'controllerNumWriteIops',
    :'controller_num_write_iops_upper_buf' => :'controllerNumWriteIopsUpperBuf',
    :'controller_num_write_iops_lower_buf' => :'controllerNumWriteIopsLowerBuf',
    :'io_bandwidth_kbps' => :'ioBandwidthKbps',
    :'io_bandwidth_kbps_upper_buf' => :'ioBandwidthKbpsUpperBuf',
    :'io_bandwidth_kbps_lower_buf' => :'ioBandwidthKbpsLowerBuf',
    :'controller_read_io_bandwidth_kbps' => :'controllerReadIoBandwidthKbps',
    :'controller_read_io_bandwidth_kbps_upper_buf' => :'controllerReadIoBandwidthKbpsUpperBuf',
    :'controller_read_io_bandwidth_kbps_lower_buf' => :'controllerReadIoBandwidthKbpsLowerBuf',
    :'controller_write_io_bandwidth_kbps_upper_buf' => :'controllerWriteIoBandwidthKbpsUpperBuf',
    :'controller_write_io_bandwidth_kbps_lower_buf' => :'controllerWriteIoBandwidthKbpsLowerBuf',
    :'controller_write_io_bandwidth_kbps' => :'controllerWriteIoBandwidthKbps',
    :'storage_usage_bytes' => :'storageUsageBytes',
    :'storage_capacity_bytes' => :'storageCapacityBytes',
    :'free_physical_storage_bytes' => :'freePhysicalStorageBytes',
    :'memory_capacity_bytes' => :'memoryCapacityBytes',
    :'cpu_capacity_hz' => :'cpuCapacityHz',
    :'overall_memory_usage_ppm' => :'overallMemoryUsagePpm',
    :'overall_memory_usage_ppm_upper_buf' => :'overallMemoryUsagePpmUpperBuf',
    :'overall_memory_usage_ppm_lower_buf' => :'overallMemoryUsagePpmLowerBuf',
    :'health_check_score' => :'healthCheckScore',
    :'logical_storage_usage_bytes' => :'logicalStorageUsageBytes',
    :'cpu_usage_hz' => :'cpuUsageHz',
    :'overall_memory_usage_bytes' => :'overallMemoryUsageBytes',
    :'power_consumption_instant_watt' => :'powerConsumptionInstantWatt'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 759

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_all_ofObject

List of class defined in allOf (OpenAPI v3)



294
295
296
297
298
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 294

def self.openapi_all_of
  [
  :'CommonV10ResponseExternalizableAbstractModel'
  ]
end

.openapi_nullableObject

List of attributes with nullable: true



287
288
289
290
291
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 287

def self.openapi_nullable
  Set.new([
    :'ext_id',
  ])
end

.openapi_typesObject

Attribute type mapping.



232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 232

def self.openapi_types
  {
    :'tenant_id' => :'String',
    :'ext_id' => :'String',
    :'links' => :'Array<CommonV10ResponseApiLink>',
    :'controller_avg_io_latency_usecs' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_io_latency_usecs_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_io_latency_usecs_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_read_io_latency_usecs' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_read_io_latency_usecs_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_read_io_latency_usecs_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_write_io_latency_usecs' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_write_io_latency_usecs_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_avg_write_io_latency_usecs_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_iops' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_iops_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_iops_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'hypervisor_cpu_usage_ppm' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'hypervisor_cpu_usage_ppm_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'hypervisor_cpu_usage_ppm_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'aggregate_hypervisor_memory_usage_ppm' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'aggregate_hypervisor_memory_usage_ppm_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'aggregate_hypervisor_memory_usage_ppm_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_read_iops' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_read_iops_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_read_iops_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_write_iops' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_write_iops_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_num_write_iops_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'io_bandwidth_kbps' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'io_bandwidth_kbps_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'io_bandwidth_kbps_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_read_io_bandwidth_kbps' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_read_io_bandwidth_kbps_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_read_io_bandwidth_kbps_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_write_io_bandwidth_kbps_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_write_io_bandwidth_kbps_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'controller_write_io_bandwidth_kbps' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'storage_usage_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'storage_capacity_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'free_physical_storage_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'memory_capacity_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'cpu_capacity_hz' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'overall_memory_usage_ppm' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'overall_memory_usage_ppm_upper_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'overall_memory_usage_ppm_lower_buf' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'health_check_score' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'logical_storage_usage_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'cpu_usage_hz' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'overall_memory_usage_bytes' => :'Array<ClustermgmtV40StatsTimeValuePair>',
    :'power_consumption_instant_watt' => :'Array<ClustermgmtV40StatsTimeValuePair>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 690

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      tenant_id == o.tenant_id &&
      ext_id == o.ext_id &&
      links == o.links &&
      controller_avg_io_latency_usecs == o.controller_avg_io_latency_usecs &&
      controller_avg_io_latency_usecs_upper_buf == o.controller_avg_io_latency_usecs_upper_buf &&
      controller_avg_io_latency_usecs_lower_buf == o.controller_avg_io_latency_usecs_lower_buf &&
      controller_avg_read_io_latency_usecs == o.controller_avg_read_io_latency_usecs &&
      controller_avg_read_io_latency_usecs_upper_buf == o.controller_avg_read_io_latency_usecs_upper_buf &&
      controller_avg_read_io_latency_usecs_lower_buf == o.controller_avg_read_io_latency_usecs_lower_buf &&
      controller_avg_write_io_latency_usecs == o.controller_avg_write_io_latency_usecs &&
      controller_avg_write_io_latency_usecs_upper_buf == o.controller_avg_write_io_latency_usecs_upper_buf &&
      controller_avg_write_io_latency_usecs_lower_buf == o.controller_avg_write_io_latency_usecs_lower_buf &&
      controller_num_iops == o.controller_num_iops &&
      controller_num_iops_upper_buf == o.controller_num_iops_upper_buf &&
      controller_num_iops_lower_buf == o.controller_num_iops_lower_buf &&
      hypervisor_cpu_usage_ppm == o.hypervisor_cpu_usage_ppm &&
      hypervisor_cpu_usage_ppm_upper_buf == o.hypervisor_cpu_usage_ppm_upper_buf &&
      hypervisor_cpu_usage_ppm_lower_buf == o.hypervisor_cpu_usage_ppm_lower_buf &&
      aggregate_hypervisor_memory_usage_ppm == o.aggregate_hypervisor_memory_usage_ppm &&
      aggregate_hypervisor_memory_usage_ppm_upper_buf == o.aggregate_hypervisor_memory_usage_ppm_upper_buf &&
      aggregate_hypervisor_memory_usage_ppm_lower_buf == o.aggregate_hypervisor_memory_usage_ppm_lower_buf &&
      controller_num_read_iops == o.controller_num_read_iops &&
      controller_num_read_iops_upper_buf == o.controller_num_read_iops_upper_buf &&
      controller_num_read_iops_lower_buf == o.controller_num_read_iops_lower_buf &&
      controller_num_write_iops == o.controller_num_write_iops &&
      controller_num_write_iops_upper_buf == o.controller_num_write_iops_upper_buf &&
      controller_num_write_iops_lower_buf == o.controller_num_write_iops_lower_buf &&
      io_bandwidth_kbps == o.io_bandwidth_kbps &&
      io_bandwidth_kbps_upper_buf == o.io_bandwidth_kbps_upper_buf &&
      io_bandwidth_kbps_lower_buf == o.io_bandwidth_kbps_lower_buf &&
      controller_read_io_bandwidth_kbps == o.controller_read_io_bandwidth_kbps &&
      controller_read_io_bandwidth_kbps_upper_buf == o.controller_read_io_bandwidth_kbps_upper_buf &&
      controller_read_io_bandwidth_kbps_lower_buf == o.controller_read_io_bandwidth_kbps_lower_buf &&
      controller_write_io_bandwidth_kbps_upper_buf == o.controller_write_io_bandwidth_kbps_upper_buf &&
      controller_write_io_bandwidth_kbps_lower_buf == o.controller_write_io_bandwidth_kbps_lower_buf &&
      controller_write_io_bandwidth_kbps == o.controller_write_io_bandwidth_kbps &&
      storage_usage_bytes == o.storage_usage_bytes &&
      storage_capacity_bytes == o.storage_capacity_bytes &&
      free_physical_storage_bytes == o.free_physical_storage_bytes &&
      memory_capacity_bytes == o.memory_capacity_bytes &&
      cpu_capacity_hz == o.cpu_capacity_hz &&
      overall_memory_usage_ppm == o.overall_memory_usage_ppm &&
      overall_memory_usage_ppm_upper_buf == o.overall_memory_usage_ppm_upper_buf &&
      overall_memory_usage_ppm_lower_buf == o.overall_memory_usage_ppm_lower_buf &&
      health_check_score == o.health_check_score &&
      logical_storage_usage_bytes == o.logical_storage_usage_bytes &&
      cpu_usage_hz == o.cpu_usage_hz &&
      overall_memory_usage_bytes == o.overall_memory_usage_bytes &&
      power_consumption_instant_watt == o.power_consumption_instant_watt
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


746
747
748
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 746

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



752
753
754
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 752

def hash
  [tenant_id, ext_id, links, controller_avg_io_latency_usecs, controller_avg_io_latency_usecs_upper_buf, controller_avg_io_latency_usecs_lower_buf, controller_avg_read_io_latency_usecs, controller_avg_read_io_latency_usecs_upper_buf, controller_avg_read_io_latency_usecs_lower_buf, controller_avg_write_io_latency_usecs, controller_avg_write_io_latency_usecs_upper_buf, controller_avg_write_io_latency_usecs_lower_buf, controller_num_iops, controller_num_iops_upper_buf, controller_num_iops_lower_buf, hypervisor_cpu_usage_ppm, hypervisor_cpu_usage_ppm_upper_buf, hypervisor_cpu_usage_ppm_lower_buf, aggregate_hypervisor_memory_usage_ppm, aggregate_hypervisor_memory_usage_ppm_upper_buf, aggregate_hypervisor_memory_usage_ppm_lower_buf, controller_num_read_iops, controller_num_read_iops_upper_buf, controller_num_read_iops_lower_buf, controller_num_write_iops, controller_num_write_iops_upper_buf, controller_num_write_iops_lower_buf, io_bandwidth_kbps, io_bandwidth_kbps_upper_buf, io_bandwidth_kbps_lower_buf, controller_read_io_bandwidth_kbps, controller_read_io_bandwidth_kbps_upper_buf, controller_read_io_bandwidth_kbps_lower_buf, controller_write_io_bandwidth_kbps_upper_buf, controller_write_io_bandwidth_kbps_lower_buf, controller_write_io_bandwidth_kbps, storage_usage_bytes, storage_capacity_bytes, free_physical_storage_bytes, memory_capacity_bytes, cpu_capacity_hz, overall_memory_usage_ppm, overall_memory_usage_ppm_upper_buf, overall_memory_usage_ppm_lower_buf, health_check_score, logical_storage_usage_bytes, cpu_usage_hz, overall_memory_usage_bytes, power_consumption_instant_watt].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 609

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
  if !@tenant_id.nil? && @tenant_id !~ pattern
    invalid_properties.push("invalid value for \"tenant_id\", must conform to the pattern #{pattern}.")
  end

  pattern = Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
  if !@ext_id.nil? && @ext_id !~ pattern
    invalid_properties.push("invalid value for \"ext_id\", must conform to the pattern #{pattern}.")
  end

  if !@links.nil? && @links.length > 20
    invalid_properties.push('invalid value for "links", number of items must be less than or equal to 20.')
  end

  if !@links.nil? && @links.length < 0
    invalid_properties.push('invalid value for "links", number of items must be greater than or equal to 0.')
  end

  invalid_properties
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



781
782
783
784
785
786
787
788
789
790
791
792
793
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 781

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



635
636
637
638
639
640
641
642
# File 'lib/nutanix_clustermgmt/models/clustermgmt_v40_stats_host_stats.rb', line 635

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if !@tenant_id.nil? && @tenant_id !~ Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
  return false if !@ext_id.nil? && @ext_id !~ Regexp.new(/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/)
  return false if !@links.nil? && @links.length > 20
  return false if !@links.nil? && @links.length < 0
  true
end