Segments can be created using rules. These rules are composed of three parts:
ruleId:
The name of the rule e.g. “sessionCounts”, “device”
operator:
The operation that should be performed on the value. Differs from rule to rule
value:
The actual value to apply to the rule
The complete list of rules and their allowed operators and values is as follows
durationThe total period the users device has had your app open (in seconds)
Allowed operators: greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqual
Value: Integer type
example:
JSON
{
"ruleId": "duration",
"operator": "greaterThanOrEqual",
"value": 4
}
deviceUsers operating device
Allowed operators: is
Value: Array of Strings. Allowed array strings are "IOS" and "ANDROID"
example:
JSON
{
"ruleId": "device",
"operator": "is",
"value": ["IOS"]
}