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.
3336 3337 3338 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_average ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAverage
3255 3256 3257 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3255 def cpu_average @cpu_average end |
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAveragePercent
3260 3261 3262 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3260 def cpu_average_percent @cpu_average_percent end |
#cpu_max ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMax
3265 3266 3267 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3265 def cpu_max @cpu_max end |
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMaxPercent
3270 3271 3272 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3270 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
3275 3276 3277 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3275 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
3280 3281 3282 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3280 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
3285 3286 3287 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3285 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
3290 3291 3292 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3290 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
3295 3296 3297 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3295 def memory_average @memory_average end |
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
Corresponds to the JSON property memoryAveragePercent
3300 3301 3302 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3300 def memory_average_percent @memory_average_percent end |
#memory_max ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMax
3305 3306 3307 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3305 def memory_max @memory_max end |
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMaxPercent
3310 3311 3312 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3310 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
3316 3317 3318 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3316 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
3322 3323 3324 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3322 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
3328 3329 3330 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3328 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
3334 3335 3336 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3334 def network_throughput_max_kbps @network_throughput_max_kbps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3341 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 |