Class: Google::Apis::VmmigrationV1alpha1::VmUtilizationMetrics
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::VmUtilizationMetrics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb
Overview
Utilization metrics values for a single VM.
Instance Attribute Summary collapse
-
#cpu_average ⇒ Fixnum
Average CPU usage, percent.
-
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
-
#cpu_max ⇒ Fixnum
Max CPU usage, percent.
-
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
-
#disk_io_rate_average ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
-
#disk_io_rate_average_kbps ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
-
#disk_io_rate_max ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
-
#disk_io_rate_max_kbps ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
-
#memory_average ⇒ Fixnum
Average memory usage, percent.
-
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
-
#memory_max ⇒ Fixnum
Max memory usage, percent.
-
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
-
#network_throughput_average ⇒ Fixnum
Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
-
#network_throughput_average_kbps ⇒ Fixnum
Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.
-
#network_throughput_max ⇒ Fixnum
Max 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.
4490 4491 4492 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4490 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_average ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAverage
4409 4410 4411 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4409 def cpu_average @cpu_average end |
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAveragePercent
4414 4415 4416 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4414 def cpu_average_percent @cpu_average_percent end |
#cpu_max ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMax
4419 4420 4421 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4419 def cpu_max @cpu_max end |
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMaxPercent
4424 4425 4426 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4424 def cpu_max_percent @cpu_max_percent end |
#disk_io_rate_average ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateAverage
4429 4430 4431 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4429 def disk_io_rate_average @disk_io_rate_average end |
#disk_io_rate_average_kbps ⇒ Fixnum
Average disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateAverageKbps
4434 4435 4436 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4434 def disk_io_rate_average_kbps @disk_io_rate_average_kbps end |
#disk_io_rate_max ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateMax
4439 4440 4441 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4439 def disk_io_rate_max @disk_io_rate_max end |
#disk_io_rate_max_kbps ⇒ Fixnum
Max disk IO rate, in kilobytes per second.
Corresponds to the JSON property diskIoRateMaxKbps
4444 4445 4446 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4444 def disk_io_rate_max_kbps @disk_io_rate_max_kbps end |
#memory_average ⇒ Fixnum
Average memory usage, percent.
Corresponds to the JSON property memoryAverage
4449 4450 4451 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4449 def memory_average @memory_average end |
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
Corresponds to the JSON property memoryAveragePercent
4454 4455 4456 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4454 def memory_average_percent @memory_average_percent end |
#memory_max ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMax
4459 4460 4461 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4459 def memory_max @memory_max end |
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMaxPercent
4464 4465 4466 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4464 def memory_max_percent @memory_max_percent end |
#network_throughput_average ⇒ Fixnum
Average network throughput (combined transmit-rates and receive-rates), in
kilobytes per second.
Corresponds to the JSON property networkThroughputAverage
4470 4471 4472 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4470 def network_throughput_average @network_throughput_average 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
4476 4477 4478 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4476 def network_throughput_average_kbps @network_throughput_average_kbps end |
#network_throughput_max ⇒ Fixnum
Max network throughput (combined transmit-rates and receive-rates), in
kilobytes per second.
Corresponds to the JSON property networkThroughputMax
4482 4483 4484 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4482 def network_throughput_max @network_throughput_max 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
4488 4489 4490 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4488 def network_throughput_max_kbps @network_throughput_max_kbps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4495 def update!(**args) @cpu_average = args[:cpu_average] if args.key?(:cpu_average) @cpu_average_percent = args[:cpu_average_percent] if args.key?(:cpu_average_percent) @cpu_max = args[:cpu_max] if args.key?(:cpu_max) @cpu_max_percent = args[:cpu_max_percent] if args.key?(:cpu_max_percent) @disk_io_rate_average = args[:disk_io_rate_average] if args.key?(:disk_io_rate_average) @disk_io_rate_average_kbps = args[:disk_io_rate_average_kbps] if args.key?(:disk_io_rate_average_kbps) @disk_io_rate_max = args[:disk_io_rate_max] if args.key?(:disk_io_rate_max) @disk_io_rate_max_kbps = args[:disk_io_rate_max_kbps] if args.key?(:disk_io_rate_max_kbps) @memory_average = args[:memory_average] if args.key?(:memory_average) @memory_average_percent = args[:memory_average_percent] if args.key?(:memory_average_percent) @memory_max = args[:memory_max] if args.key?(:memory_max) @memory_max_percent = args[:memory_max_percent] if args.key?(:memory_max_percent) @network_throughput_average = args[:network_throughput_average] if args.key?(:network_throughput_average) @network_throughput_average_kbps = args[:network_throughput_average_kbps] if args.key?(:network_throughput_average_kbps) @network_throughput_max = args[:network_throughput_max] if args.key?(:network_throughput_max) @network_throughput_max_kbps = args[:network_throughput_max_kbps] if args.key?(:network_throughput_max_kbps) end |