Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudienceEventTrigger

Inherits:
Object
  • Object
show all
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

Specifies an event to log when a user joins the Audience.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaAudienceEventTrigger

Returns a new instance of GoogleAnalyticsAdminV1alphaAudienceEventTrigger.



1222
1223
1224
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1222

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#event_nameString

Required. The event name that will be logged. Corresponds to the JSON property eventName

Returns:

  • (String)


1215
1216
1217
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1215

def event_name
  @event_name
end

#log_conditionString

Required. When to log the event. Corresponds to the JSON property logCondition

Returns:

  • (String)


1220
1221
1222
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1220

def log_condition
  @log_condition
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1227
1228
1229
1230
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1227

def update!(**args)
  @event_name = args[:event_name] if args.key?(:event_name)
  @log_condition = args[:log_condition] if args.key?(:log_condition)
end