class Google::Apis::AnalyticsdataV1alpha::Dimension
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, city could be “Paris” or “New York”. Requests are allowed up to 8 dimensions.
Attributes
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` @return [Google::Apis::AnalyticsdataV1alpha::DimensionExpression]
The name of the dimension. See the [API Dimensions](developers.google. com/analytics/devguides/reporting/data/v1/api-schema#dimensions) for the list of dimension names. If `dimensionExpression` is specified, `name` can be any string that you would like. For example if a `dimensionExpression` concatenates `country` and `city`, you could call that dimension ` countryAndCity`. Dimensions are referenced by `name` in `dimensionFilter`, ` orderBys`, `dimensionExpression`, and `pivots`. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 424 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 429 def update!(**args) @dimension_expression = args[:dimension_expression] if args.key?(:dimension_expression) @name = args[:name] if args.key?(:name) end