Class: Google::Analytics::Data::V1alpha::Metric
- Inherits:
-
Object
- Object
- Google::Analytics::Data::V1alpha::Metric
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/analytics/data/v1alpha/data.rb
Overview
The quantitative measurements of a report. For example, the metric
eventCount
is the total number of events. Requests are allowed up to 10
metrics.
Instance Attribute Summary collapse
-
#expression ⇒ ::String
A mathematical expression for derived metrics.
-
#invisible ⇒ ::Boolean
Indicates if a metric is invisible in the report response.
-
#name ⇒ ::String
The name of the metric.
Instance Attribute Details
#expression ⇒ ::String
Returns A mathematical expression for derived metrics. For example, the metric
Event count per user is eventCount/totalUsers
.
157 158 159 160 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 157 class Metric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#invisible ⇒ ::Boolean
Returns 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
.
157 158 159 160 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 157 class Metric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The name of the metric. See the API 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
.
157 158 159 160 |
# File 'proto_docs/google/analytics/data/v1alpha/data.rb', line 157 class Metric include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |