Loading...
Loading...
Compare original and translation side by side
create-experimentstart-experiment-iterationget-experimentlist-experimentsupdate-experimentcreate-metriclist-metricscreate-experimentstart-experiment-iterationget-experimentlist-experimentsupdate-experimentcreate-metriclist-metricslist-metricscreate-metric| Goal | Metric Type | Example |
|---|---|---|
| Conversion | Custom conversion | |
| Performance | Custom numeric | |
| Engagement | Custom conversion | |
| Revenue | Custom numeric | |
list-metricscreate-metric| 目标 | 指标类型 | 示例 |
|---|---|---|
| 转化 | 自定义转化 | |
| 性能 | 自定义数值 | |
| 参与度 | 自定义转化 | |
| 收入 | 自定义数值 | |
create-experimentprojectKeyenvironmentKeynameflagKeymetricskeyisGrouptreatmentsnamebaselineparametersholdout{
"projectKey": "my-project",
"environmentKey": "production",
"name": "Checkout Flow v2 Experiment",
"flagKey": "checkout-flow-v2",
"metrics": [
{"key": "checkout-completed", "isGroup": false},
{"key": "checkout-time-seconds", "isGroup": false}
],
"treatments": [
{
"name": "Control",
"baseline": true,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-a-id"
}
},
{
"name": "New Checkout",
"baseline": false,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-b-id"
}
}
]
}create-experimentprojectKeyenvironmentKeynameflagKeymetricskeyisGrouptreatmentsnamebaselineparametersholdout{
"projectKey": "my-project",
"environmentKey": "production",
"name": "Checkout Flow v2 Experiment",
"flagKey": "checkout-flow-v2",
"metrics": [
{"key": "checkout-completed", "isGroup": false},
{"key": "checkout-time-seconds", "isGroup": false}
],
"treatments": [
{
"name": "Control",
"baseline": true,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-a-id"
}
},
{
"name": "New Checkout",
"baseline": false,
"parameters": {
"flagKey": "checkout-flow-v2",
"variationId": "variation-b-id"
}
}
]
}start-experiment-iteration{
"projectKey": "my-project",
"environmentKey": "production",
"experimentKey": "checkout-flow-v2-experiment"
}reshuffle: truestart-experiment-iteration{
"projectKey": "my-project",
"environmentKey": "production",
"experimentKey": "checkout-flow-v2-experiment"
}reshuffle: trueget-experimentget-experiment| Situation | Action |
|---|---|
| Metric doesn't exist | Create it first with |
| Flag has no variations | Create flag variations before setting up treatments |
| Experiment already exists | Use |
| Need to change metrics mid-experiment | Stop the current iteration, update, then start a new one |
| 场景 | 操作 |
|---|---|
| 指标不存在 | 先使用 |
| 标志无变体 | 设置变体前先创建功能标志变体 |
| 实验已存在 | 使用 |
| 实验中途需要修改指标 | 停止当前迭代,更新实验,然后启动新迭代 |
baseline: truebaseline: true