Class: Google::Apis::AnalyticsdataV1beta::Dimension
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsdataV1beta::Dimension
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsdata_v1beta/classes.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb,
lib/google/apis/analyticsdata_v1beta/representations.rb
Overview
Dimensions are attributes of your data. For example, the dimension city indicates the city from which an event originates. Dimension values in report responses are strings; for example, the city could be "Paris" or "New York". Requests are allowed up to 9 dimensions.
Instance Attribute Summary collapse
-
#dimension_expression ⇒ Google::Apis::AnalyticsdataV1beta::DimensionExpression
Used to express a dimension which is the result of a formula of multiple dimensions.
-
#name ⇒ String
The name of the dimension.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Dimension
constructor
A new instance of Dimension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Dimension
Returns a new instance of Dimension.
689 690 691 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimension_expression ⇒ Google::Apis::AnalyticsdataV1beta::DimensionExpression
Used to express a dimension which is the result of a formula of multiple
dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1,
symbol, dimension2).
Corresponds to the JSON property dimensionExpression
668 669 670 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 668 def dimension_expression @dimension_expression end |
#name ⇒ String
The name of the dimension. See the API Dimensions for the list
of dimension names supported by core reporting methods such as runReport
and
batchRunReports
. See Realtime Dimensions for the
list of dimension names supported by the runRealtimeReport
method. See
Funnel Dimensions for the list of dimension names
supported by the runFunnelReport
method. If dimensionExpression
is
specified, name
can be any string that you would like within the allowed
character set. For example if a dimensionExpression
concatenates country
and city
, you could call that dimension countryAndCity
. Dimension names
that you choose must match the regular expression ^[a-zA-Z0-9_]$
. Dimensions
are referenced by name
in dimensionFilter
, orderBys
,
dimensionExpression
, and pivots
.
Corresponds to the JSON property name
687 688 689 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 687 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
694 695 696 697 |
# File 'lib/google/apis/analyticsdata_v1beta/classes.rb', line 694 def update!(**args) @dimension_expression = args[:dimension_expression] if args.key?(:dimension_expression) @name = args[:name] if args.key?(:name) end |