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_UNSPECIFIEDUnknown
EQUALSEquals, case sensitive
EQUALS_CASE_INSENSITIVEEquals, case insensitive
CONTAINSContains, case sensitive
CONTAINS_CASE_INSENSITIVEContains, case insensitive
STARTS_WITHStarts with, case sensitive
STARTS_WITH_CASE_INSENSITIVEStarts with, case insensitive
ENDS_WITHEnds with, case sensitive
ENDS_WITH_CASE_INSENSITIVEEnds with, case insensitive
GREATER_THANGreater than
GREATER_THAN_OR_EQUALGreater than or equal
LESS_THANLess than
LESS_THAN_OR_EQUALLess than or equal
REGULAR_EXPRESSIONregular expression. Only supported for web streams.
REGULAR_EXPRESSION_CASE_INSENSITIVEregular expression, case insensitive. Only supported for web streams.