2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"strategies": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"description": "Default on or off Strategy.",
|
|
|
|
"parameters": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "usersWithEmail",
|
|
|
|
"description": "Active for users defined in the comma-separated emails-parameter.",
|
|
|
|
"parameters": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "emails",
|
|
|
|
"type": "string"
|
2017-11-16 16:45:01 +01:00
|
|
|
}
|
2018-11-22 11:20:28 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2020-02-27 21:26:18 +01:00
|
|
|
"contextFields": [
|
|
|
|
{ "name": "environment" },
|
|
|
|
{ "name": "userId" },
|
|
|
|
{ "name": "appNam" }
|
|
|
|
],
|
2018-11-22 11:20:28 +01:00
|
|
|
"applications": [
|
|
|
|
{
|
|
|
|
"appName": "demo-app-1",
|
|
|
|
"strategies": ["default"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"appName": "demo-app-2",
|
|
|
|
"strategies": ["default", "extra"],
|
|
|
|
"description": "hello"
|
2020-09-25 09:39:12 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"appName": "deletable-app",
|
|
|
|
"strategies": ["default"],
|
|
|
|
"description": "Some desc"
|
2018-11-22 11:20:28 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"clientInstances": [
|
|
|
|
{
|
|
|
|
"appName": "demo-app-1",
|
|
|
|
"instanceId": "test-1",
|
|
|
|
"strategies": ["default"],
|
|
|
|
"started": 1516026938494,
|
|
|
|
"interval": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"appName": "demo-seed-2",
|
|
|
|
"instanceId": "test-2",
|
|
|
|
"strategies": ["default"],
|
|
|
|
"started": 1516026938494,
|
|
|
|
"interval": 10
|
2020-09-25 09:39:12 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"appName": "deletable-app",
|
|
|
|
"instanceId": "inst-1",
|
|
|
|
"strategies": ["default"],
|
|
|
|
"started": 1516026938494,
|
|
|
|
"interval": 10
|
2018-11-22 11:20:28 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"features": [
|
|
|
|
{
|
|
|
|
"name": "featureX",
|
|
|
|
"description": "the #1 feature",
|
|
|
|
"enabled": true,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "default",
|
|
|
|
"parameters": {}
|
2017-11-16 16:45:01 +01:00
|
|
|
}
|
2018-11-22 11:20:28 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "featureY",
|
|
|
|
"description": "soon to be the #1 feature",
|
|
|
|
"enabled": false,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "baz",
|
|
|
|
"parameters": {
|
|
|
|
"foo": "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "featureZ",
|
|
|
|
"description": "terrible feature",
|
|
|
|
"enabled": true,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "baz",
|
|
|
|
"parameters": {
|
|
|
|
"foo": "rab"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "featureArchivedX",
|
|
|
|
"description": "the #1 feature",
|
|
|
|
"enabled": true,
|
|
|
|
"archived": true,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "default",
|
|
|
|
"parameters": {}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "featureArchivedY",
|
|
|
|
"description": "soon to be the #1 feature",
|
|
|
|
"enabled": false,
|
|
|
|
"archived": true,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "baz",
|
|
|
|
"parameters": {
|
|
|
|
"foo": "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "featureArchivedZ",
|
|
|
|
"description": "terrible feature",
|
|
|
|
"enabled": true,
|
|
|
|
"archived": true,
|
|
|
|
"strategies": [
|
2017-11-16 16:45:01 +01:00
|
|
|
{
|
2018-11-22 11:20:28 +01:00
|
|
|
"name": "baz",
|
|
|
|
"parameters": {
|
|
|
|
"foo": "rab"
|
|
|
|
}
|
2017-11-16 16:45:01 +01:00
|
|
|
}
|
2018-11-22 11:20:28 +01:00
|
|
|
]
|
2019-01-24 08:39:21 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "feature.with.variants",
|
|
|
|
"description": "A feature toggle with watiants",
|
|
|
|
"enabled": true,
|
|
|
|
"archived": false,
|
|
|
|
"strategies": [{ "name": "default" }],
|
2019-01-24 11:26:07 +01:00
|
|
|
"variants": [
|
|
|
|
{ "name": "control", "weight": 50 },
|
|
|
|
{ "name": "new", "weight": 50 }
|
|
|
|
]
|
2018-11-22 11:20:28 +01:00
|
|
|
}
|
2020-09-28 21:54:44 +02:00
|
|
|
],
|
|
|
|
"projects": [
|
|
|
|
{
|
|
|
|
"id": "default",
|
|
|
|
"name": "Default"
|
|
|
|
}
|
2021-01-04 10:29:33 +01:00
|
|
|
],
|
|
|
|
"tag_types": [
|
|
|
|
{
|
|
|
|
"name": "simple",
|
|
|
|
"description": "Arbitrary tags. Used to simplify filtering of features",
|
|
|
|
"icon": "#"
|
|
|
|
}
|
2018-11-22 11:20:28 +01:00
|
|
|
]
|
|
|
|
}
|