@resolveio/server-lib 9.10.2 → 10.0.1
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/collections/app-status.collection.js +11 -1
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +11 -1
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +11 -1
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +11 -1
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +11 -1
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +11 -1
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +11 -1
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +11 -1
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +11 -1
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +11 -1
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +11 -1
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +11 -1
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +11 -1
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-response.collection.js +11 -1
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +24 -19
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +24 -18
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +24 -18
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +11 -1
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +11 -1
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +11 -1
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +11 -1
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +11 -1
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +11 -1
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +11 -1
- package/collections/user.collection.js.map +1 -1
- package/managers/mongo.manager.d.ts +17 -3
- package/managers/mongo.manager.js +43 -26
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +25 -90
- package/managers/monitor.manager.js.map +1 -1
- package/methods/monitor.js +20 -32
- package/methods/monitor.js.map +1 -1
- package/models/monitor-cpu.model.d.ts +5 -2
- package/models/monitor-cpu.model.js.map +1 -1
- package/models/monitor-memory.model.d.ts +5 -2
- package/models/monitor-memory.model.js.map +1 -1
- package/models/monitor-mongo.model.d.ts +5 -2
- package/models/monitor-mongo.model.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -4
- package/public_api.js +0 -4
- package/public_api.js.map +1 -1
- package/collections/monitor-https-inbound.collection.d.ts +0 -3
- package/collections/monitor-https-inbound.collection.js +0 -67
- package/collections/monitor-https-inbound.collection.js.map +0 -1
- package/collections/monitor-https-outbound.collection.d.ts +0 -3
- package/collections/monitor-https-outbound.collection.js +0 -75
- package/collections/monitor-https-outbound.collection.js.map +0 -1
- package/models/monitor-https-inbound.model.d.ts +0 -11
- package/models/monitor-https-inbound.model.js +0 -4
- package/models/monitor-https-inbound.model.js.map +0 -1
- package/models/monitor-https-outbound.model.d.ts +0 -12
- package/models/monitor-https-outbound.model.js +0 -4
- package/models/monitor-https-outbound.model.js.map +0 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ export * from './collections/log.collection';
|
|
|
13
13
|
export * from './collections/logged-in-users.collection';
|
|
14
14
|
export * from './collections/method-response.collection';
|
|
15
15
|
export * from './collections/monitor-cpu.collection';
|
|
16
|
-
export * from './collections/monitor-https-inbound.collection';
|
|
17
|
-
export * from './collections/monitor-https-outbound.collection';
|
|
18
16
|
export * from './collections/monitor-memory.collection';
|
|
19
17
|
export * from './collections/monitor-mongo.collection';
|
|
20
18
|
export * from './collections/notification.collection';
|
|
@@ -42,8 +40,6 @@ export * from './models/logged-in-users.model';
|
|
|
42
40
|
export * from './models/method-response.model';
|
|
43
41
|
export * from './models/method.model';
|
|
44
42
|
export * from './models/monitor-cpu.model';
|
|
45
|
-
export * from './models/monitor-https-inbound.model';
|
|
46
|
-
export * from './models/monitor-https-outbound.model';
|
|
47
43
|
export * from './models/monitor-memory.model';
|
|
48
44
|
export * from './models/monitor-mongo.model';
|
|
49
45
|
export * from './models/notification.model';
|
package/public_api.js
CHANGED
|
@@ -25,8 +25,6 @@ __exportStar(require("./collections/log.collection"), exports);
|
|
|
25
25
|
__exportStar(require("./collections/logged-in-users.collection"), exports);
|
|
26
26
|
__exportStar(require("./collections/method-response.collection"), exports);
|
|
27
27
|
__exportStar(require("./collections/monitor-cpu.collection"), exports);
|
|
28
|
-
__exportStar(require("./collections/monitor-https-inbound.collection"), exports);
|
|
29
|
-
__exportStar(require("./collections/monitor-https-outbound.collection"), exports);
|
|
30
28
|
__exportStar(require("./collections/monitor-memory.collection"), exports);
|
|
31
29
|
__exportStar(require("./collections/monitor-mongo.collection"), exports);
|
|
32
30
|
__exportStar(require("./collections/notification.collection"), exports);
|
|
@@ -54,8 +52,6 @@ __exportStar(require("./models/logged-in-users.model"), exports);
|
|
|
54
52
|
__exportStar(require("./models/method-response.model"), exports);
|
|
55
53
|
__exportStar(require("./models/method.model"), exports);
|
|
56
54
|
__exportStar(require("./models/monitor-cpu.model"), exports);
|
|
57
|
-
__exportStar(require("./models/monitor-https-inbound.model"), exports);
|
|
58
|
-
__exportStar(require("./models/monitor-https-outbound.model"), exports);
|
|
59
55
|
__exportStar(require("./models/monitor-memory.model"), exports);
|
|
60
56
|
__exportStar(require("./models/monitor-mongo.model"), exports);
|
|
61
57
|
__exportStar(require("./models/notification.model"), exports);
|
package/public_api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,2EAAyD;AACzD,uEAAqD;AACrD,
|
|
1
|
+
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,2EAAyD;AACzD,uEAAqD;AACrD,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,iEAA+C;AAC/C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/app-version.collection';\nexport * from './collections/counter.collection';\nexport * from './collections/cron-job-history.collection';\nexport * from './collections/cron-job.collection';\nexport * from './collections/email-history.collection';\nexport * from './collections/email-verified.collection';\nexport * from './collections/file.collection';\nexport * from './collections/flag.collection';\nexport * from './collections/log-method-latency.collection';\nexport * from './collections/log-subscription.collection';\nexport * from './collections/log.collection';\nexport * from './collections/logged-in-users.collection';\nexport * from './collections/method-response.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-memory.collection';\nexport * from './collections/monitor-mongo.collection';\nexport * from './collections/notification.collection';\nexport * from './collections/report-builder-library.collection';\nexport * from './collections/report-builder-report.collection';\nexport * from './collections/user-group.collection';\nexport * from './collections/user-guide.collection';\nexport * from './collections/user.collection';\nexport * from './models/app-status.model';\nexport * from './models/app-version.model';\nexport * from './models/billing-logged-in-users.model';\nexport * from './models/collection-document.model';\nexport * from './models/counter.model';\nexport * from './models/cron-job-history.model';\nexport * from './models/cron-job.model';\nexport * from './models/dialog.model';\nexport * from './models/email-history.model';\nexport * from './models/email-verified.model';\nexport * from './models/file.model';\nexport * from './models/flag.model';\nexport * from './models/log-method-latency.model';\nexport * from './models/log-subscription.model';\nexport * from './models/log.model';\nexport * from './models/logged-in-users.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-memory.model';\nexport * from './models/monitor-mongo.model';\nexport * from './models/notification.model';\nexport * from './models/pagination.model';\nexport * from './models/permission.model';\nexport * from './models/report-builder-library.model';\nexport * from './models/report-builder-report.model';\nexport * from './models/report-builder.model';\nexport * from './models/select-data-label.model';\nexport * from './models/server-response.model';\nexport * from './models/subscription.model';\nexport * from './models/support-ticket.model';\nexport * from './models/user-group.model';\nexport * from './models/user-guide.model';\nexport * from './models/user.model';\nexport * from './util/common';\nexport * from './managers/mongo.manager';"]}
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
|
|
67
|
-
//# sourceMappingURL=monitor-https-inbound.collection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-https-inbound.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,oBAAoB,GAAyC,IAAI,CAAC;AAE7E,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAA2B,wBAAwB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACnH,4BAAoB,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,4BAAoB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;QACvF,4BAAoB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAC;QACpE,4BAAoB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;QAC1E,4BAAoB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;QACrF,4BAAoB,CAAC,WAAW,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAC;KAChD;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","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 +0,0 @@
|
|
|
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
|
-
|
|
75
|
-
//# sourceMappingURL=monitor-https-outbound.collection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-https-outbound.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAES,QAAA,qBAAqB,GAA0C,IAAI,CAAC;AAE/E,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAA4B,yBAAyB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACrH,6BAAqB,GAAG,KAAK,CAAC,eAAe,CAAC;QAC9C,6BAAqB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;QACnG,6BAAqB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAC;QACrE,6BAAqB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;QACtF,6BAAqB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;QACnE,6BAAqB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;QAC1D,6BAAqB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;QACtF,6BAAqB,CAAC,WAAW,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAC,CAAC,CAAC;KACjD;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","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,11 +0,0 @@
|
|
|
1
|
-
import { CollectionDocument } from './collection-document.model';
|
|
2
|
-
export interface MonitorHTTPSInboundModel extends CollectionDocument {
|
|
3
|
-
instance: string;
|
|
4
|
-
client: string;
|
|
5
|
-
date: Date;
|
|
6
|
-
method: string;
|
|
7
|
-
url: string;
|
|
8
|
-
duration: number;
|
|
9
|
-
contentType: string;
|
|
10
|
-
requestHeader: string;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/monitor-https-inbound.model.ts"],"names":[],"mappings":"","file":"monitor-https-inbound.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface MonitorHTTPSInboundModel extends CollectionDocument {\n\tinstance: string;\n\tclient: string;\n\tdate: Date;\n\tmethod: string;\n\turl: string;\n\tduration: number;\n\tcontentType: string;\n\trequestHeader: string;\n}"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CollectionDocument } from './collection-document.model';
|
|
2
|
-
export interface MonitorHTTPSOutboundModel extends CollectionDocument {
|
|
3
|
-
instance: string;
|
|
4
|
-
client: string;
|
|
5
|
-
date: Date;
|
|
6
|
-
method: string;
|
|
7
|
-
url: string;
|
|
8
|
-
duration: number;
|
|
9
|
-
status: string;
|
|
10
|
-
contentType: string;
|
|
11
|
-
requestHeaders: Object;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/monitor-https-outbound.model.ts"],"names":[],"mappings":"","file":"monitor-https-outbound.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface MonitorHTTPSOutboundModel extends CollectionDocument {\n\tinstance: string;\n\tclient: string;\n\tdate: Date;\n\tmethod: string;\n\turl: string;\n\tduration: number;\n\tstatus: string;\n\tcontentType: string;\n\trequestHeaders: Object;\n}"]}
|