Class: Google::Apis::ChromeuxreportV1::TimeseriesBin
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::TimeseriesBin
- 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
A bin is a discrete portion of data spanning from start to end, or if no end is given, then from start to +inf. A bin's start and end values are given in the value type of the metric it represents. For example, "first contentful paint" is measured in milliseconds and exposed as ints, therefore its metric bins will use int32s for its start and end types. However, "cumulative layout shift" is measured in unitless decimals and is exposed as a decimal encoded as a string, therefore its metric bins will use strings for its value type.
Instance Attribute Summary collapse
-
#densities ⇒ Array<Float>
The proportion of users that experienced this bin's value for the given metric in a given collection period; the index for each of these entries corresponds to an entry in the CollectionPeriods field in the HistoryRecord message, which describes when the density was observed in the field.
-
#end ⇒ Object
End is the end of the data bin.
-
#start ⇒ Object
Start is the beginning of the data bin.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeseriesBin
constructor
A new instance of TimeseriesBin.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeseriesBin
Returns a new instance of TimeseriesBin.
593 594 595 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 593 def initialize(**args) update!(**args) end |
Instance Attribute Details
#densities ⇒ Array<Float>
The proportion of users that experienced this bin's value for the given metric
in a given collection period; the index for each of these entries corresponds
to an entry in the CollectionPeriods field in the HistoryRecord message, which
describes when the density was observed in the field. Thus, the length of this
list of densities is equal to the length of the CollectionPeriods field in the
HistoryRecord message.
Corresponds to the JSON property densities
580 581 582 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 580 def densities @densities end |
#end ⇒ Object
End is the end of the data bin. If end is not populated, then the bin has no
end and is valid from start to +inf.
Corresponds to the JSON property end
586 587 588 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 586 def end @end end |
#start ⇒ Object
Start is the beginning of the data bin.
Corresponds to the JSON property start
591 592 593 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 591 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
598 599 600 601 602 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 598 def update!(**args) @densities = args[:densities] if args.key?(:densities) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |