class Google::Apis::AnalyticsdataV1beta::PivotSelection
A pair of dimension names and values. Rows with this dimension pivot pair are ordered by the metric's value. For example if pivots = ““browser”, “Chrome”“ and metric_name = “Sessions”, then the rows will be sorted based on Sessions in Chrome. ———|———-|—————-|———-|—————- | Chrome | Chrome | Safari | Safari ———|———-|—————-|——- —|—————- Country | Sessions | Pages/Sessions | Sessions | Pages/ Sessions ———|———-|—————-|———-|—————- US | 2 | 2 | 3 | 1 ———|———-|—————-|———-|—————
-
Canada | 3 | 1 | 4 | 1 ———|———-|—————-|———-|—–
Attributes
Must be a dimension name from the request. Corresponds to the JSON property `dimensionName` @return [String]
Order by only when the named dimension is this value. Corresponds to the JSON property `dimensionValue` @return [String]
Public Class Methods
# File lib/google/apis/analyticsdata_v1beta/classes.rb, line 1334 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsdata_v1beta/classes.rb, line 1339 def update!(**args) @dimension_name = args[:dimension_name] if args.key?(:dimension_name) @dimension_value = args[:dimension_value] if args.key?(:dimension_value) end