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.
2169 2170 2171 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2169 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_average ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAverage
2088 2089 2090 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2088 def cpu_average @cpu_average end |
#cpu_average_percent ⇒ Fixnum
Average CPU usage, percent.
Corresponds to the JSON property cpuAveragePercent
2093 2094 2095 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2093 def cpu_average_percent @cpu_average_percent end |
#cpu_max ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMax
2098 2099 2100 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2098 def cpu_max @cpu_max end |
#cpu_max_percent ⇒ Fixnum
Max CPU usage, percent.
Corresponds to the JSON property cpuMaxPercent
2103 2104 2105 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2103 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
2108 2109 2110 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2108 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
2113 2114 2115 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2113 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
2118 2119 2120 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2118 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
2123 2124 2125 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2123 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
2128 2129 2130 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2128 def memory_average @memory_average end |
#memory_average_percent ⇒ Fixnum
Average memory usage, percent.
Corresponds to the JSON property memoryAveragePercent
2133 2134 2135 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2133 def memory_average_percent @memory_average_percent end |
#memory_max ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMax
2138 2139 2140 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2138 def memory_max @memory_max end |
#memory_max_percent ⇒ Fixnum
Max memory usage, percent.
Corresponds to the JSON property memoryMaxPercent
2143 2144 2145 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2143 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
2149 2150 2151 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2149 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
2155 2156 2157 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2155 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
2161 2162 2163 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2161 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
2167 2168 2169 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2167 def network_throughput_max_kbps @network_throughput_max_kbps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2174 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 |