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.



3192
3193
3194
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3192

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)


3163
3164
3165
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3163

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



3169
3170
3171
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3169

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)


3176
3177
3178
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3176

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



3182
3183
3184
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3182

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)


3189
3190
3191
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3189

def source_copy_parameters
  @source_copy_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3197
3198
3199
3200
3201
3202
3203
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3197

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