class Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric
A definition for a custom metric.
Attributes
Optional. Description for this custom dimension. Max length of 150 characters. Corresponds to the JSON property `description` @return [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. Corresponds to the JSON property `displayName` @return [String]
Required. The type for the custom metric's value. Corresponds to the JSON property `measurementUnit` @return [String]
Output only. Resource name for this CustomMetric resource. Format: properties/` property`/customMetrics/`customMetric` Corresponds to the JSON property `name` @return [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. Corresponds to the JSON property `parameterName` @return [String]
Required. Immutable. The scope of this custom metric. Corresponds to the JSON property `scope` @return [String]
Public Class Methods
# File lib/google/apis/analyticsadmin_v1alpha/classes.rb, line 862 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analyticsadmin_v1alpha/classes.rb, line 867 def update!(**args) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @measurement_unit = args[:measurement_unit] if args.key?(:measurement_unit) @name = args[:name] if args.key?(:name) @parameter_name = args[:parameter_name] if args.key?(:parameter_name) @scope = args[:scope] if args.key?(:scope) end