class Google::Apis::AnalyticsV3::CustomMetric
JSON template for Analytics Custom Metric.
Attributes
Account
ID. Corresponds to the JSON property `accountId` @return [String]
Boolean indicating whether the custom metric is active. Corresponds to the JSON property `active` @return [Boolean]
Boolean indicating whether the custom metric is active. Corresponds to the JSON property `active` @return [Boolean]
Time the custom metric was created. Corresponds to the JSON property `created` @return [DateTime]
Custom metric ID. Corresponds to the JSON property `id` @return [String]
Index of the custom metric. Corresponds to the JSON property `index` @return [Fixnum]
Kind value for a custom metric. Set to “analytics#customMetric”. It is a read- only field. Corresponds to the JSON property `kind` @return [String]
Max value of custom metric. Corresponds to the JSON property `max_value` @return [String]
Min value of custom metric. Corresponds to the JSON property `min_value` @return [String]
Name of the custom metric. Corresponds to the JSON property `name` @return [String]
Parent link for the custom metric. Points to the property to which the custom metric belongs. Corresponds to the JSON property `parentLink` @return [Google::Apis::AnalyticsV3::CustomMetric::ParentLink]
Scope of the custom metric: HIT or PRODUCT. Corresponds to the JSON property `scope` @return [String]
Link for the custom metric Corresponds to the JSON property `selfLink` @return [String]
Data type of custom metric. Corresponds to the JSON property `type` @return [String]
Time the custom metric was last modified. Corresponds to the JSON property `updated` @return [DateTime]
Property ID. Corresponds to the JSON property `webPropertyId` @return [String]
Public Class Methods
# File lib/google/apis/analytics_v3/classes.rb, line 1122 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/analytics_v3/classes.rb, line 1127 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @active = args[:active] if args.key?(:active) @created = args[:created] if args.key?(:created) @id = args[:id] if args.key?(:id) @index = args[:index] if args.key?(:index) @kind = args[:kind] if args.key?(:kind) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @name = args[:name] if args.key?(:name) @parent_link = args[:parent_link] if args.key?(:parent_link) @scope = args[:scope] if args.key?(:scope) @self_link = args[:self_link] if args.key?(:self_link) @type = args[:type] if args.key?(:type) @updated = args[:updated] if args.key?(:updated) @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end