Class: Google::Apis::MigrationcenterV1::CpuUsageSample
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::CpuUsageSample
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
CPU usage sample.
Instance Attribute Summary collapse
-
#utilized_percentage ⇒ Float
Percentage of total CPU capacity utilized.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CpuUsageSample
constructor
A new instance of CpuUsageSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CpuUsageSample
Returns a new instance of CpuUsageSample.
883 884 885 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 883 def initialize(**args) update!(**args) end |
Instance Attribute Details
#utilized_percentage ⇒ Float
Percentage of total CPU capacity utilized. Must be in the interval [0, 100].
On most systems can be calculated using 100 - idle percentage.
Corresponds to the JSON property utilizedPercentage
881 882 883 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 881 def utilized_percentage @utilized_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
888 889 890 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 888 def update!(**args) @utilized_percentage = args[:utilized_percentage] if args.key?(:utilized_percentage) end |