Class: Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationStats
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DailyResourceUsageAggregationStats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Statistical aggregation of samples for a single resource usage.
Instance Attribute Summary collapse
-
#average ⇒ Float
Average usage value.
-
#median ⇒ Float
Median usage value.
-
#nintey_fifth_percentile ⇒ Float
95th percentile usage value.
-
#peak ⇒ Float
Peak usage value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DailyResourceUsageAggregationStats
constructor
A new instance of DailyResourceUsageAggregationStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DailyResourceUsageAggregationStats
Returns a new instance of DailyResourceUsageAggregationStats.
2158 2159 2160 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#average ⇒ Float
Average usage value.
Corresponds to the JSON property average
2141 2142 2143 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2141 def average @average end |
#median ⇒ Float
Median usage value.
Corresponds to the JSON property median
2146 2147 2148 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2146 def median @median end |
#nintey_fifth_percentile ⇒ Float
95th percentile usage value.
Corresponds to the JSON property ninteyFifthPercentile
2151 2152 2153 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2151 def nintey_fifth_percentile @nintey_fifth_percentile end |
#peak ⇒ Float
Peak usage value.
Corresponds to the JSON property peak
2156 2157 2158 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2156 def peak @peak end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2163 2164 2165 2166 2167 2168 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2163 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 |