You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: api/config.sample.js
+1
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ var countlyConfig = {
99
99
* @property {string} algorithm - name of the algorithm to use for encryption. The algorithm is dependent on OpenSSL, examples are 'aes192', etc. On recent OpenSSL releases, openssl list-cipher-algorithms will display the available cipher algorithms. Default value is aes-256-cbc
100
100
* @property {string} input_encoding - how encryption input is encoded. Used as output for decrypting. Default utf-8.
101
101
* @property {string} output_encoding - how encryption output is encoded. Used as input for decrypting. Default hex.
102
+
* @property {string} reports_key - key used for encryption of reports links
* Scrript triggers data regeneration for events and sessions.
3
+
* It stores progress in county.data_regeneration_progress collection.
4
+
* Collection can be dropped once regeneration is complete. Data in there ensures that if script dies unexpectedly, then upon staring again it will not regenerate collections again.
5
+
* mongosh countly
6
+
* db.data_regeneration_progress.drop();
7
+
*
8
+
* script path: {countly}/bin/scripts/fix-data/
9
+
*
10
+
* To run script:
11
+
* node regenerate_aggregated_data.js
12
+
*/
13
+
//Adjust settings below before running script
14
+
varregenerate_events=true;//if true will regenerate all custom events aggregated data
15
+
varregenerate_sessions=false;
16
+
varperiod="732days";//any valid period
17
+
18
+
//Each app IDis listed as string, for example var appList = ["6075f94b7e5e0d392902520c",6075f94b7e5e0d392902520d]
19
+
varappList=[];//If left empty, will run for all apps.
20
+
//For each app defined there only listed events will be regenerated. If left empty, all events will be regenerated.
21
+
//Example var eventMap = {"6075f94b7e5e0d392902520c":["Logout","Login"],"6075f94b7e5e0d392902520d":["Logout","Login","Buy"]};
22
+
vareventMap={};//If left empty will run for all alls/events.
0 commit comments