Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventMapping
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventMapping
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
Event setting conditions to match an event.
Instance Attribute Summary collapse
-
#event_name ⇒ String
Required.
-
#max_event_count ⇒ Fixnum
The maximum number of times the event occurred.
-
#max_event_value ⇒ Float
The maximum revenue generated due to the event.
-
#min_event_count ⇒ Fixnum
At least one of the following four min/max values must be set.
-
#min_event_value ⇒ Float
The minimum revenue generated due to the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventMapping
constructor
A new instance of GoogleAnalyticsAdminV1alphaEventMapping.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventMapping
Returns a new instance of GoogleAnalyticsAdminV1alphaEventMapping.
3297 3298 3299 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_name ⇒ String
Required. Name of the Google Analytics event. It must always be set. The max
allowed display name length is 40 UTF-16 code units.
Corresponds to the JSON property eventName
3268 3269 3270 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3268 def event_name @event_name end |
#max_event_count ⇒ Fixnum
The maximum number of times the event occurred. If not set, maximum event
count won't be checked.
Corresponds to the JSON property maxEventCount
3274 3275 3276 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3274 def max_event_count @max_event_count end |
#max_event_value ⇒ Float
The maximum revenue generated due to the event. Revenue currency will be
defined at the property level. If not set, maximum event value won't be
checked.
Corresponds to the JSON property maxEventValue
3281 3282 3283 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3281 def max_event_value @max_event_value end |
#min_event_count ⇒ Fixnum
At least one of the following four min/max values must be set. The values set
will be ANDed together to qualify an event. The minimum number of times the
event occurred. If not set, minimum event count won't be checked.
Corresponds to the JSON property minEventCount
3288 3289 3290 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3288 def min_event_count @min_event_count end |
#min_event_value ⇒ Float
The minimum revenue generated due to the event. Revenue currency will be
defined at the property level. If not set, minimum event value won't be
checked.
Corresponds to the JSON property minEventValue
3295 3296 3297 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3295 def min_event_value @min_event_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3302 3303 3304 3305 3306 3307 3308 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3302 def update!(**args) @event_name = args[:event_name] if args.key?(:event_name) @max_event_count = args[:max_event_count] if args.key?(:max_event_count) @max_event_value = args[:max_event_value] if args.key?(:max_event_value) @min_event_count = args[:min_event_count] if args.key?(:min_event_count) @min_event_value = args[:min_event_value] if args.key?(:min_event_value) end |