Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::CustomMetric.
A definition for a custom metric.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#description
def description() -> ::String
- (::String) — Optional. Description for this custom dimension. Max length of 150 characters.
#description=
def description=(value) -> ::String
- value (::String) — Optional. Description for this custom dimension. Max length of 150 characters.
- (::String) — Optional. Description for this custom dimension. Max length of 150 characters.
#display_name
def display_name() -> ::String
- (::String) — Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
#display_name=
def display_name=(value) -> ::String
- value (::String) — Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
- (::String) — Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
#measurement_unit
def measurement_unit() -> ::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit
- (::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit) — Required. The type for the custom metric's value.
#measurement_unit=
def measurement_unit=(value) -> ::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit
- value (::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit) — Required. The type for the custom metric's value.
- (::Google::Analytics::Admin::V1alpha::CustomMetric::MeasurementUnit) — Required. The type for the custom metric's value.
#name
def name() -> ::String
- (::String) — Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
#parameter_name
def parameter_name() -> ::String
-
(::String) — Required. Immutable. Tagging name for this custom metric.
If this is an event-scoped metric, then this is the event parameter name.
May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
#parameter_name=
def parameter_name=(value) -> ::String
-
value (::String) — Required. Immutable. Tagging name for this custom metric.
If this is an event-scoped metric, then this is the event parameter name.
May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
-
(::String) — Required. Immutable. Tagging name for this custom metric.
If this is an event-scoped metric, then this is the event parameter name.
May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
#restricted_metric_type
def restricted_metric_type() -> ::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>
- (::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>) — Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
#restricted_metric_type=
def restricted_metric_type=(value) -> ::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>
- value (::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>) — Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
- (::Array<::Google::Analytics::Admin::V1alpha::CustomMetric::RestrictedMetricType>) — Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
#scope
def scope() -> ::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope
- (::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope) — Required. Immutable. The scope of this custom metric.
#scope=
def scope=(value) -> ::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope
- value (::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope) — Required. Immutable. The scope of this custom metric.
- (::Google::Analytics::Admin::V1alpha::CustomMetric::MetricScope) — Required. Immutable. The scope of this custom metric.