MatchingCondition

Defines a condition for when an Event Edit or Event Creation rule applies to an event.

JSON representation
{
  "field": string,
  "comparisonType": enum (ComparisonType),
  "value": string,
  "negated": boolean
}
Fields
field

string

Required. The name of the field that is compared against for the condition. If 'eventName' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name.

This value cannot contain spaces.

comparisonType

enum (ComparisonType)

Required. The type of comparison to be applied to the value.

value

string

Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.

negated

boolean

Whether or not the result of the comparison should be negated. For example, if negated is true, then 'equals' comparisons would function as 'not equals'.

ComparisonType

Comparison type for matching condition

Enums
COMPARISON_TYPE_UNSPECIFIED Unknown
EQUALS Equals, case sensitive
EQUALS_CASE_INSENSITIVE Equals, case insensitive
CONTAINS Contains, case sensitive
CONTAINS_CASE_INSENSITIVE Contains, case insensitive
STARTS_WITH Starts with, case sensitive
STARTS_WITH_CASE_INSENSITIVE Starts with, case insensitive
ENDS_WITH Ends with, case sensitive
ENDS_WITH_CASE_INSENSITIVE Ends with, case insensitive
GREATER_THAN Greater than
GREATER_THAN_OR_EQUAL Greater than or equal
LESS_THAN Less than
LESS_THAN_OR_EQUAL Less than or equal
REGULAR_EXPRESSION regular expression. Only supported for web streams.
REGULAR_EXPRESSION_CASE_INSENSITIVE regular expression, case insensitive. Only supported for web streams.