Reference documentation and code samples for the Google Analytics Data V1alpha API class Google::Analytics::Data::V1alpha::MetricMetadata.
Explains a metric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#api_name
def api_name() -> ::String
Returns
-
(::String) — A metric name. Useable in Metric's
name
. For example,eventCount
.
#api_name=
def api_name=(value) -> ::String
Parameter
-
value (::String) — A metric name. Useable in Metric's
name
. For example,eventCount
.
Returns
-
(::String) — A metric name. Useable in Metric's
name
. For example,eventCount
.
#custom_definition
def custom_definition() -> ::Boolean
Returns
- (::Boolean) — True if the metric is a custom metric for this property.
#custom_definition=
def custom_definition=(value) -> ::Boolean
Parameter
- value (::Boolean) — True if the metric is a custom metric for this property.
Returns
- (::Boolean) — True if the metric is a custom metric for this property.
#deprecated_api_names
def deprecated_api_names() -> ::Array<::String>
Returns
-
(::Array<::String>) — Still usable but deprecated names for this metric. If populated, this
metric is available by either
apiName
or one ofdeprecatedApiNames
for a period of time. After the deprecation period, the metric will be available only byapiName
.
#deprecated_api_names=
def deprecated_api_names=(value) -> ::Array<::String>
Parameter
-
value (::Array<::String>) — Still usable but deprecated names for this metric. If populated, this
metric is available by either
apiName
or one ofdeprecatedApiNames
for a period of time. After the deprecation period, the metric will be available only byapiName
.
Returns
-
(::Array<::String>) — Still usable but deprecated names for this metric. If populated, this
metric is available by either
apiName
or one ofdeprecatedApiNames
for a period of time. After the deprecation period, the metric will be available only byapiName
.
#description
def description() -> ::String
Returns
- (::String) — Description of how this metric is used and calculated.
#description=
def description=(value) -> ::String
Parameter
- value (::String) — Description of how this metric is used and calculated.
Returns
- (::String) — Description of how this metric is used and calculated.
#expression
def expression() -> ::String
Returns
-
(::String) — The mathematical expression for this derived metric. Can be used in
Metric's
expression
field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.
#expression=
def expression=(value) -> ::String
Parameter
-
value (::String) — The mathematical expression for this derived metric. Can be used in
Metric's
expression
field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.
Returns
-
(::String) — The mathematical expression for this derived metric. Can be used in
Metric's
expression
field for equivalent reports. Most metrics are not expressions, and for non-expressions, this field is empty.
#type
def type() -> ::Google::Analytics::Data::V1alpha::MetricType
Returns
- (::Google::Analytics::Data::V1alpha::MetricType) — The type of this metric.
#type=
def type=(value) -> ::Google::Analytics::Data::V1alpha::MetricType
Parameter
- value (::Google::Analytics::Data::V1alpha::MetricType) — The type of this metric.
Returns
- (::Google::Analytics::Data::V1alpha::MetricType) — The type of this metric.
#ui_name
def ui_name() -> ::String
Returns
-
(::String) — This metric's name within the Google Analytics user interface. For example,
Event count
.
#ui_name=
def ui_name=(value) -> ::String
Parameter
-
value (::String) — This metric's name within the Google Analytics user interface. For example,
Event count
.
Returns
-
(::String) — This metric's name within the Google Analytics user interface. For example,
Event count
.