Modify Experiment Settings
In the Settings Details Page, click 'More Actions' -> 'Edit Settings'
In the Edit Experiment Page, you can edit the randomization_key
, the list of segmenters
and their variable mappings.
When modifying settings, please take note of the following pointers:
Segmenters with asterisk(*) are required segmenters that cannot be removed from the selected list.
Removing Segmenters will not be allowed when there are 1 or more 'active' and 'yet-to-end' experiments that are not defined granularly enough.
The following scenario is an example:
Currently selected segmenters:
country
,service
Currently created experiments:
Suppose we want to remove
service
segmenter from the project, this would make it impossible to distinguish between both experiments when XP tries to fetch a treatment because the only segmenter iscountry
and both experiments have the same value, i.e,SG
in this case.
Edit Validation
Validation configuration can be edited and configuration can be tested in the playground provided in the Edit Validation View. Both External Validation URL and Treatment Validation Rules can be left blank.
From the Validation Detail page, click 'More Actions' -> 'Configure Validation'.
Edit Validation Page
External Validation: URL of external validation to validate experiments.
Note that the external validation endpoint will be called whenever experiments or treatments are created or edited. XP will send a POST request to the following HTTP endpoint with the following payload that has to be handled by the custom web service:
A response with status code of 200 will be deemed as successful. A timeout of 5 seconds is also configured to treat any hanging call to the validation URL as a failure.
Treatment Validation Rules: Rules, specified in the form of Go Templates, used to validate treatment configuration of experiments. In addition to the default Go Template operations, those from the Sprig library are also supported. All rules will be evaluated on the treatment configuration and must return
true
for the operation to be permitted. Some examples below.
To test that the data satisfies one of the following conditions:
.field1
="abc"
and.field2
="def"
and.field3.field4
is of typefloat
(OR)
.field1
="xyz"
and.field2
="def"
and.field3.field4
is of typeint
To test that a certain property weight
in an array field .config_details.models
sums to 1 across all elements:
Creating or Updating an Experiment
Sample experiment schema:
The entire experiment will be sent to the validation url for validation
Each treatment configuration within the experiment will be validated with all of the treatment validation rules
Both of these conditions must be fulfilled before the experiment can be created or updated successfully.
Creating or Updating a Treatment
Sample treatment schema:
The treatment configuration will be sent to the validation url for validation
The treatment configuration will be validated with all of the treatment validation rules
Both of these conditions must be fulfilled before the treatment can be created or updated successfully.
Validation Playground
To test entities such as treatment configuration, before saving them, you can access the validation playground page by clicking the blue button Playground
at the top right hand corner of the Edit Validation Page
.
External Validation: Select the
External Validation
radio button underValidation Type
and fill in theSample Data
text field with a sample payload that you would like to send your validation url.Treatment Validation Rules: Select the
Treatment Validation Rules
radio button underValidation Type
and fill in theSample Data
text field with a treatment configuration that you would like to validate against the treatment validation rules.
Click on validate once you are done to perform the validation.
Last updated