Class: Google::Apis::VmmigrationV1alpha1::VmUtilizationMetrics

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmUtilizationMetrics

Returns a new instance of VmUtilizationMetrics.



3188
3189
3190
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3188

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

Instance Attribute Details

#cpu_averageFixnum

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

Returns:

  • (Fixnum)


3107
3108
3109
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3107

def cpu_average
  @cpu_average
end

#cpu_average_percentFixnum

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

Returns:

  • (Fixnum)


3112
3113
3114
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3112

def cpu_average_percent
  @cpu_average_percent
end

#cpu_maxFixnum

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

Returns:

  • (Fixnum)


3117
3118
3119
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3117

def cpu_max
  @cpu_max
end

#cpu_max_percentFixnum

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

Returns:

  • (Fixnum)


3122
3123
3124
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3122

def cpu_max_percent
  @cpu_max_percent
end

#disk_io_rate_averageFixnum

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

Returns:

  • (Fixnum)


3127
3128
3129
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3127

def disk_io_rate_average
  @disk_io_rate_average
end

#disk_io_rate_average_kbpsFixnum

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

Returns:

  • (Fixnum)


3132
3133
3134
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3132

def disk_io_rate_average_kbps
  @disk_io_rate_average_kbps
end

#disk_io_rate_maxFixnum

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

Returns:

  • (Fixnum)


3137
3138
3139
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3137

def disk_io_rate_max
  @disk_io_rate_max
end

#disk_io_rate_max_kbpsFixnum

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

Returns:

  • (Fixnum)


3142
3143
3144
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3142

def disk_io_rate_max_kbps
  @disk_io_rate_max_kbps
end

#memory_averageFixnum

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

Returns:

  • (Fixnum)


3147
3148
3149
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3147

def memory_average
  @memory_average
end

#memory_average_percentFixnum

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

Returns:

  • (Fixnum)


3152
3153
3154
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3152

def memory_average_percent
  @memory_average_percent
end

#memory_maxFixnum

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

Returns:

  • (Fixnum)


3157
3158
3159
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3157

def memory_max
  @memory_max
end

#memory_max_percentFixnum

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

Returns:

  • (Fixnum)


3162
3163
3164
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3162

def memory_max_percent
  @memory_max_percent
end

#network_throughput_averageFixnum

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

Returns:

  • (Fixnum)


3168
3169
3170
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3168

def network_throughput_average
  @network_throughput_average
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)


3174
3175
3176
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3174

def network_throughput_average_kbps
  @network_throughput_average_kbps
end

#network_throughput_maxFixnum

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

Returns:

  • (Fixnum)


3180
3181
3182
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3180

def network_throughput_max
  @network_throughput_max
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)


3186
3187
3188
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3186

def network_throughput_max_kbps
  @network_throughput_max_kbps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3193

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