Class: Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::PivotSelection

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/analytics/data/v1beta/data.rb

Overview

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
---------|----------|----------------|----------|----------------

Instance Attribute Summary collapse

Instance Attribute Details

#dimension_name::String

Returns Must be a dimension name from the request.

Returns:

  • (::String)

    Must be a dimension name from the request.



475
476
477
478
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 475

class PivotSelection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#dimension_value::String

Returns Order by only when the named dimension is this value.

Returns:

  • (::String)

    Order by only when the named dimension is this value.



475
476
477
478
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 475

class PivotSelection
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end