@resolveio/server-lib 9.2.18 → 9.2.19
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.
- package/client-server-app.js +1 -55
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +1 -40
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +1 -40
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +1 -43
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +1 -71
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +1 -74
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +1 -55
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +1 -50
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +1 -62
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +1 -44
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +1 -53
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +1 -57
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +1 -72
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +1 -58
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.js +1 -51
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.js +1 -55
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +1 -57
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.js +1 -66
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.js +1 -74
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +1 -68
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +1 -62
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +1 -40
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +1 -93
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +1 -76
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +1 -138
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +1 -79
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +1 -46
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +1 -248
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +1 -161
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +1 -72
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +1 -62
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +1 -697
- package/http/auth.js.map +1 -1
- package/http/health.js +1 -10
- package/http/health.js.map +1 -1
- package/http/home.js +1 -64
- package/http/home.js.map +1 -1
- package/index.js +1 -123
- package/index.js.map +1 -1
- package/managers/cron.manager.js +1 -205
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +1 -599
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1 -1682
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +1 -334
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +1 -867
- package/managers/subscription.manager.js.map +1 -1
- package/managers/subscription.performance.js +1 -100
- package/managers/subscription.performance.js.map +1 -1
- package/methods/accounts.js +1 -224
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +1 -449
- package/methods/aws.js.map +1 -1
- package/methods/cloudconvert.js +1 -214
- package/methods/cloudconvert.js.map +1 -1
- package/methods/collections.js +1 -526
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +1 -121
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +1 -1284
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flags.js +1 -8
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +1 -370
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +1 -384
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +1 -685
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +1 -826
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +1 -263
- package/methods/support.js.map +1 -1
- package/models/app-status.model.js +1 -3
- package/models/app-status.model.js.map +1 -1
- package/models/app-version.model.js +1 -3
- package/models/app-version.model.js.map +1 -1
- package/models/billing-logged-in-users.model.js +1 -3
- package/models/billing-logged-in-users.model.js.map +1 -1
- package/models/collection-document.model.js +1 -3
- package/models/collection-document.model.js.map +1 -1
- package/models/counter.model.js +1 -3
- package/models/counter.model.js.map +1 -1
- package/models/cron-job-history.model.js +1 -3
- package/models/cron-job-history.model.js.map +1 -1
- package/models/cron-job.model.js +1 -3
- package/models/cron-job.model.js.map +1 -1
- package/models/dialog.model.js +1 -3
- package/models/dialog.model.js.map +1 -1
- package/models/email-history.model.js +1 -3
- package/models/email-history.model.js.map +1 -1
- package/models/email-verified.model.js +1 -3
- package/models/email-verified.model.js.map +1 -1
- package/models/file.model.js +1 -3
- package/models/file.model.js.map +1 -1
- package/models/flag.model.js +1 -3
- package/models/flag.model.js.map +1 -1
- package/models/log-method-latency.model.js +1 -3
- package/models/log-method-latency.model.js.map +1 -1
- package/models/log-subscription.model.js +1 -3
- package/models/log-subscription.model.js.map +1 -1
- package/models/log.model.js +1 -3
- package/models/log.model.js.map +1 -1
- package/models/logged-in-users.model.js +1 -3
- package/models/logged-in-users.model.js.map +1 -1
- package/models/method-call.model.js +1 -3
- package/models/method-call.model.js.map +1 -1
- package/models/method-response.model.js +1 -3
- package/models/method-response.model.js.map +1 -1
- package/models/method.model.js +1 -3
- package/models/method.model.js.map +1 -1
- package/models/monitor-cpu.model.js +1 -3
- package/models/monitor-cpu.model.js.map +1 -1
- package/models/monitor-https-inbound.model.js +1 -3
- package/models/monitor-https-inbound.model.js.map +1 -1
- package/models/monitor-https-outbound.model.js +1 -3
- package/models/monitor-https-outbound.model.js.map +1 -1
- package/models/monitor-memory.model.js +1 -3
- package/models/monitor-memory.model.js.map +1 -1
- package/models/monitor-mongo.model.js +1 -3
- package/models/monitor-mongo.model.js.map +1 -1
- package/models/notification.model.js +1 -3
- package/models/notification.model.js.map +1 -1
- package/models/pagination.model.js +1 -23
- package/models/pagination.model.js.map +1 -1
- package/models/permission.model.js +1 -3
- package/models/permission.model.js.map +1 -1
- package/models/report-builder-dashboard-builder.model.js +1 -3
- package/models/report-builder-dashboard-builder.model.js.map +1 -1
- package/models/report-builder-library.model.js +1 -3
- package/models/report-builder-library.model.js.map +1 -1
- package/models/report-builder-report.model.js +1 -3
- package/models/report-builder-report.model.js.map +1 -1
- package/models/report-builder.model.js +1 -3
- package/models/report-builder.model.js.map +1 -1
- package/models/select-data-label.model.js +1 -3
- package/models/select-data-label.model.js.map +1 -1
- package/models/server-response.model.js +1 -3
- package/models/server-response.model.js.map +1 -1
- package/models/subscription.model.js +1 -3
- package/models/subscription.model.js.map +1 -1
- package/models/support-ticket.model.js +1 -3
- package/models/support-ticket.model.js.map +1 -1
- package/models/user-group.model.js +1 -3
- package/models/user-group.model.js.map +1 -1
- package/models/user-guide.model.js +1 -3
- package/models/user-guide.model.js.map +1 -1
- package/models/user.model.js +1 -3
- package/models/user.model.js.map +1 -1
- package/package.json +2 -1
- package/public_api.js +1 -78
- package/public_api.js.map +1 -1
- package/publications/app-status.js +1 -16
- package/publications/app-status.js.map +1 -1
- package/publications/app-version.js +1 -16
- package/publications/app-version.js.map +1 -1
- package/publications/cron-jobs.js +1 -32
- package/publications/cron-jobs.js.map +1 -1
- package/publications/files.js +1 -36
- package/publications/files.js.map +1 -1
- package/publications/flags.js +1 -22
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +1 -90
- package/publications/logs.js.map +1 -1
- package/publications/method-calls.js +1 -16
- package/publications/method-calls.js.map +1 -1
- package/publications/method-responses.js +1 -16
- package/publications/method-responses.js.map +1 -1
- package/publications/notifications.js +1 -16
- package/publications/notifications.js.map +1 -1
- package/publications/report-builder-dashboard-builders.js +1 -42
- package/publications/report-builder-dashboard-builders.js.map +1 -1
- package/publications/report-builder-libraries.js +1 -89
- package/publications/report-builder-libraries.js.map +1 -1
- package/publications/report-builder-reports.js +1 -50
- package/publications/report-builder-reports.js.map +1 -1
- package/publications/super-admin.js +1 -16
- package/publications/super-admin.js.map +1 -1
- package/publications/user-groups.js +1 -16
- package/publications/user-groups.js.map +1 -1
- package/publications/user-guides.js +1 -16
- package/publications/user-guides.js.map +1 -1
- package/server-app.js +1 -682
- package/server-app.js.map +1 -1
- package/util/common.js +1 -498
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +1 -452
- package/util/schema-report-builder.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","response","Object","blackbox","date","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MethodResponses","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"mGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,QAAS,CACRR,KAAMC,QAEPQ,WAAY,CACXT,KAAMI,QAEPM,OAAQ,CACPV,KAAMC,QAEPU,SAAU,CACTX,KAAMY,OACNC,UAAU,GAEXC,KAAM,CACLd,KAAMM,OAQR,SAASS,uBACR,GAAIpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIrB,gBAAAsB,MAA2B,mBAAoBrB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACjGsB,QAAAC,gBAAkBH,EAAMI,gBACxBF,QAAAC,gBAAgBE,YAAY,CAACf,QAAS,EAAGC,WAAY,IACrDW,QAAAC,gBAAgBE,YAAY,CAAChB,UAAW,GAAI,CAACiB,mBAAoB,aAGjEC,YAAW,WACVV,yBACE,GAdMK,QAAAC,gBAAmD,KAE9DN","file":"method-response.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MethodResponseModel } from '../models/method-response.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tresponse: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodResponses: Collection<MethodResponseModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MethodResponseModel>('method-responses', schema, false, false, [], true, false);\n\t\tMethodResponses = model.collection_main;\n\t\tMethodResponses.createIndex({id_user: 1, message_id: 1});\n\t\tMethodResponses.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorCPUs = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
instance: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
client: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
type: Date
|
|
31
|
-
},
|
|
32
|
-
app: {
|
|
33
|
-
type: Number
|
|
34
|
-
},
|
|
35
|
-
system: {
|
|
36
|
-
type: Number
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.MonitorCPUs = null;
|
|
40
|
-
initializeCollection();
|
|
41
|
-
function initializeCollection() {
|
|
42
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
43
|
-
var model = new mongo_manager_1.Model('monitor-cpus', schema, false, false, [], true, false);
|
|
44
|
-
exports.MonitorCPUs = model.collection_main;
|
|
45
|
-
exports.MonitorCPUs.createIndex({ client: 1, instance: 1, date: 1 });
|
|
46
|
-
exports.MonitorCPUs.createIndex({ client: 1, date: 1 });
|
|
47
|
-
exports.MonitorCPUs.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
48
|
-
exports.MonitorCPUs.createIndex({ app: 1 });
|
|
49
|
-
exports.MonitorCPUs.createIndex({ system: 1 });
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
setTimeout(function () {
|
|
53
|
-
initializeCollection();
|
|
54
|
-
}, 1);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorCPUs=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},instance:{type:String},client:{type:String},date:{type:Date},app:{type:Number},system:{type:Number}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("monitor-cpus",schema,!1,!1,[],!0,!1);exports.MonitorCPUs=e.collection_main,exports.MonitorCPUs.createIndex({client:1,instance:1,date:1}),exports.MonitorCPUs.createIndex({client:1,date:1}),exports.MonitorCPUs.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.MonitorCPUs.createIndex({app:1}),exports.MonitorCPUs.createIndex({system:1})}else setTimeout((function(){initializeCollection()}),1)}exports.MonitorCPUs=null,initializeCollection();
|
|
58
2
|
//# sourceMappingURL=monitor-cpu.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","instance","client","date","app","system","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MonitorCPUs","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"+FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,SAAU,CACTR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMC,QAEPS,KAAM,CACLV,KAAMM,MAEPK,IAAK,CACJX,KAAMI,QAEPQ,OAAQ,CACPZ,KAAMI,SAQR,SAASS,uBACR,GAAIlB,QAAAmB,iBAAmBnB,QAAAmB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAInB,gBAAAoB,MAAuB,eAAgBnB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACzFoB,QAAAC,YAAcH,EAAMI,gBACpBF,QAAAC,YAAYE,YAAY,CAACZ,OAAQ,EAAGD,SAAU,EAAGE,KAAM,IACvDQ,QAAAC,YAAYE,YAAY,CAACZ,OAAQ,EAAGC,KAAM,IAC1CQ,QAAAC,YAAYE,YAAY,CAACX,KAAM,GAAI,CAACY,mBAAoB,SACxDJ,QAAAC,YAAYE,YAAY,CAACV,IAAK,IAC9BO,QAAAC,YAAYE,YAAY,CAACT,OAAQ,SAGjCW,YAAW,WACVV,yBACE,GAjBMK,QAAAC,YAA2C,KAEtDN","file":"monitor-cpu.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MonitorCPUModel } from '../models/monitor-cpu.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tapp: {\n\t\ttype: Number\n\t},\n\tsystem: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorCPUs: Collection<MonitorCPUModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MonitorCPUModel>('monitor-cpus', schema, false, false, [], true, false);\n\t\tMonitorCPUs = model.collection_main;\n\t\tMonitorCPUs.createIndex({client: 1, instance: 1, date: 1});\n\t\tMonitorCPUs.createIndex({client: 1, date: 1});\n\t\tMonitorCPUs.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tMonitorCPUs.createIndex({app: 1});\n\t\tMonitorCPUs.createIndex({system: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,67 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorHTTPSInbounds = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
instance: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
client: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
type: Date
|
|
31
|
-
},
|
|
32
|
-
method: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
url: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
duration: {
|
|
39
|
-
type: Number
|
|
40
|
-
},
|
|
41
|
-
contentType: {
|
|
42
|
-
type: String
|
|
43
|
-
},
|
|
44
|
-
requestHeader: {
|
|
45
|
-
type: String
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
exports.MonitorHTTPSInbounds = null;
|
|
49
|
-
initializeCollection();
|
|
50
|
-
function initializeCollection() {
|
|
51
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
52
|
-
var model = new mongo_manager_1.Model('monitor-https-inbounds', schema, false, false, [], true, false);
|
|
53
|
-
exports.MonitorHTTPSInbounds = model.collection_main;
|
|
54
|
-
exports.MonitorHTTPSInbounds.createIndex({ client: 1, instance: 1, date: 1, method: 1, url: 1 });
|
|
55
|
-
exports.MonitorHTTPSInbounds.createIndex({ client: 1, date: 1, duration: 1 });
|
|
56
|
-
exports.MonitorHTTPSInbounds.createIndex({ client: 1, date: 1, method: 1, url: 1 });
|
|
57
|
-
exports.MonitorHTTPSInbounds.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
58
|
-
exports.MonitorHTTPSInbounds.createIndex({ duration: 1 });
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
setTimeout(function () {
|
|
62
|
-
initializeCollection();
|
|
63
|
-
}, 1);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorHTTPSInbounds=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},instance:{type:String},client:{type:String},date:{type:Date},method:{type:String},url:{type:String},duration:{type:Number},contentType:{type:String},requestHeader:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("monitor-https-inbounds",schema,!1,!1,[],!0,!1);exports.MonitorHTTPSInbounds=e.collection_main,exports.MonitorHTTPSInbounds.createIndex({client:1,instance:1,date:1,method:1,url:1}),exports.MonitorHTTPSInbounds.createIndex({client:1,date:1,duration:1}),exports.MonitorHTTPSInbounds.createIndex({client:1,date:1,method:1,url:1}),exports.MonitorHTTPSInbounds.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.MonitorHTTPSInbounds.createIndex({duration:1})}else setTimeout((function(){initializeCollection()}),1)}exports.MonitorHTTPSInbounds=null,initializeCollection();
|
|
67
2
|
//# sourceMappingURL=monitor-https-inbound.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-https-inbound.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-https-inbound.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","instance","client","date","method","url","duration","contentType","requestHeader","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MonitorHTTPSInbounds","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"wGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,SAAU,CACTR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMC,QAEPS,KAAM,CACLV,KAAMM,MAEPK,OAAQ,CACPX,KAAMC,QAEPW,IAAK,CACJZ,KAAMC,QAEPY,SAAU,CACTb,KAAMI,QAEPU,YAAa,CACZd,KAAMC,QAEPc,cAAe,CACdf,KAAMC,SAQR,SAASe,uBACR,GAAIrB,QAAAsB,iBAAmBtB,QAAAsB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAItB,gBAAAuB,MAAgC,yBAA0BtB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC5GuB,QAAAC,qBAAuBH,EAAMI,gBAC7BF,QAAAC,qBAAqBE,YAAY,CAACf,OAAQ,EAAGD,SAAU,EAAGE,KAAM,EAAGC,OAAQ,EAAGC,IAAK,IACnFS,QAAAC,qBAAqBE,YAAY,CAACf,OAAQ,EAAGC,KAAM,EAAGG,SAAU,IAChEQ,QAAAC,qBAAqBE,YAAY,CAACf,OAAQ,EAAGC,KAAM,EAAGC,OAAQ,EAAGC,IAAK,IACtES,QAAAC,qBAAqBE,YAAY,CAACd,KAAM,GAAI,CAACe,mBAAoB,SACjEJ,QAAAC,qBAAqBE,YAAY,CAACX,SAAU,SAG5Ca,YAAW,WACVV,yBACE,GAjBMK,QAAAC,qBAA6D,KAExEN","file":"monitor-https-inbound.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MonitorHTTPSInboundModel } from '../models/monitor-https-inbound.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\turl: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tcontentType: {\n\t\ttype: String\n\t},\n\trequestHeader: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorHTTPSInbounds: Collection<MonitorHTTPSInboundModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MonitorHTTPSInboundModel>('monitor-https-inbounds', schema, false, false, [], true, false);\n\t\tMonitorHTTPSInbounds = model.collection_main;\n\t\tMonitorHTTPSInbounds.createIndex({client: 1, instance: 1, date: 1, method: 1, url: 1});\n\t\tMonitorHTTPSInbounds.createIndex({client: 1, date: 1, duration: 1});\n\t\tMonitorHTTPSInbounds.createIndex({client: 1, date: 1, method: 1, url: 1});\n\t\tMonitorHTTPSInbounds.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tMonitorHTTPSInbounds.createIndex({duration: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,75 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorHTTPSOutbounds = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
instance: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
client: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
type: Date
|
|
31
|
-
},
|
|
32
|
-
method: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
url: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
duration: {
|
|
39
|
-
type: Number
|
|
40
|
-
},
|
|
41
|
-
status: {
|
|
42
|
-
type: String,
|
|
43
|
-
optional: true
|
|
44
|
-
},
|
|
45
|
-
contentType: {
|
|
46
|
-
type: String,
|
|
47
|
-
optional: true
|
|
48
|
-
},
|
|
49
|
-
requestHeaders: {
|
|
50
|
-
type: Object,
|
|
51
|
-
blackbox: true
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
exports.MonitorHTTPSOutbounds = null;
|
|
55
|
-
initializeCollection();
|
|
56
|
-
function initializeCollection() {
|
|
57
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
58
|
-
var model = new mongo_manager_1.Model('monitor-https-outbounds', schema, false, false, [], true, false);
|
|
59
|
-
exports.MonitorHTTPSOutbounds = model.collection_main;
|
|
60
|
-
exports.MonitorHTTPSOutbounds.createIndex({ client: 1, instance: 1, date: 1, method: 1, url: 1, status: 1 });
|
|
61
|
-
exports.MonitorHTTPSOutbounds.createIndex({ client: 1, date: 1, duration: 1 });
|
|
62
|
-
exports.MonitorHTTPSOutbounds.createIndex({ client: 1, date: 1, method: 1, url: 1, status: 1 });
|
|
63
|
-
exports.MonitorHTTPSOutbounds.createIndex({ client: 1, date: 1, status: 1 });
|
|
64
|
-
exports.MonitorHTTPSOutbounds.createIndex({ client: 1, status: 1 });
|
|
65
|
-
exports.MonitorHTTPSOutbounds.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
66
|
-
exports.MonitorHTTPSOutbounds.createIndex({ duration: 1 });
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
setTimeout(function () {
|
|
70
|
-
initializeCollection();
|
|
71
|
-
}, 1);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorHTTPSOutbounds=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},instance:{type:String},client:{type:String},date:{type:Date},method:{type:String},url:{type:String},duration:{type:Number},status:{type:String,optional:!0},contentType:{type:String,optional:!0},requestHeaders:{type:Object,blackbox:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("monitor-https-outbounds",schema,!1,!1,[],!0,!1);exports.MonitorHTTPSOutbounds=e.collection_main,exports.MonitorHTTPSOutbounds.createIndex({client:1,instance:1,date:1,method:1,url:1,status:1}),exports.MonitorHTTPSOutbounds.createIndex({client:1,date:1,duration:1}),exports.MonitorHTTPSOutbounds.createIndex({client:1,date:1,method:1,url:1,status:1}),exports.MonitorHTTPSOutbounds.createIndex({client:1,date:1,status:1}),exports.MonitorHTTPSOutbounds.createIndex({client:1,status:1}),exports.MonitorHTTPSOutbounds.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.MonitorHTTPSOutbounds.createIndex({duration:1})}else setTimeout((function(){initializeCollection()}),1)}exports.MonitorHTTPSOutbounds=null,initializeCollection();
|
|
75
2
|
//# sourceMappingURL=monitor-https-outbound.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-https-outbound.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-https-outbound.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","instance","client","date","method","url","duration","status","contentType","requestHeaders","Object","blackbox","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MonitorHTTPSOutbounds","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"yGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,SAAU,CACTR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMC,QAEPS,KAAM,CACLV,KAAMM,MAEPK,OAAQ,CACPX,KAAMC,QAEPW,IAAK,CACJZ,KAAMC,QAEPY,SAAU,CACTb,KAAMI,QAEPU,OAAQ,CACPd,KAAMC,OACNC,UAAU,GAEXa,YAAa,CACZf,KAAMC,OACNC,UAAU,GAEXc,eAAgB,CACfhB,KAAMiB,OACNC,UAAU,IAQZ,SAASC,uBACR,GAAIxB,QAAAyB,iBAAmBzB,QAAAyB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIzB,gBAAA0B,MAAiC,0BAA2BzB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC9G0B,QAAAC,sBAAwBH,EAAMI,gBAC9BF,QAAAC,sBAAsBE,YAAY,CAAClB,OAAQ,EAAGD,SAAU,EAAGE,KAAM,EAAGC,OAAQ,EAAGC,IAAK,EAAGE,OAAQ,IAC/FU,QAAAC,sBAAsBE,YAAY,CAAClB,OAAQ,EAAGC,KAAM,EAAGG,SAAU,IACjEW,QAAAC,sBAAsBE,YAAY,CAAClB,OAAQ,EAAGC,KAAM,EAAGC,OAAQ,EAAGC,IAAK,EAAGE,OAAQ,IAClFU,QAAAC,sBAAsBE,YAAY,CAAClB,OAAQ,EAAGC,KAAM,EAAGI,OAAQ,IAC/DU,QAAAC,sBAAsBE,YAAY,CAAClB,OAAQ,EAAGK,OAAQ,IACtDU,QAAAC,sBAAsBE,YAAY,CAACjB,KAAM,GAAI,CAACkB,mBAAoB,SAClEJ,QAAAC,sBAAsBE,YAAY,CAACd,SAAU,SAG7CgB,YAAW,WACVV,yBACE,GAnBMK,QAAAC,sBAA+D,KAE1EN","file":"monitor-https-outbound.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MonitorHTTPSOutboundModel } from '../models/monitor-https-outbound.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\turl: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tcontentType: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\trequestHeaders: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t}\n};\n\nexport let MonitorHTTPSOutbounds: Collection<MonitorHTTPSOutboundModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MonitorHTTPSOutboundModel>('monitor-https-outbounds', schema, false, false, [], true, false);\n\t\tMonitorHTTPSOutbounds = model.collection_main;\n\t\tMonitorHTTPSOutbounds.createIndex({client: 1, instance: 1, date: 1, method: 1, url: 1, status: 1});\n\t\tMonitorHTTPSOutbounds.createIndex({client: 1, date: 1, duration: 1});\n\t\tMonitorHTTPSOutbounds.createIndex({client: 1, date: 1, method: 1, url: 1, status: 1});\n\t\tMonitorHTTPSOutbounds.createIndex({client: 1, date: 1, status: 1});\n\t\tMonitorHTTPSOutbounds.createIndex({client: 1, status: 1});\n\t\tMonitorHTTPSOutbounds.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tMonitorHTTPSOutbounds.createIndex({duration: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,69 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorMemorys = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
instance: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
client: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
type: Date
|
|
31
|
-
},
|
|
32
|
-
physical_total: {
|
|
33
|
-
type: Number
|
|
34
|
-
},
|
|
35
|
-
physical_used: {
|
|
36
|
-
type: Number
|
|
37
|
-
},
|
|
38
|
-
physical_free: {
|
|
39
|
-
type: Number
|
|
40
|
-
},
|
|
41
|
-
virtual: {
|
|
42
|
-
type: Number
|
|
43
|
-
},
|
|
44
|
-
private: {
|
|
45
|
-
type: Number
|
|
46
|
-
},
|
|
47
|
-
physical: {
|
|
48
|
-
type: Number
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.MonitorMemorys = null;
|
|
52
|
-
initializeCollection();
|
|
53
|
-
function initializeCollection() {
|
|
54
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
55
|
-
var model = new mongo_manager_1.Model('monitor-memorys', schema, false, false, [], true, false);
|
|
56
|
-
exports.MonitorMemorys = model.collection_main;
|
|
57
|
-
exports.MonitorMemorys.createIndex({ client: 1, instance: 1, date: 1 });
|
|
58
|
-
exports.MonitorMemorys.createIndex({ client: 1, date: 1 });
|
|
59
|
-
exports.MonitorMemorys.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
60
|
-
exports.MonitorMemorys.createIndex({ physical_free: 1 });
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
setTimeout(function () {
|
|
64
|
-
initializeCollection();
|
|
65
|
-
}, 1);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorMemorys=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},instance:{type:String},client:{type:String},date:{type:Date},physical_total:{type:Number},physical_used:{type:Number},physical_free:{type:Number},virtual:{type:Number},private:{type:Number},physical:{type:Number}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("monitor-memorys",schema,!1,!1,[],!0,!1);exports.MonitorMemorys=e.collection_main,exports.MonitorMemorys.createIndex({client:1,instance:1,date:1}),exports.MonitorMemorys.createIndex({client:1,date:1}),exports.MonitorMemorys.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.MonitorMemorys.createIndex({physical_free:1})}else setTimeout((function(){initializeCollection()}),1)}exports.MonitorMemorys=null,initializeCollection();
|
|
69
2
|
//# sourceMappingURL=monitor-memory.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","instance","client","date","physical_total","physical_used","physical_free","virtual","private","physical","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MonitorMemorys","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"kGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,SAAU,CACTR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMC,QAEPS,KAAM,CACLV,KAAMM,MAEPK,eAAgB,CACfX,KAAMI,QAEPQ,cAAe,CACdZ,KAAMI,QAEPS,cAAe,CACdb,KAAMI,QAEPU,QAAS,CACRd,KAAMI,QAEPW,QAAS,CACRf,KAAMI,QAEPY,SAAU,CACThB,KAAMI,SAQR,SAASa,uBACR,GAAItB,QAAAuB,iBAAmBvB,QAAAuB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIvB,gBAAAwB,MAA0B,kBAAmBvB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC/FwB,QAAAC,eAAiBH,EAAMI,gBACvBF,QAAAC,eAAeE,YAAY,CAAChB,OAAQ,EAAGD,SAAU,EAAGE,KAAM,IAC1DY,QAAAC,eAAeE,YAAY,CAAChB,OAAQ,EAAGC,KAAM,IAC7CY,QAAAC,eAAeE,YAAY,CAACf,KAAM,GAAI,CAACgB,mBAAoB,SAC3DJ,QAAAC,eAAeE,YAAY,CAACZ,cAAe,SAG3Cc,YAAW,WACVV,yBACE,GAhBMK,QAAAC,eAAiD,KAE5DN","file":"monitor-memory.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MonitorMemoryModel } from '../models/monitor-memory.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tphysical_total: {\n\t\ttype: Number\n\t},\n\tphysical_used: {\n\t\ttype: Number\n\t},\n\tphysical_free: {\n\t\ttype: Number\n\t},\n\tvirtual: {\n\t\ttype: Number\n\t},\n\tprivate: {\n\t\ttype: Number\n\t},\n\tphysical: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorMemorys: Collection<MonitorMemoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MonitorMemoryModel>('monitor-memorys', schema, false, false, [], true, false);\n\t\tMonitorMemorys = model.collection_main;\n\t\tMonitorMemorys.createIndex({client: 1, instance: 1, date: 1});\n\t\tMonitorMemorys.createIndex({client: 1, date: 1});\n\t\tMonitorMemorys.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tMonitorMemorys.createIndex({physical_free: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorMongos = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
instance: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
client: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
date: {
|
|
30
|
-
type: Date
|
|
31
|
-
},
|
|
32
|
-
method: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
doc_collection: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
duration: {
|
|
39
|
-
type: Number
|
|
40
|
-
},
|
|
41
|
-
query: {
|
|
42
|
-
type: String
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.MonitorMongos = null;
|
|
46
|
-
initializeCollection();
|
|
47
|
-
function initializeCollection() {
|
|
48
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
49
|
-
var model = new mongo_manager_1.Model('monitor-mongos', schema, false, false, [], true, false);
|
|
50
|
-
exports.MonitorMongos = model.collection_main;
|
|
51
|
-
exports.MonitorMongos.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
52
|
-
exports.MonitorMongos.createIndex({ client: 1, date: 1, method: 1 });
|
|
53
|
-
exports.MonitorMongos.createIndex({ client: 1, instance: 1, date: 1, method: 1 });
|
|
54
|
-
exports.MonitorMongos.createIndex({ duration: 1 });
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
setTimeout(function () {
|
|
58
|
-
initializeCollection();
|
|
59
|
-
}, 1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorMongos=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},instance:{type:String},client:{type:String},date:{type:Date},method:{type:String},doc_collection:{type:String},duration:{type:Number},query:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("monitor-mongos",schema,!1,!1,[],!0,!1);exports.MonitorMongos=e.collection_main,exports.MonitorMongos.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.MonitorMongos.createIndex({client:1,date:1,method:1}),exports.MonitorMongos.createIndex({client:1,instance:1,date:1,method:1}),exports.MonitorMongos.createIndex({duration:1})}else setTimeout((function(){initializeCollection()}),1)}exports.MonitorMongos=null,initializeCollection();
|
|
63
2
|
//# sourceMappingURL=monitor-mongo.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","instance","client","date","method","doc_collection","duration","query","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MonitorMongos","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,SAAU,CACTR,KAAMC,QAEPQ,OAAQ,CACPT,KAAMC,QAEPS,KAAM,CACLV,KAAMM,MAEPK,OAAQ,CACPX,KAAMC,QAEPW,eAAgB,CACfZ,KAAMC,QAEPY,SAAU,CACTb,KAAMI,QAEPU,MAAO,CACNd,KAAMC,SAQR,SAASc,uBACR,GAAIpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIrB,gBAAAsB,MAAyB,iBAAkBrB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC7FsB,QAAAC,cAAgBH,EAAMI,gBACtBF,QAAAC,cAAcE,YAAY,CAACb,KAAM,GAAI,CAACc,mBAAoB,SAC1DJ,QAAAC,cAAcE,YAAY,CAACd,OAAQ,EAAGC,KAAM,EAAGC,OAAQ,IACvDS,QAAAC,cAAcE,YAAY,CAACd,OAAQ,EAAGD,SAAU,EAAGE,KAAM,EAAGC,OAAQ,IACpES,QAAAC,cAAcE,YAAY,CAACV,SAAU,SAGrCY,YAAW,WACVV,yBACE,GAhBMK,QAAAC,cAA+C,KAE1DN","file":"monitor-mongo.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MonitorMongoModel } from '../models/monitor-mongo.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdoc_collection: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tquery: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorMongos: Collection<MonitorMongoModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MonitorMongoModel>('monitor-mongos', schema, false, false, [], true, false);\n\t\tMonitorMongos = model.collection_main;\n\t\tMonitorMongos.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tMonitorMongos.createIndex({client: 1, date: 1, method: 1});\n\t\tMonitorMongos.createIndex({client: 1, instance: 1, date: 1, method: 1});\n\t\tMonitorMongos.createIndex({duration: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Notifications = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: String
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
exports.Notifications = null;
|
|
28
|
-
initializeCollection();
|
|
29
|
-
function initializeCollection() {
|
|
30
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
31
|
-
var model = new mongo_manager_1.Model('notifications', schema, false, false, [], true, false);
|
|
32
|
-
exports.Notifications = model.collection_main;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
setTimeout(function () {
|
|
36
|
-
initializeCollection();
|
|
37
|
-
}, 1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("notifications",schema,!1,!1,[],!0,!1);exports.Notifications=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.Notifications=null,initializeCollection();
|
|
41
2
|
//# sourceMappingURL=notification.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Notifications","collection_main","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,SAQR,SAASQ,uBACR,GAAId,QAAAe,iBAAmBf,QAAAe,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIf,gBAAAgB,MAAyB,gBAAiBf,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC5FgB,QAAAC,cAAgBH,EAAMI,qBAGtBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,cAA+C,KAE1DN","file":"notification.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { NotificationModel } from '../models/notification.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t}\n};\n\nexport let Notifications: Collection<NotificationModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<NotificationModel>('notifications', schema, false, false, [], true, false);\n\t\tNotifications = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|