Class: Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::PivotSelection
- Inherits:
-
Object
- Object
- Google::Analytics::Data::V1beta::OrderBy::PivotOrderBy::PivotSelection
- 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
-
#dimension_name ⇒ ::String
Must be a dimension name from the request.
-
#dimension_value ⇒ ::String
Order by only when the named dimension is this value.
Instance Attribute Details
#dimension_name ⇒ ::String
Returns Must be a dimension name from the request.
484 485 486 487 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 484 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.
484 485 486 487 |
# File 'proto_docs/google/analytics/data/v1beta/data.rb', line 484 class PivotSelection include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |