mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
7a410508cb
* feat: api supports context fields * fix: typo for cotnext group in event-differ
142 lines
2.8 KiB
JSON
142 lines
2.8 KiB
JSON
{
|
|
"strategies": [
|
|
{
|
|
"name": "default",
|
|
"description": "Default on or off Strategy.",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"name": "usersWithEmail",
|
|
"description": "Active for users defined in the comma-separated emails-parameter.",
|
|
"parameters": [
|
|
{
|
|
"name": "emails",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"contextFields": [
|
|
{ "name": "environment" },
|
|
{ "name": "userId" },
|
|
{ "name": "appNam" }
|
|
],
|
|
"applications": [
|
|
{
|
|
"appName": "demo-app-1",
|
|
"strategies": ["default"]
|
|
},
|
|
{
|
|
"appName": "demo-app-2",
|
|
"strategies": ["default", "extra"],
|
|
"description": "hello"
|
|
}
|
|
],
|
|
"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
|
|
}
|
|
],
|
|
"features": [
|
|
{
|
|
"name": "featureX",
|
|
"description": "the #1 feature",
|
|
"enabled": true,
|
|
"strategies": [
|
|
{
|
|
"name": "default",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "featureY",
|
|
"description": "soon to be the #1 feature",
|
|
"enabled": false,
|
|
"strategies": [
|
|
{
|
|
"name": "baz",
|
|
"parameters": {
|
|
"foo": "bar"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "featureZ",
|
|
"description": "terrible feature",
|
|
"enabled": true,
|
|
"strategies": [
|
|
{
|
|
"name": "baz",
|
|
"parameters": {
|
|
"foo": "rab"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "featureArchivedX",
|
|
"description": "the #1 feature",
|
|
"enabled": true,
|
|
"archived": true,
|
|
"strategies": [
|
|
{
|
|
"name": "default",
|
|
"parameters": {}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "featureArchivedY",
|
|
"description": "soon to be the #1 feature",
|
|
"enabled": false,
|
|
"archived": true,
|
|
"strategies": [
|
|
{
|
|
"name": "baz",
|
|
"parameters": {
|
|
"foo": "bar"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "featureArchivedZ",
|
|
"description": "terrible feature",
|
|
"enabled": true,
|
|
"archived": true,
|
|
"strategies": [
|
|
{
|
|
"name": "baz",
|
|
"parameters": {
|
|
"foo": "rab"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "feature.with.variants",
|
|
"description": "A feature toggle with watiants",
|
|
"enabled": true,
|
|
"archived": false,
|
|
"strategies": [{ "name": "default" }],
|
|
"variants": [
|
|
{ "name": "control", "weight": 50 },
|
|
{ "name": "new", "weight": 50 }
|
|
]
|
|
}
|
|
]
|
|
}
|