class Google::Apis::AnalyticsdataV1alpha::Metric
The quantitative measurements of a report. For example, the metric `eventCount` is the total number of events. Requests are allowed up to 10 metrics.
Attributes
A mathematical expression for derived metrics. For example, the metric Event count per user is `eventCount/totalUsers`. Corresponds to the JSON property `expression` @return [String]
Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in `metricFilter`, `orderBys`, or a metric `expression`. Corresponds to the JSON property `invisible` @return [Boolean]
Indicates if a metric is invisible in the report response. If a metric is invisible, the metric will not produce a column in the response, but can be used in `metricFilter`, `orderBys`, or a metric `expression`. Corresponds to the JSON property `invisible` @return [Boolean]
The name of the metric. See the [API Metrics](developers.google.com/ analytics/devguides/reporting/data/v1/api-schema#metrics) for the list of metric names. If `expression` is specified, `name` can be any string that you would like. For example if `expression` is `screenPageViews/sessions`, you could call that metric's name = `viewsPerSession`. Metrics are referenced by ` name` in `metricFilter`, `orderBys`, and metric `expression`. Corresponds to the JSON property `name` @return [String]
Public Class Methods
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 792 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsdata_v1alpha/classes.rb, line 797 def update!(**args) @expression = args[:expression] if args.key?(:expression) @invisible = args[:invisible] if args.key?(:invisible) @name = args[:name] if args.key?(:name) end