Class: Google::Apis::MigrationcenterV1::AssetPerformanceData

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

Performance data for an asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssetPerformanceData

Returns a new instance of AssetPerformanceData.



539
540
541
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 539

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

Instance Attribute Details

#daily_resource_usage_aggregationsArray<Google::Apis::MigrationcenterV1::DailyResourceUsageAggregation>

Daily resource usage aggregations. Contains all of the data available for an asset, up to the last 40 days. Aggregations are sorted from oldest to most recent. Corresponds to the JSON property dailyResourceUsageAggregations



537
538
539
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 537

def daily_resource_usage_aggregations
  @daily_resource_usage_aggregations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



544
545
546
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 544

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