Class: Google::Apis::AnalyticsdataV1alpha::PivotSelection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Must be a dimension name from the request. Corresponds to the JSON property dimensionName

Returns:

  • (String)


1156
1157
1158
# File 'generated/google/apis/analyticsdata_v1alpha/classes.rb', line 1156

def dimension_name
  @dimension_name
end

#dimension_valueString

Order by only when the named dimension is this value. Corresponds to the JSON property dimensionValue

Returns:

  • (String)


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