class Google::Apis::AnalyticsdataV1alpha::PivotOrderBy

Sorts by a pivot column group.

Attributes

metric_name[RW]

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` @return [String]

pivot_selections[RW]

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` @return [Array<Google::Apis::AnalyticsdataV1alpha::PivotSelection>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 1139
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 1144
def update!(**args)
  @metric_name = args[:metric_name] if args.key?(:metric_name)
  @pivot_selections = args[:pivot_selections] if args.key?(:pivot_selections)
end