Class: Google::Apis::MigrationcenterV1alpha1::MemoryUsageSample
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::MemoryUsageSample
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Memory usage sample.
Instance Attribute Summary collapse
-
#utilized_percentage ⇒ Float
Percentage of system memory utilized.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MemoryUsageSample
constructor
A new instance of MemoryUsageSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MemoryUsageSample
Returns a new instance of MemoryUsageSample.
4100 4101 4102 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#utilized_percentage ⇒ Float
Percentage of system memory utilized. Must be in the interval [0, 100].
Corresponds to the JSON property utilizedPercentage
4098 4099 4100 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4098 def utilized_percentage @utilized_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4105 4106 4107 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4105 def update!(**args) @utilized_percentage = args[:utilized_percentage] if args.key?(:utilized_percentage) end |