Class: Google::Apis::MigrationcenterV1::DailyResourceUsageAggregationCpu

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

Statistical aggregation of CPU usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DailyResourceUsageAggregationCpu

Returns a new instance of DailyResourceUsageAggregationCpu.



994
995
996
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 994

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

Instance Attribute Details

#utilization_percentageGoogle::Apis::MigrationcenterV1::DailyResourceUsageAggregationStats

Statistical aggregation of samples for a single resource usage. Corresponds to the JSON property utilizationPercentage



992
993
994
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 992

def utilization_percentage
  @utilization_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



999
1000
1001
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 999

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