|
1 | 1 | {
|
2 | 2 | "createdAt": "2024-04-17T19:40:53.716Z",
|
3 | 3 | "environment": {
|
4 |
| - "name": "Test" |
| 4 | + "name": "Test" |
5 | 5 | },
|
6 | 6 | "flags": {
|
7 |
| - "non_bandit_flag": { |
8 |
| - "key": "non_bandit_flag", |
9 |
| - "enabled": true, |
10 |
| - "variationType": "STRING", |
11 |
| - "variations": { |
12 |
| - "control": {"key": "control", "value": "control"}, |
13 |
| - "variant": {"key": "variant", "value": "variant"} |
14 |
| - }, |
15 |
| - "allocations": [ |
16 |
| - { |
17 |
| - "key": "control-allocation", |
18 |
| - "splits": [ |
19 |
| - { |
20 |
| - "variationKey": "control", |
21 |
| - "shards": [] |
22 |
| - } |
23 |
| - ], |
24 |
| - "doLog": true |
25 |
| - } |
26 |
| - ], |
27 |
| - "totalShards": 10000 |
28 |
| - }, |
29 |
| - "non_bandit_integer_flag": { |
30 |
| - "key": "non_bandit_integer_flag", |
31 |
| - "enabled": true, |
32 |
| - "variationType": "INTEGER", |
33 |
| - "variations": { |
34 |
| - "control": {"key": "control", "value": 0}, |
35 |
| - "variant": {"key": "variant", "value": 1} |
36 |
| - }, |
37 |
| - "allocations": [ |
38 |
| - { |
39 |
| - "key": "control-allocation", |
40 |
| - "splits": [ |
41 |
| - { |
42 |
| - "variationKey": "control", |
43 |
| - "shards": [] |
44 |
| - } |
45 |
| - ], |
46 |
| - "doLog": true |
47 |
| - } |
48 |
| - ], |
49 |
| - "totalShards": 10000 |
50 |
| - }, |
51 |
| - "banner_bandit_flag": { |
52 |
| - "key": "banner_bandit_flag", |
53 |
| - "enabled": true, |
54 |
| - "variationType": "STRING", |
55 |
| - "variations": { |
56 |
| - "control": {"key": "control", "value": "control"}, |
57 |
| - "banner_bandit": {"key": "banner_bandit", "value": "banner_bandit"} |
| 7 | + "non_bandit_flag": { |
| 8 | + "key": "non_bandit_flag", |
| 9 | + "enabled": true, |
| 10 | + "variationType": "STRING", |
| 11 | + "variations": { |
| 12 | + "control": { |
| 13 | + "key": "control", |
| 14 | + "value": "control" |
| 15 | + }, |
| 16 | + "variant": { |
| 17 | + "key": "variant", |
| 18 | + "value": "variant" |
| 19 | + } |
| 20 | + }, |
| 21 | + "allocations": [ |
| 22 | + { |
| 23 | + "key": "control-allocation", |
| 24 | + "splits": [ |
| 25 | + { |
| 26 | + "variationKey": "control", |
| 27 | + "shards": [] |
| 28 | + } |
| 29 | + ], |
| 30 | + "doLog": true |
| 31 | + } |
| 32 | + ], |
| 33 | + "totalShards": 10000 |
58 | 34 | },
|
59 |
| - "allocations": [ |
60 |
| - { |
61 |
| - "key": "analysis", |
62 |
| - "splits": [ |
63 |
| - { |
64 |
| - "variationKey": "control", |
65 |
| - "shards": [ |
66 |
| - { |
67 |
| - "salt": "traffic-banner-bandit-flag-1", |
68 |
| - "ranges": [{"start": 0, "end": 2000}] |
69 |
| - }, |
70 |
| - { |
71 |
| - "salt": "split-banner-bandit-flag-1", |
72 |
| - "ranges": [{"start": 0, "end": 5000}] |
73 |
| - } |
74 |
| - ] |
75 |
| - }, |
76 |
| - { |
77 |
| - "variationKey": "banner_bandit", |
78 |
| - "shards": [ |
79 |
| - { |
80 |
| - "salt": "traffic-banner-bandit-flag-1", |
81 |
| - "ranges": [{"start": 0, "end": 2000}] |
82 |
| - }, |
83 |
| - { |
84 |
| - "salt": "split-banner-bandit-flag-1", |
85 |
| - "ranges": [{"start": 5000, "end": 10000}] |
86 |
| - } |
87 |
| - ] |
88 |
| - } |
89 |
| - ], |
90 |
| - "doLog": false |
| 35 | + "non_bandit_integer_flag": { |
| 36 | + "key": "non_bandit_integer_flag", |
| 37 | + "enabled": true, |
| 38 | + "variationType": "INTEGER", |
| 39 | + "variations": { |
| 40 | + "control": { |
| 41 | + "key": "control", |
| 42 | + "value": 0 |
| 43 | + }, |
| 44 | + "variant": { |
| 45 | + "key": "variant", |
| 46 | + "value": 1 |
| 47 | + } |
91 | 48 | },
|
92 |
| - { |
93 |
| - "key": "training", |
94 |
| - "splits": [ |
95 |
| - { |
96 |
| - "variationKey": "banner_bandit", |
97 |
| - "shards": [ |
98 |
| - { |
99 |
| - "salt": "traffic-banner-bandit-flag-2", |
100 |
| - "ranges": [{"start": 0, "end": 8000}] |
101 |
| - } |
102 |
| - ] |
103 |
| - } |
104 |
| - ], |
105 |
| - "doLog": true |
106 |
| - } |
107 |
| - ], |
108 |
| - "totalShards": 10000 |
109 |
| - }, |
110 |
| - "banner_bandit_flag_uk_only": { |
111 |
| - "key": "banner_bandit_flag_uk_only", |
112 |
| - "enabled": true, |
113 |
| - "variationType": "STRING", |
114 |
| - "variations": { |
115 |
| - "control": {"key": "control", "value": "control"}, |
116 |
| - "banner_bandit": {"key": "banner_bandit", "value": "banner_bandit"} |
| 49 | + "allocations": [ |
| 50 | + { |
| 51 | + "key": "control-allocation", |
| 52 | + "splits": [ |
| 53 | + { |
| 54 | + "variationKey": "control", |
| 55 | + "shards": [] |
| 56 | + } |
| 57 | + ], |
| 58 | + "doLog": true |
| 59 | + } |
| 60 | + ], |
| 61 | + "totalShards": 10000 |
117 | 62 | },
|
118 |
| - "allocations": [ |
119 |
| - { |
120 |
| - "key": "training", |
121 |
| - "rules": [ |
122 |
| - { |
123 |
| - "conditions": [ |
| 63 | + "banner_bandit_flag": { |
| 64 | + "key": "banner_bandit_flag", |
| 65 | + "enabled": true, |
| 66 | + "variationType": "STRING", |
| 67 | + "variations": { |
| 68 | + "control": { |
| 69 | + "key": "control", |
| 70 | + "value": "control" |
| 71 | + }, |
| 72 | + "banner_bandit": { |
| 73 | + "key": "banner_bandit", |
| 74 | + "value": "banner_bandit" |
| 75 | + } |
| 76 | + }, |
| 77 | + "allocations": [ |
| 78 | + { |
| 79 | + "key": "analysis", |
| 80 | + "splits": [ |
| 81 | + { |
| 82 | + "variationKey": "control", |
| 83 | + "shards": [ |
| 84 | + { |
| 85 | + "salt": "traffic-banner-bandit-flag-1", |
| 86 | + "ranges": [ |
| 87 | + { |
| 88 | + "start": 0, |
| 89 | + "end": 2000 |
| 90 | + } |
| 91 | + ] |
| 92 | + }, |
| 93 | + { |
| 94 | + "salt": "split-banner-bandit-flag-1", |
| 95 | + "ranges": [ |
| 96 | + { |
| 97 | + "start": 0, |
| 98 | + "end": 5000 |
| 99 | + } |
| 100 | + ] |
| 101 | + } |
| 102 | + ] |
| 103 | + }, |
| 104 | + { |
| 105 | + "variationKey": "banner_bandit", |
| 106 | + "shards": [ |
| 107 | + { |
| 108 | + "salt": "traffic-banner-bandit-flag-1", |
| 109 | + "ranges": [ |
| 110 | + { |
| 111 | + "start": 0, |
| 112 | + "end": 2000 |
| 113 | + } |
| 114 | + ] |
| 115 | + }, |
| 116 | + { |
| 117 | + "salt": "split-banner-bandit-flag-1", |
| 118 | + "ranges": [ |
| 119 | + { |
| 120 | + "start": 5000, |
| 121 | + "end": 10000 |
| 122 | + } |
| 123 | + ] |
| 124 | + } |
| 125 | + ] |
| 126 | + } |
| 127 | + ], |
| 128 | + "doLog": false |
| 129 | + }, |
| 130 | + { |
| 131 | + "key": "training", |
| 132 | + "splits": [ |
124 | 133 | {
|
125 |
| - "attribute": "country", |
126 |
| - "operator": "ONE_OF", |
127 |
| - "value": [ |
128 |
| - "UK" |
129 |
| - ] |
| 134 | + "variationKey": "banner_bandit", |
| 135 | + "shards": [ |
| 136 | + { |
| 137 | + "salt": "traffic-banner-bandit-flag-2", |
| 138 | + "ranges": [ |
| 139 | + { |
| 140 | + "start": 0, |
| 141 | + "end": 8000 |
| 142 | + } |
| 143 | + ] |
| 144 | + } |
| 145 | + ] |
130 | 146 | }
|
131 |
| - ] |
132 |
| - } |
133 |
| - ], |
134 |
| - "splits": [ |
135 |
| - { |
136 |
| - "variationKey": "banner_bandit", |
137 |
| - "shards": [] |
138 |
| - } |
139 |
| - ], |
140 |
| - "doLog": true |
| 147 | + ], |
| 148 | + "doLog": true |
| 149 | + } |
| 150 | + ], |
| 151 | + "totalShards": 10000 |
| 152 | + }, |
| 153 | + "banner_bandit_flag_uk_only": { |
| 154 | + "key": "banner_bandit_flag_uk_only", |
| 155 | + "enabled": true, |
| 156 | + "variationType": "STRING", |
| 157 | + "variations": { |
| 158 | + "control": { |
| 159 | + "key": "control", |
| 160 | + "value": "control" |
| 161 | + }, |
| 162 | + "banner_bandit": { |
| 163 | + "key": "banner_bandit", |
| 164 | + "value": "banner_bandit" |
| 165 | + } |
141 | 166 | },
|
142 |
| - { |
143 |
| - "key": "default", |
144 |
| - "rules": [], |
145 |
| - "splits": [ |
146 |
| - { |
147 |
| - "variationKey": "control", |
148 |
| - "shards": [] |
149 |
| - } |
150 |
| - ], |
151 |
| - "doLog": true |
152 |
| - } |
153 |
| - ], |
154 |
| - "totalShards": 10000 |
155 |
| - } |
| 167 | + "allocations": [ |
| 168 | + { |
| 169 | + "key": "training", |
| 170 | + "rules": [ |
| 171 | + { |
| 172 | + "conditions": [ |
| 173 | + { |
| 174 | + "attribute": "country", |
| 175 | + "operator": "ONE_OF", |
| 176 | + "value": [ |
| 177 | + "UK" |
| 178 | + ] |
| 179 | + } |
| 180 | + ] |
| 181 | + } |
| 182 | + ], |
| 183 | + "splits": [ |
| 184 | + { |
| 185 | + "variationKey": "banner_bandit", |
| 186 | + "shards": [] |
| 187 | + } |
| 188 | + ], |
| 189 | + "doLog": true |
| 190 | + }, |
| 191 | + { |
| 192 | + "key": "default", |
| 193 | + "rules": [], |
| 194 | + "splits": [ |
| 195 | + { |
| 196 | + "variationKey": "control", |
| 197 | + "shards": [] |
| 198 | + } |
| 199 | + ], |
| 200 | + "doLog": true |
| 201 | + } |
| 202 | + ], |
| 203 | + "totalShards": 10000 |
| 204 | + } |
156 | 205 | },
|
157 | 206 | "bandits": {
|
158 | 207 | "banner_bandit": [
|
|
177 | 226 | "variationValue": "cold_start_bandit"
|
178 | 227 | }
|
179 | 228 | ]
|
| 229 | + }, |
| 230 | + "banditReferences": { |
| 231 | + "banner_bandit": { |
| 232 | + "flagVariations": [ |
| 233 | + { |
| 234 | + "key": "banner_bandit", |
| 235 | + "flagKey": "banner_bandit_flag", |
| 236 | + "allocationKey": "banner_bandit_allocation", |
| 237 | + "variationKey": "banner_bandit", |
| 238 | + "variationValue": "banner_bandit" |
| 239 | + }, |
| 240 | + { |
| 241 | + "key": "banner_bandit", |
| 242 | + "flagKey": "banner_bandit_flag_uk_only", |
| 243 | + "allocationKey": "banner_bandit_uk_allocation", |
| 244 | + "variationKey": "banner_bandit", |
| 245 | + "variationValue": "banner_bandit" |
| 246 | + } |
| 247 | + ], |
| 248 | + "modelVersion": "v123" |
| 249 | + }, |
| 250 | + "cold_start_bandit": { |
| 251 | + "flagVariations": [ |
| 252 | + { |
| 253 | + "key": "cold_start_bandit", |
| 254 | + "flagKey": "cold_start_bandit_flag", |
| 255 | + "allocationKey": "cold_start_bandit_allocation", |
| 256 | + "variationKey": "cold_start_bandit", |
| 257 | + "variationValue": "cold_start_bandit" |
| 258 | + } |
| 259 | + ], |
| 260 | + "modelVersion": "cold start" |
| 261 | + } |
180 | 262 | }
|
181 | 263 | }
|
0 commit comments