Class: Google::Apis::MigrationcenterV1::MemoryUsageSample

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

Memory usage sample.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemoryUsageSample

Returns a new instance of MemoryUsageSample.



2915
2916
2917
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2915

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

Instance Attribute Details

#utilized_percentageFloat

Percentage of system memory utilized. Must be in the interval [0, 100]. Corresponds to the JSON property utilizedPercentage

Returns:

  • (Float)


2913
2914
2915
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2913

def utilized_percentage
  @utilized_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2920
2921
2922
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2920

def update!(**args)
  @utilized_percentage = args[:utilized_percentage] if args.key?(:utilized_percentage)
end