class Google::Apis::AnalyticsdataV1alpha::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 ———|———-|—————-|———-|—————


Attributes

dimension_name[RW]

Must be a dimension name from the request. Corresponds to the JSON property `dimensionName` @return [String]

dimension_value[RW]

Order by only when the named dimension is this value. Corresponds to the JSON property `dimensionValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 1173
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 1178
def update!(**args)
  @dimension_name = args[:dimension_name] if args.key?(:dimension_name)
  @dimension_value = args[:dimension_value] if args.key?(:dimension_value)
end