Class Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::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
---------|----------|----------------|----------|----------------

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#dimension_name

def dimension_name() -> ::String
Returns
  • (::String) — Must be a dimension name from the request.

#dimension_name=

def dimension_name=(value) -> ::String
Parameter
  • value (::String) — Must be a dimension name from the request.
Returns
  • (::String) — Must be a dimension name from the request.

#dimension_value

def dimension_value() -> ::String
Returns
  • (::String) — Order by only when the named dimension is this value.

#dimension_value=

def dimension_value=(value) -> ::String
Parameter
  • value (::String) — Order by only when the named dimension is this value.
Returns
  • (::String) — Order by only when the named dimension is this value.