Filtering events
- Last UpdatedJul 22, 2024
- 1 minute read
To get only specific events, filters can be introduced before getting events from the event service. The filtering should be done before the StartRequestingEvent() method is called.
The following datatypes are supported when filtering the events.
-
Integer
-
Float
-
String
-
Bool
-
DateTime
-
Double
-
Short
-
Array
The following table shows the comparison types that are supported for filtering events.
Comparison keyword
Description
eq
Means EqualTo. Returns all the events matching the filtered criteria.
beginswith
Means StartsWith. Returns all the events matching the filtered criteria. Applies only to string data type filtering
lt
Means Lesser Than. Applies to all supported data types excluding string. It does not support arrays.
le
Means Lesser or Equal. Applies to all supported data types excluding string. It does not support arrays.
gt
Means Greater Than. Applies to all supported data types excluding string. It does not support arrays.
ge
Means Greater or Equal. Applies to all supported data types excluding string. It does not support arrays.
between
Checks will be made only to paired supplied values. Returns all the events matching the filtered criteria. It supports numeric and date data types.
neg, nbegins, nlt, nle, ngt, nge, nbetween
A keyword 'n' before the comparison keyword Means NOT of.