Class: Google::Apis::VmmigrationV1::VmUtilizationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::VmUtilizationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb
Overview
Utilization metrics values for a single VM.
Instance Attribute Summary collapse
-
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
-
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
-
#disk_io_rate_average_kbps ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
-
#disk_io_rate_max_kbps ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
-
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
-
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
-
#network_throughput_average_kbps ⇒ Fixnum
Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
-
#network_throughput_max_kbps ⇒ Fixnum
Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmUtilizationMetrics
constructor
A new instance of VmUtilizationMetrics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VmUtilizationMetrics
Returns a new instance of VmUtilizationMetrics.
4516 4517 4518 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4516 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAveragePercent
4477 4478 4479 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4477 def cpu_average_percent @cpu_average_percent end |
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMaxPercent
4482 4483 4484 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4482 def cpu_max_percent @cpu_max_percent end |
#disk_io_rate_average_kbps ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateAverageKbps
4487 4488 4489 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4487 def disk_io_rate_average_kbps @disk_io_rate_average_kbps end |
#disk_io_rate_max_kbps ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateMaxKbps
4492 4493 4494 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4492 def disk_io_rate_max_kbps @disk_io_rate_max_kbps end |
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
Corresponds to the JSON property memoryAveragePercent
4497 4498 4499 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4497 def memory_average_percent @memory_average_percent end |
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMaxPercent
4502 4503 4504 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4502 def memory_max_percent @memory_max_percent end |
#network_throughput_average_kbps ⇒ Fixnum
Average network throughput (combined transmit-rates and receive-rates), in
kilobytes per second.
Corresponds to the JSON property networkThroughputAverageKbps
4508 4509 4510 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4508 def network_throughput_average_kbps @network_throughput_average_kbps end |
#network_throughput_max_kbps ⇒ Fixnum
Max network throughput (combined transmit-rates and receive-rates), in
kilobytes per second.
Corresponds to the JSON property networkThroughputMaxKbps
4514 4515 4516 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4514 def network_throughput_max_kbps @network_throughput_max_kbps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4521 def update!(**args) @cpu_average_percent = args[:cpu_average_percent] if args.key?(:cpu_average_percent) @cpu_max_percent = args[:cpu_max_percent] if args.key?(:cpu_max_percent) @disk_io_rate_average_kbps = args[:disk_io_rate_average_kbps] if args.key?(:disk_io_rate_average_kbps) @disk_io_rate_max_kbps = args[:disk_io_rate_max_kbps] if args.key?(:disk_io_rate_max_kbps) @memory_average_percent = args[:memory_average_percent] if args.key?(:memory_average_percent) @memory_max_percent = args[:memory_max_percent] if args.key?(:memory_max_percent) @network_throughput_average_kbps = args[:network_throughput_average_kbps] if args.key?(:network_throughput_average_kbps) @network_throughput_max_kbps = args[:network_throughput_max_kbps] if args.key?(:network_throughput_max_kbps) end |