Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction :

Design Flow :

Experiment Definition Schema:


FieldtypeDescription
1experiment_idStringunique id for experiment
2experiment_nameStringname of the experiment
3channelStringexperiment channel(portal/app/Desktop)
4start_dateTimestampstart date of the experiment
5end_dateTimestampend date of the experiment
6user_countLongno of users mapped to the experiment
7device_countLongno of devices mapped to the experiment
8experiment_mappedBooleanflag to check if the experiment is already mapped


Experiment Data Product :

Purpose

  • To compute the user experiment mapping based on the experiment criteria and save it to elastic search

Inputs

  • Experiment_Definition Cassandra Table
  • Experiment Criteria Config

User Criteria Config

UserCriteriaConfig
{
  "experiments": [
    {
      "exp_id": {
        "criteria": {
          "type": "user",
          "channel": "app/portal/desktop",
          "request": {
            "filters": {
              "organisations.orgName": [
                "sunbird"
              ],
              "framework.board": [
                "CBSE"
              ]
            }
          }
        }
      }
    },
    {
      "exp_id": {
        "criteria": {
          "type": "user",
          "channel": "app/portal/desktop",
          "request": {
            "filters": {
              "emailVerified": true
            }
          }
        }
      }
    }
  ]
}


Device Criteria Config

DeviceCriteriaConfig
{
  "exp_id": {
    "criteria": {
      "type": "device",
      "channel": "app/portal/desktop",
      "request": {
        "filters": [
          {
            "name": "state",
            "operator": "IN",
            "value": [
              "Karnataka"
            ]
          },
          {
            "name": "first_access",
            "operator": "GT",
            "value": "2019-07-17"
          }
        ]
      }
    }
  }
}


Outputs

  • user experiment mapping  index to elastic search
    user/device id
    experiment id.
    experiment joined date
    experiment exit date.




  • No labels