@abtnode/constant 1.16.13-beta-0086a35d → 1.16.13-beta-d13e9789

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +9 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -292,6 +292,12 @@ const PROD_DID_SPACES = {
292
292
  APP_IDS: ['zNKq13Dr2TBHELpLDUJFGxepiGP7YHbAVxPn', 'zNKq6yG8AVbwdRBDJSNCDVJJUQD1AXdkK7Wp'],
293
293
  };
294
294
 
295
+ // 10s 上报统计一次
296
+ const MONITOR_RECORD_INTERVAL_SEC = 10;
297
+
298
+ // 保存当天数据, 每天上报 8640 次
299
+ const MONITOR_HISTORY_LENGTH = 86400 / MONITOR_RECORD_INTERVAL_SEC;
300
+
295
301
  module.exports = Object.freeze({
296
302
  // Blocklet Server
297
303
  NODE_MODES: Object.freeze({
@@ -507,4 +513,7 @@ module.exports = Object.freeze({
507
513
  BLOCKLET_CACHE_TTL: 3600 * 1000, // 1 hour
508
514
 
509
515
  PROD_DID_SPACES,
516
+
517
+ MONITOR_HISTORY_LENGTH,
518
+ MONITOR_RECORD_INTERVAL_SEC,
510
519
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.13-beta-0086a35d",
6
+ "version": "1.16.13-beta-d13e9789",
7
7
  "description": "ABT Node constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "cbf5c99e7cadf9fef4d77673cb45b44ef26436cf"
23
+ "gitHead": "fcb07d0b3c742aaa68101e302b9eca193d0db872"
24
24
  }