Class: Google::Apis::AnalyticsdataV1alpha::PivotOrderBy
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1alpha::PivotOrderBy
- 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
Sorts by a pivot column group.
Instance Attribute Summary collapse
-
#metric_name ⇒ String
In the response to order by, order rows by this column.
-
#pivot_selections ⇒ Array<Google::Apis::AnalyticsdataV1alpha::PivotSelection>
Used to select a dimension name and value pivot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PivotOrderBy
constructor
A new instance of PivotOrderBy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PivotOrderBy
Returns a new instance of PivotOrderBy.
1129 1130 1131 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1129 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metric_name ⇒ String
In the response to order by, order rows by this column. Must be a metric name
from the request.
Corresponds to the JSON property metricName
1120 1121 1122 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1120 def metric_name @metric_name end |
#pivot_selections ⇒ Array<Google::Apis::AnalyticsdataV1alpha::PivotSelection>
Used to select a dimension name and value pivot. If multiple pivot selections
are given, the sort occurs on rows where all pivot selection dimension name
and value pairs match the row's dimension name and value pair.
Corresponds to the JSON property pivotSelections
1127 1128 1129 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1127 def pivot_selections @pivot_selections end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1134 1135 1136 1137 |
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1134 def update!(**args) @metric_name = args[:metric_name] if args.key?(:metric_name) @pivot_selections = args[:pivot_selections] if args.key?(:pivot_selections) end |