class Google::Apis::AnalyticsdataV1beta::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 9 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::AnalyticsdataV1beta::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 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` @return [String]
Public Class Methods
# File lib/google/apis/analyticsdata_v1beta/classes.rb, line 490 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsdata_v1beta/classes.rb, line 495 def update!(**args) @dimension_expression = args[:dimension_expression] if args.key?(:dimension_expression) @name = args[:name] if args.key?(:name) end