Class: Google::Apis::MigrationcenterV1::DailyResourceUsageAggregationStats

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 samples for a single resource usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DailyResourceUsageAggregationStats

Returns a new instance of DailyResourceUsageAggregationStats.



1453
1454
1455
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1453

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

Instance Attribute Details

#averageFloat

Average usage value. Corresponds to the JSON property average

Returns:

  • (Float)


1436
1437
1438
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1436

def average
  @average
end

#medianFloat

Median usage value. Corresponds to the JSON property median

Returns:

  • (Float)


1441
1442
1443
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1441

def median
  @median
end

#nintey_fifth_percentileFloat

95th percentile usage value. Corresponds to the JSON property ninteyFifthPercentile

Returns:

  • (Float)


1446
1447
1448
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1446

def nintey_fifth_percentile
  @nintey_fifth_percentile
end

#peakFloat

Peak usage value. Corresponds to the JSON property peak

Returns:

  • (Float)


1451
1452
1453
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1451

def peak
  @peak
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1458
1459
1460
1461
1462
1463
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1458

def update!(**args)
  @average = args[:average] if args.key?(:average)
  @median = args[:median] if args.key?(:median)
  @nintey_fifth_percentile = args[:nintey_fifth_percentile] if args.key?(:nintey_fifth_percentile)
  @peak = args[:peak] if args.key?(:peak)
end