Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventCreateRule
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventCreateRule
- 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
-
#destination_event ⇒ String
Required.
-
#event_conditions ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMatchingCondition>
Required.
-
#name ⇒ String
Output only.
-
#parameter_mutations ⇒ Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaParameterMutation>
Parameter mutations define parameter behavior on the new event, and are applied in order.
-
#source_copy_parameters ⇒ Boolean
(also: #source_copy_parameters?)
If true, the source parameters are copied to the new event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventCreateRule
constructor
A new instance of GoogleAnalyticsAdminV1alphaEventCreateRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaEventCreateRule
Returns a new instance of GoogleAnalyticsAdminV1alphaEventCreateRule.
3314 3315 3316 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3314 def initialize(**args) update!(**args) end |
Instance Attribute Details
#destination_event ⇒ String
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
3285 3286 3287 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3285 def destination_event @destination_event end |
#event_conditions ⇒ Array<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
3291 3292 3293 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3291 def event_conditions @event_conditions end |
#name ⇒ String
Output only. Resource name for this EventCreateRule resource. Format:
properties/property/dataStreams/data_stream/eventCreateRules/
event_create_rule
Corresponds to the JSON property name
3298 3299 3300 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3298 def name @name end |
#parameter_mutations ⇒ Array<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
3304 3305 3306 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3304 def parameter_mutations @parameter_mutations end |
#source_copy_parameters ⇒ Boolean 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
3311 3312 3313 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3311 def source_copy_parameters @source_copy_parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3319 3320 3321 3322 3323 3324 3325 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3319 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 |