Class: Google::Apis::AnalyticsdataV1alpha::PivotSelection
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::PivotSelection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsdata_v1alpha/classes.rb,
generated/google/apis/analyticsdata_v1alpha/representations.rb,
generated/google/apis/analyticsdata_v1alpha/representations.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 Method Summary collapse
-
#initialize(**args) ⇒ PivotSelection
constructor
A new instance of PivotSelection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PivotSelection
Returns a new instance of PivotSelection.
1163 1164 1165 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1163 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimension_name ⇒ String
Must be a dimension name from the request.
Corresponds to the JSON property dimensionName
1156 1157 1158 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1156 def dimension_name @dimension_name end |
#dimension_value ⇒ String
Order by only when the named dimension is this value.
Corresponds to the JSON property dimensionValue
1161 1162 1163 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1161 def dimension_value @dimension_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1168 1169 1170 1171 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1168 def update!(**args) @dimension_name = args[:dimension_name] if args.key?(:dimension_name) @dimension_value = args[:dimension_value] if args.key?(:dimension_value) end |