Class: Google::Apis::ChromeuxreportV1::FractionTimeseries
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::FractionTimeseries
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromeuxreport_v1/classes.rb,
lib/google/apis/chromeuxreport_v1/representations.rb,
lib/google/apis/chromeuxreport_v1/representations.rb
Overview
For enum metrics, provides fraction timeseries which add up to approximately 1. 0 per entry (k-th element into the repeated fractions field for any k <= len) across fraction_timeseries.
Instance Attribute Summary collapse
-
#fractions ⇒ Array<Float>
Values between 0.0 and 1.0 (inclusive) and NaN.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FractionTimeseries
constructor
A new instance of FractionTimeseries.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FractionTimeseries
Returns a new instance of FractionTimeseries.
155 156 157 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 155 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fractions ⇒ Array<Float>
Values between 0.0 and 1.0 (inclusive) and NaN.
Corresponds to the JSON property fractions
153 154 155 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 153 def fractions @fractions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
160 161 162 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 160 def update!(**args) @fractions = args[:fractions] if args.key?(:fractions) end |