Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventCreateRule

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

An Event Create Rule defines conditions that will trigger the creation of an entirely new event based upon matched criteria of a source event. Additional mutations of the parameters from the source event can be defined. Unlike Event Edit rules, Event Creation Rules have no defined order. They will all be run independently. Event Edit and Event Create rules can't be used to modify an event created from an Event Create rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventCreateRule

Returns a new instance of GoogleAnalyticsAdminV1alphaEventCreateRule.



3241
3242
3243
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3241

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

Instance Attribute Details

#destination_eventString

Required. The name of the new event to be created. This value must: * be less than 40 characters * consist only of letters, digits or _ (underscores) * start with a letter Corresponds to the JSON property destinationEvent

Returns:

  • (String)


3212
3213
3214
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3212

def destination_event
  @destination_event
end

#event_conditionsArray<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMatchingCondition>

Required. Must have at least one condition, and can have up to 10 max. Conditions on the source event must match for this rule to be applied. Corresponds to the JSON property eventConditions



3218
3219
3220
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3218

def event_conditions
  @event_conditions
end

#nameString

Output only. Resource name for this EventCreateRule resource. Format: properties/property/dataStreams/data_stream/eventCreateRules/ event_create_rule Corresponds to the JSON property name

Returns:

  • (String)


3225
3226
3227
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3225

def name
  @name
end

#parameter_mutationsArray<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaParameterMutation>

Parameter mutations define parameter behavior on the new event, and are applied in order. A maximum of 20 mutations can be applied. Corresponds to the JSON property parameterMutations



3231
3232
3233
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3231

def parameter_mutations
  @parameter_mutations
end

#source_copy_parametersBoolean Also known as: source_copy_parameters?

If true, the source parameters are copied to the new event. If false, or unset, all non-internal parameters are not copied from the source event. Parameter mutations are applied after the parameters have been copied. Corresponds to the JSON property sourceCopyParameters

Returns:

  • (Boolean)


3238
3239
3240
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3238

def source_copy_parameters
  @source_copy_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3246
3247
3248
3249
3250
3251
3252
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3246

def update!(**args)
  @destination_event = args[:destination_event] if args.key?(:destination_event)
  @event_conditions = args[:event_conditions] if args.key?(:event_conditions)
  @name = args[:name] if args.key?(:name)
  @parameter_mutations = args[:parameter_mutations] if args.key?(:parameter_mutations)
  @source_copy_parameters = args[:source_copy_parameters] if args.key?(:source_copy_parameters)
end