|
72 | 72 | return {
|
73 | 73 | groups: {
|
74 | 74 | global: {
|
75 |
| - label: "SDK control", |
| 75 | + label: "Global Controls", |
76 | 76 | list: ["tracking", "networking"]
|
77 | 77 | },
|
78 | 78 | features: {
|
79 |
| - label: "SDK features", |
80 |
| - list: ["crt", "vt", "st", "cet", "ecz", "cr", "log"] |
| 79 | + label: "SDK Features", |
| 80 | + list: ["crt", "vt", "st", "cet", "ecz", "cr"] |
81 | 81 | },
|
82 | 82 | settings: {
|
83 |
| - label: "SDK settings", |
84 |
| - list: ["sui", "eqs", "rqs", "ebs", "czi", "dort"] |
| 83 | + label: "SDK Settings", |
| 84 | + list: ["sui", "eqs", "rqs", "czi", "dort", "scui"] |
85 | 85 | },
|
86 | 86 | limits: {
|
87 | 87 | label: "SDK Limits",
|
88 |
| - list: ["lkl", "lvs", "lsv", "lbc"] |
| 88 | + list: ["lkl", "lvs", "lsv", "lbc", "ltlpt", "ltl"] |
89 | 89 | },
|
90 | 90 | },
|
91 | 91 | configs: {
|
92 | 92 | tracking: {
|
93 | 93 | type: "switch",
|
94 |
| - name: "SDK Tracking", |
95 |
| - description: "Enable or disable tracking any data in the SDK. If disabled, tracking new data will stop, but already collected data will be sent as long as networking is enabled", |
| 94 | + name: "Allow Tracking", |
| 95 | + description: "Enable or disable any tracking (gathering) of data in the SDK (default: enabled)", |
96 | 96 | default: true,
|
97 | 97 | value: null
|
98 | 98 | },
|
99 | 99 | networking: {
|
100 | 100 | type: "switch",
|
101 |
| - name: "SDK Networking", |
102 |
| - description: "Enable or disable networking calls within SDK. If disabled no network requests will come from SDK (except SDK config call), but data would still be recorded and preserved on device up to the SDK limits", |
| 101 | + name: "Allow Networking", |
| 102 | + description: "Enable or disable all networking calls from SDK except SDK config call. Does not effect tracking of data (default: enabled)", |
103 | 103 | default: true,
|
104 | 104 | value: null
|
105 | 105 | },
|
106 | 106 | crt: {
|
107 | 107 | type: "switch",
|
108 |
| - name: "Crashes", |
109 |
| - description: "Enable or disable automatic tracking of unhandled crashes", |
| 108 | + name: "Allow Crash Tracking", |
| 109 | + description: "Enable or disable tracking of crashes (default: enabled)", |
110 | 110 | default: true,
|
111 | 111 | value: null
|
112 | 112 | },
|
113 | 113 | vt: {
|
114 | 114 | type: "switch",
|
115 |
| - name: "Views", |
116 |
| - description: "Enable or disable automatic tracking of views", |
| 115 | + name: "Allow View Tracking", |
| 116 | + description: "Enable or disable tracking of views (default: enabled)", |
117 | 117 | default: true,
|
118 | 118 | value: null
|
119 | 119 | },
|
120 | 120 | st: {
|
121 | 121 | type: "switch",
|
122 |
| - name: "Session Tracking", |
123 |
| - description: "Enable or disable automatic session tracking", |
| 122 | + name: "Allow Session Tracking", |
| 123 | + description: "Enable or disable tracking of sessions (default: enabled)", |
124 | 124 | default: true,
|
125 | 125 | value: null
|
126 | 126 | },
|
127 | 127 | sui: {
|
128 | 128 | type: "number",
|
129 | 129 | name: "Session Update Interval",
|
130 |
| - description: "How often to send heartbeat to server in seconds", |
| 130 | + description: "How often to send session update information to server in seconds (default: 60)", |
131 | 131 | default: 60,
|
132 | 132 | value: null
|
133 | 133 | },
|
134 | 134 | cet: {
|
135 | 135 | type: "switch",
|
136 |
| - name: "Custom Event Tracking", |
137 |
| - description: "Track custom events", |
| 136 | + name: "Allow Custom Event Tracking", |
| 137 | + description: "Enable or disable tracking of custom events (default: enabled)", |
138 | 138 | default: true,
|
139 | 139 | value: null
|
140 | 140 | },
|
141 | 141 | ecz: {
|
142 | 142 | type: "switch",
|
143 |
| - name: "Content Zone", |
144 |
| - description: "Display content from Countly", |
145 |
| - default: true, |
| 143 | + name: "Enable Content Zone", |
| 144 | + description: "Enable or disable listening to Journey related contents (default: false)", |
| 145 | + default: false, |
146 | 146 | value: null
|
147 | 147 | },
|
148 | 148 | cr: {
|
149 | 149 | type: "switch",
|
150 |
| - name: "Consent Requests", |
151 |
| - description: "Ask for consents", |
152 |
| - default: true, |
| 150 | + name: "Require Consent", |
| 151 | + description: "Enable or disable requiring consent for tracking (default: false)", |
| 152 | + default: false, |
153 | 153 | value: null
|
154 | 154 | },
|
155 | 155 | rqs: {
|
156 | 156 | type: "number",
|
157 | 157 | name: "Request Queue Size",
|
158 |
| - description: "How many requests to store in queue, if SDK cannot connect to server", |
| 158 | + description: "How many requests to store in queue, if SDK cannot connect to server (default: 1000)", |
159 | 159 | default: 1000,
|
160 | 160 | value: null
|
161 | 161 | },
|
162 | 162 | eqs: {
|
163 | 163 | type: "number",
|
164 | 164 | name: "Event Queue Size",
|
165 |
| - description: "How many events to store in queue before they would be batched and sent to server", |
166 |
| - default: 10, |
167 |
| - value: null |
168 |
| - }, |
169 |
| - ebs: { |
170 |
| - type: "number", |
171 |
| - name: "Event Batch Size", |
172 |
| - description: "How many events to store in queue before they would be batched and sent to server", |
173 |
| - default: 10, |
| 165 | + description: "How many events to store in queue before they would be batched and sent to server (default: 100)", |
| 166 | + default: 100, |
174 | 167 | value: null
|
175 | 168 | },
|
176 | 169 | czi: {
|
177 | 170 | type: "number",
|
178 | 171 | name: "Content Zone Interval",
|
179 |
| - description: "How often to check for new content", |
| 172 | + description: "How often to check for new Journey content in seconds (default: 30, min: 15)", |
180 | 173 | default: 30,
|
181 | 174 | value: null
|
182 | 175 | },
|
183 | 176 | dort: {
|
184 | 177 | type: "number",
|
185 |
| - name: "Drop old requests", |
186 |
| - description: "Provide time in seconds after which requests should be dropped if they are not sent to server", |
| 178 | + name: "Request Drop Age", |
| 179 | + description: "Provide time in hours after which an old request should be dropped if they are not sent to server (default: 0 = not enabled)", |
187 | 180 | default: 0,
|
188 | 181 | value: null
|
189 | 182 | },
|
190 | 183 | lkl: {
|
191 | 184 | type: "number",
|
192 |
| - name: "Limit Key Length", |
193 |
| - description: "Maximum length of event key", |
194 |
| - default: 256, |
| 185 | + name: "Max Key Length", |
| 186 | + description: "Maximum length of an Event's key (including name) (default: 128)", |
| 187 | + default: 128, |
195 | 188 | value: null
|
196 | 189 | },
|
197 | 190 | lvs: {
|
198 | 191 | type: "number",
|
199 |
| - name: "Limit Value Size", |
200 |
| - description: "Maximum value size of event segment", |
| 192 | + name: "Max Value Size", |
| 193 | + description: "Maximum length of an Event's segment value (default: 256)", |
201 | 194 | default: 256,
|
202 | 195 | value: null
|
203 | 196 | },
|
204 | 197 | lsv: {
|
205 | 198 | type: "number",
|
206 |
| - name: "Limit Number of Segments", |
207 |
| - description: "Maximum segments of event", |
| 199 | + name: "Max Number of Segments", |
| 200 | + description: "Maximum amount of segmentation key/value pairs per Event (default: 100)", |
208 | 201 | default: 100,
|
209 | 202 | value: null
|
210 | 203 | },
|
211 | 204 | lbc: {
|
212 | 205 | type: "number",
|
213 |
| - name: "Limit Breadcrump", |
214 |
| - description: "Maximum breadcrump size", |
| 206 | + name: "Max Breadcrumb Count", |
| 207 | + description: "Maximum breadcrumb count that can be provided by the developer (default: 100)", |
215 | 208 | default: 100,
|
216 | 209 | value: null
|
217 | 210 | },
|
218 |
| - log: { |
219 |
| - type: "switch", |
220 |
| - name: "Logging", |
221 |
| - description: "Enable SDK logging", |
222 |
| - default: true, |
| 211 | + ltlpt: { |
| 212 | + type: "number", |
| 213 | + name: "Max Trace Line Per Thread", |
| 214 | + description: "Maximum stack trace lines that would be recorded per thread (default: 30)", |
| 215 | + default: 30, |
| 216 | + value: null |
| 217 | + }, |
| 218 | + ltl: { |
| 219 | + type: "number", |
| 220 | + name: "Max Trace Length Per Line", |
| 221 | + description: "Maximum length of a stack trace line to be recorded (default: 200)", |
| 222 | + default: 200, |
| 223 | + value: null |
| 224 | + }, |
| 225 | + scui: { |
| 226 | + type: "number", |
| 227 | + name: "Server Config Update Interval", |
| 228 | + description: "How often to check for new server config in hours (default: 4)", |
| 229 | + default: 4, |
223 | 230 | value: null
|
224 | 231 | }
|
225 | 232 | },
|
226 | 233 | diff: [],
|
227 |
| - description: "This is experimental feature and not all SDKs and SDK versions yet support it. Refer to the SDK documentation for more information" |
| 234 | + description: "This is experimental feature and not all SDKs and SDK versions yet support it. Refer to the SDK documentation for more information", |
| 235 | + downloadDescription: "Download the current SDK configuration as a JSON file to provide to the SDK", |
228 | 236 | };
|
229 | 237 | },
|
230 | 238 | methods: {
|
|
246 | 254 | }
|
247 | 255 | }
|
248 | 256 | },
|
| 257 | + downloadConfig: function() { |
| 258 | + var params = this.$store.getters["countlySDK/sdk/all"]; |
| 259 | + var data = {}; |
| 260 | + data.v = 1; // check sdk/api/api.js for version |
| 261 | + data.t = Date.now(); |
| 262 | + data.c = params || {}; |
| 263 | + var configData = JSON.stringify(data, null, 2); |
| 264 | + var blob = new Blob([configData], { type: 'application/json' }); |
| 265 | + var url = URL.createObjectURL(blob); |
| 266 | + var a = document.createElement('a'); |
| 267 | + a.href = url; |
| 268 | + a.download = 'sdk-config.json'; |
| 269 | + document.body.appendChild(a); |
| 270 | + a.click(); |
| 271 | + document.body.removeChild(a); |
| 272 | + URL.revokeObjectURL(url); |
| 273 | + }, |
249 | 274 | save: function() {
|
250 | 275 | var params = this.$store.getters["countlySDK/sdk/all"];
|
251 | 276 | var data = params || {};
|
|
0 commit comments