Class: Google::Apis::ChromeuxreportV1::FractionTimeseries

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#fractionsArray<Float>

Values between 0.0 and 1.0 (inclusive) and NaN. Corresponds to the JSON property fractions

Returns:

  • (Array<Float>)


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