POST /{tenantAlias} and
POST /count/{tenantAlias} take a filterSet array of filters. Every filter in the array must
match. There is no OR.
Filter object
Operators
Property paths
Write the full path.
plan does not match properties.user.plan.
Types of value
The JSON type ofvalue must match the type of the property.
A string
value on a number property returns a type mismatch error. Read the error table on
this page.
Examples
Three filters, all of which must match:IN:
Errors
A bad filter returns an error body with oneerror string.
Read Query API for the status codes.
Rules for the client
- Write the full property path. Use
properties.user.plan, notplan. - Send
afterandbeforewith everyfilterSet. A date range limits the data that the server scans. - Put the most selective filter first.
- Use one
INfilter for several values of one property. Filters combine withAND, so twoEQUALSfilters on the same property match nothing. - To test a filter, count with the filter and count without it, then compare the two numbers. Read Count events.
- Make sure that
comparisonis one of the ten operators before you send the request.