...
Code Block | ||||
---|---|---|---|---|
| ||||
"request": { "expId": "U1234", // Unique Id for Experiment "name": "USER_ORG", // Name for Experiment "createdBy": "User1", // Name of the user who created this experiment "description": "Experiment to get users to explore page ", // Short Description about the experiment "criteria": { // Criteria for the Experiment "type": "user", // Type of the Criteria "filters": { // ArrayPLEASE ofrefer Filtersthis Criterialink withfor Useruser Filtersearch field Name and List of Valuesfilters- http://docs.sunbird.org/latest/apis/userapi/#operation/Search%20User "organisations.orgName": ["sunbird"] // List of Values } }, "data" : { // Experiment Data "startDate" : "2019-08-01", // Start date of the Experiment "endDate" : "2019-08-02", // End date of the Experiment "key" : "/org/profile", // Experiment Key "client" : "portal" // name of the client (app/portal/desktop) } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
"request": { "expId": "D1234", // Unique Id for Experiment "name": "Device_STATE_AP", // Name for Experiment "createdBy": "User2", // Name of the user who created this experiment "description": "Experiment to get devices with state = AndhraPradesh", // Short Description about the experiment "criteria": { // Criteria for the Experiment "type": "device", // Type of the Criteria "filters": [ { // Array of Filters "name": "state", // Namestate offield thecritera field "operator": "IN", // Filter Operator - Supported Filters "value": ["Karnataka"]: [IN,EQ] "value": ["Karnataka"] // List of Values }, { "name": "city", // city field critera "operator": "IN", // Filter Operator - Supported Filters : [IN,EQ] "value": ["Bangalore"] // List of Values }, { "name": "first_access", // device field criteria "operator": "RANGE", // Filter Operator - Supported Filters : [RANGE,LT] "value": { "start": "2019-02-10", // List of Values"end": "2019-02-20" } ] }, "data" : { // Experiment Data "startDate" : "2019-08-01", // Start date of the Experiment "endDate" : "2019-08-02", // End date of the Experiment "key" : "3fksjfksdlfj", // Experiment Key "client" : "app" // name of the client (app/portal/desktop) } } |
Device Filter Criteria :
Output :
- Process the request and save the request parameters to Experiment-Definition Cassandra Table with status "SUBMITTED"
- Response : "Experiment Submitted Sucessfully "
...