Creating a segment
Use segments to define a group of users or resources based on rules. Feature flags can target segments to deliver variants of a feature based on the needs like beta launches and experiments.
By default, the Segments pane displays the list of segments that are created in the current App Configuration service instance along with Name of the segment, tags, and date of creation.
Create a segment
To create a segment, complete these steps:
-
In the App Configuration console, click Segments.
-
Click Create. The side-panel opens with fields for creating a new segment.
-
Provide the segment details:
- Name - name of the segment.
- Description - add a description of the segment, which is optional.
- Optionally, define Tags that are required to identify with the segment.
- Specify a rule for including users to a segment in the Include user attributes in segment. For further details about adding users to a segment, refer here.
-
Click Create.
Adding user in a segment
Attributes specify the context of a request that you want to be evaluated as part of a decision. You can add user attributes in a segment by defining rules. You can define more than one rule.
To define a rule, at the time of creating or editing a segment, in Include user attributes in segment, add the following details:
-
Add an Attribute name. For example, the attribute may be email or part of user name.
-
Select an operator to be used for the evaluation from the list.
- starts with
- ends with
- is
- contains
- greater than
- greater than and equals
- less than
- less than and equals
-
Enter values for the operator selected.
-
Click Save rule.