Class: Google::Apis::VmmigrationV1::VmUtilizationMetrics

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmUtilizationMetrics

Returns a new instance of VmUtilizationMetrics.



4538
4539
4540
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4538

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cpu_average_percentFixnum

Average CPU usage, percent. Corresponds to the JSON property cpuAveragePercent

Returns:

  • (Fixnum)


4499
4500
4501
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4499

def cpu_average_percent
  @cpu_average_percent
end

#cpu_max_percentFixnum

Max CPU usage, percent. Corresponds to the JSON property cpuMaxPercent

Returns:

  • (Fixnum)


4504
4505
4506
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4504

def cpu_max_percent
  @cpu_max_percent
end

#disk_io_rate_average_kbpsFixnum

Average disk IO rate, in kilobytes per second. Corresponds to the JSON property diskIoRateAverageKbps

Returns:

  • (Fixnum)


4509
4510
4511
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4509

def disk_io_rate_average_kbps
  @disk_io_rate_average_kbps
end

#disk_io_rate_max_kbpsFixnum

Max disk IO rate, in kilobytes per second. Corresponds to the JSON property diskIoRateMaxKbps

Returns:

  • (Fixnum)


4514
4515
4516
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4514

def disk_io_rate_max_kbps
  @disk_io_rate_max_kbps
end

#memory_average_percentFixnum

Average memory usage, percent. Corresponds to the JSON property memoryAveragePercent

Returns:

  • (Fixnum)


4519
4520
4521
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4519

def memory_average_percent
  @memory_average_percent
end

#memory_max_percentFixnum

Max memory usage, percent. Corresponds to the JSON property memoryMaxPercent

Returns:

  • (Fixnum)


4524
4525
4526
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4524

def memory_max_percent
  @memory_max_percent
end

#network_throughput_average_kbpsFixnum

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second. Corresponds to the JSON property networkThroughputAverageKbps

Returns:

  • (Fixnum)


4530
4531
4532
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4530

def network_throughput_average_kbps
  @network_throughput_average_kbps
end

#network_throughput_max_kbpsFixnum

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second. Corresponds to the JSON property networkThroughputMaxKbps

Returns:

  • (Fixnum)


4536
4537
4538
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4536

def network_throughput_max_kbps
  @network_throughput_max_kbps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4543

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