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.



964
965
966
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 964

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



962
963
964
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 962

def utilization_percentage
  @utilization_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



969
970
971
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 969

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