@resolveio/server-lib 12.5.53 → 12.5.54
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/.nodemon.json +5 -0
- package/.vscode/settings.json +3 -0
- package/README.md +22 -0
- package/compileDTS.pl +64 -0
- package/gulpfile.js +127 -0
- package/mongodbensurers.js +2 -0
- package/mongostop.js +3 -0
- package/package.json +1 -1
- package/settings.development.json +13 -0
- package/src/client-server-app.ts +7 -0
- package/src/collections/app-status.collection.ts +51 -0
- package/src/collections/counter.collection.ts +54 -0
- package/src/collections/cron-job-history.collection.ts +82 -0
- package/src/collections/cron-job.collection.ts +85 -0
- package/src/collections/email-history.collection.ts +66 -0
- package/src/collections/email-verified.collection.ts +61 -0
- package/src/collections/file.collection.ts +73 -0
- package/src/collections/flag.collection.ts +56 -0
- package/src/collections/log-method-latency.collection.ts +64 -0
- package/src/collections/log-subscription.collection.ts +68 -0
- package/src/collections/log-ts.collection.ts +78 -0
- package/src/collections/log.collection.ts +77 -0
- package/src/collections/logged-in-users.collection.ts +65 -0
- package/src/collections/method-response.collection.ts +66 -0
- package/src/collections/monitor-cpu.collection.ts +63 -0
- package/src/collections/monitor-memory.collection.ts +75 -0
- package/src/collections/monitor-mongo.collection.ts +69 -0
- package/src/collections/notification.collection.ts +51 -0
- package/src/collections/report-builder-dashboard-builder.collection.ts +109 -0
- package/src/collections/report-builder-library.collection.ts +89 -0
- package/src/collections/report-builder-report.collection.ts +149 -0
- package/src/collections/user-group.collection.ts +90 -0
- package/src/collections/user-guide.collection.ts +57 -0
- package/src/collections/user.collection.ts +259 -0
- package/src/cron/cron.ts +188 -0
- package/src/fixtures/cron-jobs.ts +25 -0
- package/src/fixtures/init.ts +10 -0
- package/src/http/auth.ts +732 -0
- package/src/http/health.ts +7 -0
- package/src/http/home.ts +71 -0
- package/src/index.ts +71 -0
- package/src/managers/cron.manager.ts +208 -0
- package/src/managers/method.manager.ts +607 -0
- package/src/managers/mongo.manager.ts +2282 -0
- package/src/managers/monitor.manager.ts +323 -0
- package/src/managers/subscription.manager.ts +1196 -0
- package/{managers/subscription.performance.js → src/managers/subscription.performance.ts} +68 -33
- package/src/methods/accounts.ts +202 -0
- package/src/methods/aws.ts +507 -0
- package/src/methods/collections.ts +512 -0
- package/src/methods/counters.ts +75 -0
- package/src/methods/cron-jobs.ts +1454 -0
- package/src/methods/flags.ts +7 -0
- package/src/methods/logs.ts +327 -0
- package/src/methods/monitor.ts +548 -0
- package/src/methods/pdf.ts +615 -0
- package/src/methods/report-builder.ts +876 -0
- package/src/methods/support.ts +146 -0
- package/{models/app-status.model.d.ts → src/models/app-status.model.ts} +3 -2
- package/{models/billing-logged-in-users.model.d.ts → src/models/billing-logged-in-users.model.ts} +5 -4
- package/src/models/collection-document.model.ts +22 -0
- package/{models/counter.model.d.ts → src/models/counter.model.ts} +4 -3
- package/src/models/cron-job-history.model.ts +13 -0
- package/src/models/cron-job.model.ts +14 -0
- package/src/models/dialog.model.ts +25 -0
- package/{models/email-history.model.d.ts → src/models/email-history.model.ts} +8 -7
- package/{models/email-verified.model.d.ts → src/models/email-verified.model.ts} +6 -5
- package/{models/file.model.d.ts → src/models/file.model.ts} +8 -7
- package/{models/flag.model.d.ts → src/models/flag.model.ts} +4 -3
- package/{models/log-method-latency.model.d.ts → src/models/log-method-latency.model.ts} +5 -4
- package/{models/log-subscription.model.d.ts → src/models/log-subscription.model.ts} +8 -6
- package/{models/log.model.d.ts → src/models/log.model.ts} +12 -10
- package/{models/logged-in-users.model.d.ts → src/models/logged-in-users.model.ts} +6 -5
- package/{models/method-response.model.d.ts → src/models/method-response.model.ts} +7 -6
- package/src/models/method.model.ts +11 -0
- package/{models/monitor-cpu.model.d.ts → src/models/monitor-cpu.model.ts} +9 -7
- package/src/models/monitor-memory.model.ts +17 -0
- package/src/models/monitor-mongo.model.ts +15 -0
- package/{models/notification.model.d.ts → src/models/notification.model.ts} +3 -2
- package/src/models/pagination.model.ts +30 -0
- package/src/models/permission.model.ts +14 -0
- package/src/models/report-builder-dashboard-builder.model.ts +29 -0
- package/src/models/report-builder-library.model.ts +20 -0
- package/src/models/report-builder-report.model.ts +110 -0
- package/src/models/report-builder.model.ts +68 -0
- package/src/models/select-data-label.model.ts +9 -0
- package/src/models/server-response.model.ts +5 -0
- package/src/models/subscription.model.ts +64 -0
- package/src/models/support-ticket.model.ts +81 -0
- package/src/models/user-group.model.ts +23 -0
- package/{models/user-guide.model.d.ts → src/models/user-guide.model.ts} +5 -4
- package/src/models/user.model.ts +79 -0
- package/{public_api.d.ts → src/public_api.ts} +1 -1
- package/src/publications/app-status.ts +13 -0
- package/src/publications/cron-jobs.ts +30 -0
- package/src/publications/files.ts +34 -0
- package/src/publications/flags.ts +20 -0
- package/src/publications/logs.ts +164 -0
- package/src/publications/method-responses.ts +13 -0
- package/src/publications/notifications.ts +13 -0
- package/src/publications/report-builder-dashboard-builders.ts +39 -0
- package/src/publications/report-builder-libraries.ts +41 -0
- package/src/publications/report-builder-reports.ts +48 -0
- package/src/publications/super-admin.ts +13 -0
- package/src/publications/user-groups.ts +12 -0
- package/src/publications/user-guides.ts +12 -0
- package/src/server-app.ts +769 -0
- package/src/util/common.ts +519 -0
- package/src/util/schema-report-builder.ts +413 -0
- package/tsconfig.json +30 -0
- package/tslint.json +143 -0
- package/client-server-app.d.ts +0 -1
- package/client-server-app.js +0 -48
- package/client-server-app.js.map +0 -1
- package/collections/app-status.collection.d.ts +0 -3
- package/collections/app-status.collection.js +0 -51
- package/collections/app-status.collection.js.map +0 -1
- package/collections/counter.collection.d.ts +0 -3
- package/collections/counter.collection.js +0 -54
- package/collections/counter.collection.js.map +0 -1
- package/collections/cron-job-history.collection.d.ts +0 -3
- package/collections/cron-job-history.collection.js +0 -82
- package/collections/cron-job-history.collection.js.map +0 -1
- package/collections/cron-job.collection.d.ts +0 -3
- package/collections/cron-job.collection.js +0 -85
- package/collections/cron-job.collection.js.map +0 -1
- package/collections/email-history.collection.d.ts +0 -3
- package/collections/email-history.collection.js +0 -66
- package/collections/email-history.collection.js.map +0 -1
- package/collections/email-verified.collection.d.ts +0 -3
- package/collections/email-verified.collection.js +0 -61
- package/collections/email-verified.collection.js.map +0 -1
- package/collections/file.collection.d.ts +0 -3
- package/collections/file.collection.js +0 -73
- package/collections/file.collection.js.map +0 -1
- package/collections/flag.collection.d.ts +0 -3
- package/collections/flag.collection.js +0 -56
- package/collections/flag.collection.js.map +0 -1
- package/collections/log-method-latency.collection.d.ts +0 -3
- package/collections/log-method-latency.collection.js +0 -64
- package/collections/log-method-latency.collection.js.map +0 -1
- package/collections/log-subscription.collection.d.ts +0 -3
- package/collections/log-subscription.collection.js +0 -68
- package/collections/log-subscription.collection.js.map +0 -1
- package/collections/log-ts.collection.d.ts +0 -3
- package/collections/log-ts.collection.js +0 -78
- package/collections/log-ts.collection.js.map +0 -1
- package/collections/log.collection.d.ts +0 -3
- package/collections/log.collection.js +0 -77
- package/collections/log.collection.js.map +0 -1
- package/collections/logged-in-users.collection.d.ts +0 -3
- package/collections/logged-in-users.collection.js +0 -65
- package/collections/logged-in-users.collection.js.map +0 -1
- package/collections/method-response.collection.d.ts +0 -3
- package/collections/method-response.collection.js +0 -66
- package/collections/method-response.collection.js.map +0 -1
- package/collections/monitor-cpu.collection.d.ts +0 -3
- package/collections/monitor-cpu.collection.js +0 -63
- package/collections/monitor-cpu.collection.js.map +0 -1
- package/collections/monitor-memory.collection.d.ts +0 -3
- package/collections/monitor-memory.collection.js +0 -75
- package/collections/monitor-memory.collection.js.map +0 -1
- package/collections/monitor-mongo.collection.d.ts +0 -3
- package/collections/monitor-mongo.collection.js +0 -69
- package/collections/monitor-mongo.collection.js.map +0 -1
- package/collections/notification.collection.d.ts +0 -3
- package/collections/notification.collection.js +0 -51
- package/collections/notification.collection.js.map +0 -1
- package/collections/report-builder-dashboard-builder.collection.d.ts +0 -3
- package/collections/report-builder-dashboard-builder.collection.js +0 -109
- package/collections/report-builder-dashboard-builder.collection.js.map +0 -1
- package/collections/report-builder-library.collection.d.ts +0 -3
- package/collections/report-builder-library.collection.js +0 -87
- package/collections/report-builder-library.collection.js.map +0 -1
- package/collections/report-builder-report.collection.d.ts +0 -4
- package/collections/report-builder-report.collection.js +0 -149
- package/collections/report-builder-report.collection.js.map +0 -1
- package/collections/user-group.collection.d.ts +0 -4
- package/collections/user-group.collection.js +0 -90
- package/collections/user-group.collection.js.map +0 -1
- package/collections/user-guide.collection.d.ts +0 -3
- package/collections/user-guide.collection.js +0 -57
- package/collections/user-guide.collection.js.map +0 -1
- package/collections/user.collection.d.ts +0 -4
- package/collections/user.collection.js +0 -259
- package/collections/user.collection.js.map +0 -1
- package/cron/cron.d.ts +0 -5
- package/cron/cron.js +0 -162
- package/cron/cron.js.map +0 -1
- package/fixtures/cron-jobs.d.ts +0 -1
- package/fixtures/cron-jobs.js +0 -73
- package/fixtures/cron-jobs.js.map +0 -1
- package/fixtures/init.d.ts +0 -1
- package/fixtures/init.js +0 -59
- package/fixtures/init.js.map +0 -1
- package/http/auth.d.ts +0 -2
- package/http/auth.js +0 -763
- package/http/auth.js.map +0 -1
- package/http/health.d.ts +0 -1
- package/http/health.js +0 -12
- package/http/health.js.map +0 -1
- package/http/home.d.ts +0 -2
- package/http/home.js +0 -66
- package/http/home.js.map +0 -1
- package/index.d.ts +0 -23
- package/index.js +0 -127
- package/index.js.map +0 -1
- package/managers/cron.manager.d.ts +0 -17
- package/managers/cron.manager.js +0 -242
- package/managers/cron.manager.js.map +0 -1
- package/managers/method.manager.d.ts +0 -38
- package/managers/method.manager.js +0 -595
- package/managers/method.manager.js.map +0 -1
- package/managers/mongo.manager.d.ts +0 -178
- package/managers/mongo.manager.js +0 -2221
- package/managers/mongo.manager.js.map +0 -1
- package/managers/monitor.manager.d.ts +0 -59
- package/managers/monitor.manager.js +0 -351
- package/managers/monitor.manager.js.map +0 -1
- package/managers/subscription.manager.d.ts +0 -50
- package/managers/subscription.manager.js +0 -1091
- package/managers/subscription.manager.js.map +0 -1
- package/managers/subscription.performance.d.ts +0 -1
- package/managers/subscription.performance.js.map +0 -1
- package/methods/accounts.d.ts +0 -2
- package/methods/accounts.js +0 -274
- package/methods/accounts.js.map +0 -1
- package/methods/aws.d.ts +0 -2
- package/methods/aws.js +0 -617
- package/methods/aws.js.map +0 -1
- package/methods/collections.d.ts +0 -2
- package/methods/collections.js +0 -499
- package/methods/collections.js.map +0 -1
- package/methods/counters.d.ts +0 -2
- package/methods/counters.js +0 -122
- package/methods/counters.js.map +0 -1
- package/methods/cron-jobs.d.ts +0 -2
- package/methods/cron-jobs.js +0 -1315
- package/methods/cron-jobs.js.map +0 -1
- package/methods/flags.d.ts +0 -2
- package/methods/flags.js +0 -9
- package/methods/flags.js.map +0 -1
- package/methods/logs.d.ts +0 -2
- package/methods/logs.js +0 -371
- package/methods/logs.js.map +0 -1
- package/methods/monitor.d.ts +0 -2
- package/methods/monitor.js +0 -565
- package/methods/monitor.js.map +0 -1
- package/methods/pdf.d.ts +0 -2
- package/methods/pdf.js +0 -468
- package/methods/pdf.js.map +0 -1
- package/methods/report-builder.d.ts +0 -2
- package/methods/report-builder.js +0 -858
- package/methods/report-builder.js.map +0 -1
- package/methods/support.d.ts +0 -2
- package/methods/support.js +0 -246
- package/methods/support.js.map +0 -1
- package/models/app-status.model.js +0 -4
- package/models/app-status.model.js.map +0 -1
- package/models/billing-logged-in-users.model.js +0 -4
- package/models/billing-logged-in-users.model.js.map +0 -1
- package/models/collection-document.model.d.ts +0 -19
- package/models/collection-document.model.js +0 -4
- package/models/collection-document.model.js.map +0 -1
- package/models/counter.model.js +0 -4
- package/models/counter.model.js.map +0 -1
- package/models/cron-job-history.model.d.ts +0 -12
- package/models/cron-job-history.model.js +0 -4
- package/models/cron-job-history.model.js.map +0 -1
- package/models/cron-job.model.d.ts +0 -13
- package/models/cron-job.model.js +0 -4
- package/models/cron-job.model.js.map +0 -1
- package/models/dialog.model.d.ts +0 -23
- package/models/dialog.model.js +0 -4
- package/models/dialog.model.js.map +0 -1
- package/models/email-history.model.js +0 -4
- package/models/email-history.model.js.map +0 -1
- package/models/email-verified.model.js +0 -4
- package/models/email-verified.model.js.map +0 -1
- package/models/file.model.js +0 -4
- package/models/file.model.js.map +0 -1
- package/models/flag.model.js +0 -4
- package/models/flag.model.js.map +0 -1
- package/models/log-method-latency.model.js +0 -4
- package/models/log-method-latency.model.js.map +0 -1
- package/models/log-subscription.model.js +0 -4
- package/models/log-subscription.model.js.map +0 -1
- package/models/log.model.js +0 -4
- package/models/log.model.js.map +0 -1
- package/models/logged-in-users.model.js +0 -4
- package/models/logged-in-users.model.js.map +0 -1
- package/models/method-response.model.js +0 -4
- package/models/method-response.model.js.map +0 -1
- package/models/method.model.d.ts +0 -9
- package/models/method.model.js +0 -4
- package/models/method.model.js.map +0 -1
- package/models/monitor-cpu.model.js +0 -4
- package/models/monitor-cpu.model.js.map +0 -1
- package/models/monitor-memory.model.d.ts +0 -15
- package/models/monitor-memory.model.js +0 -4
- package/models/monitor-memory.model.js.map +0 -1
- package/models/monitor-mongo.model.d.ts +0 -13
- package/models/monitor-mongo.model.js +0 -4
- package/models/monitor-mongo.model.js.map +0 -1
- package/models/notification.model.js +0 -4
- package/models/notification.model.js.map +0 -1
- package/models/pagination.model.d.ts +0 -10
- package/models/pagination.model.js +0 -24
- package/models/pagination.model.js.map +0 -1
- package/models/permission.model.d.ts +0 -12
- package/models/permission.model.js +0 -4
- package/models/permission.model.js.map +0 -1
- package/models/report-builder-dashboard-builder.model.d.ts +0 -25
- package/models/report-builder-dashboard-builder.model.js +0 -4
- package/models/report-builder-dashboard-builder.model.js.map +0 -1
- package/models/report-builder-library.model.d.ts +0 -17
- package/models/report-builder-library.model.js +0 -4
- package/models/report-builder-library.model.js.map +0 -1
- package/models/report-builder-report.model.d.ts +0 -98
- package/models/report-builder-report.model.js +0 -4
- package/models/report-builder-report.model.js.map +0 -1
- package/models/report-builder.model.d.ts +0 -61
- package/models/report-builder.model.js +0 -4
- package/models/report-builder.model.js.map +0 -1
- package/models/select-data-label.model.d.ts +0 -9
- package/models/select-data-label.model.js +0 -4
- package/models/select-data-label.model.js.map +0 -1
- package/models/server-response.model.d.ts +0 -5
- package/models/server-response.model.js +0 -4
- package/models/server-response.model.js.map +0 -1
- package/models/subscription.model.d.ts +0 -23
- package/models/subscription.model.js +0 -4
- package/models/subscription.model.js.map +0 -1
- package/models/support-ticket.model.d.ts +0 -72
- package/models/support-ticket.model.js +0 -4
- package/models/support-ticket.model.js.map +0 -1
- package/models/user-group.model.d.ts +0 -19
- package/models/user-group.model.js +0 -4
- package/models/user-group.model.js.map +0 -1
- package/models/user-guide.model.js +0 -4
- package/models/user-guide.model.js.map +0 -1
- package/models/user.model.d.ts +0 -70
- package/models/user.model.js +0 -4
- package/models/user.model.js.map +0 -1
- package/public_api.js +0 -75
- package/public_api.js.map +0 -1
- package/publications/app-status.d.ts +0 -2
- package/publications/app-status.js +0 -17
- package/publications/app-status.js.map +0 -1
- package/publications/cron-jobs.d.ts +0 -2
- package/publications/cron-jobs.js +0 -33
- package/publications/cron-jobs.js.map +0 -1
- package/publications/files.d.ts +0 -2
- package/publications/files.js +0 -37
- package/publications/files.js.map +0 -1
- package/publications/flags.d.ts +0 -2
- package/publications/flags.js +0 -23
- package/publications/flags.js.map +0 -1
- package/publications/logs.d.ts +0 -2
- package/publications/logs.js +0 -165
- package/publications/logs.js.map +0 -1
- package/publications/method-responses.d.ts +0 -2
- package/publications/method-responses.js +0 -17
- package/publications/method-responses.js.map +0 -1
- package/publications/notifications.d.ts +0 -2
- package/publications/notifications.js +0 -17
- package/publications/notifications.js.map +0 -1
- package/publications/report-builder-dashboard-builders.d.ts +0 -2
- package/publications/report-builder-dashboard-builders.js +0 -43
- package/publications/report-builder-dashboard-builders.js.map +0 -1
- package/publications/report-builder-libraries.d.ts +0 -2
- package/publications/report-builder-libraries.js +0 -90
- package/publications/report-builder-libraries.js.map +0 -1
- package/publications/report-builder-reports.d.ts +0 -2
- package/publications/report-builder-reports.js +0 -51
- package/publications/report-builder-reports.js.map +0 -1
- package/publications/super-admin.d.ts +0 -2
- package/publications/super-admin.js +0 -17
- package/publications/super-admin.js.map +0 -1
- package/publications/user-groups.d.ts +0 -1
- package/publications/user-groups.js +0 -17
- package/publications/user-groups.js.map +0 -1
- package/publications/user-guides.d.ts +0 -1
- package/publications/user-guides.js +0 -17
- package/publications/user-guides.js.map +0 -1
- package/server-app.d.ts +0 -52
- package/server-app.js +0 -739
- package/server-app.js.map +0 -1
- package/util/common.d.ts +0 -24
- package/util/common.js +0 -511
- package/util/common.js.map +0 -1
- package/util/schema-report-builder.d.ts +0 -6
- package/util/schema-report-builder.js +0 -453
- package/util/schema-report-builder.js.map +0 -1
- /package/{private → src/private}/email-templates/enrollment.html +0 -0
- /package/{private → src/private}/email-templates/forgot-password.html +0 -0
- /package/{private → src/private}/email-templates/support-ticket-deleted.html +0 -0
- /package/{private → src/private}/email-templates/support-ticket-modified.html +0 -0
- /package/{private → src/private}/email-templates/support-ticket.html +0 -0
- /package/{private → src/private}/images/ResolveIO.png +0 -0
package/methods/monitor.js
DELETED
|
@@ -1,565 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.loadMonitorMethods = void 0;
|
|
40
|
-
var monitor_mongo_collection_1 = require("../collections/monitor-mongo.collection");
|
|
41
|
-
var monitor_cpu_collection_1 = require("../collections/monitor-cpu.collection");
|
|
42
|
-
var monitor_memory_collection_1 = require("../collections/monitor-memory.collection");
|
|
43
|
-
var __1 = require("..");
|
|
44
|
-
var common_1 = require("../util/common");
|
|
45
|
-
function loadMonitorMethods(methodManager) {
|
|
46
|
-
methodManager.methods({
|
|
47
|
-
superadminMonitorGraphData: {
|
|
48
|
-
function: function (date_start, date_end, collection, instance, client, graphInterval, variable, variableType) {
|
|
49
|
-
var _this = this;
|
|
50
|
-
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
51
|
-
var groupId, groupDate, query, graphData;
|
|
52
|
-
var _a, _b;
|
|
53
|
-
return __generator(this, function (_c) {
|
|
54
|
-
switch (_c.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
groupId = {};
|
|
57
|
-
groupDate = {};
|
|
58
|
-
if (graphInterval === 'seconds') {
|
|
59
|
-
groupId = {
|
|
60
|
-
second: {
|
|
61
|
-
$second: {
|
|
62
|
-
date: '$date',
|
|
63
|
-
timezone: process.env.TZ
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
minute: {
|
|
67
|
-
$minute: {
|
|
68
|
-
date: '$date',
|
|
69
|
-
timezone: process.env.TZ
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
hour: {
|
|
73
|
-
$hour: {
|
|
74
|
-
date: '$date',
|
|
75
|
-
timezone: process.env.TZ
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
day: {
|
|
79
|
-
$dayOfMonth: {
|
|
80
|
-
date: '$date',
|
|
81
|
-
timezone: process.env.TZ
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
month: {
|
|
85
|
-
$month: {
|
|
86
|
-
date: '$date',
|
|
87
|
-
timezone: process.env.TZ
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
year: {
|
|
91
|
-
$year: {
|
|
92
|
-
date: '$date',
|
|
93
|
-
timezone: process.env.TZ
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
client: '$metadata.client',
|
|
97
|
-
instance: '$metadata.instance'
|
|
98
|
-
};
|
|
99
|
-
groupDate = {
|
|
100
|
-
'year': '$_id.year',
|
|
101
|
-
'month': '$_id.month',
|
|
102
|
-
'day': '$_id.day',
|
|
103
|
-
'hour': '$_id.hour',
|
|
104
|
-
'minute': '$_id.minute',
|
|
105
|
-
'second': '$_id.second'
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
else if (graphInterval === 'minutes') {
|
|
109
|
-
groupId = {
|
|
110
|
-
minute: {
|
|
111
|
-
$minute: {
|
|
112
|
-
date: '$date',
|
|
113
|
-
timezone: process.env.TZ
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
hour: {
|
|
117
|
-
$hour: {
|
|
118
|
-
date: '$date',
|
|
119
|
-
timezone: process.env.TZ
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
day: {
|
|
123
|
-
$dayOfMonth: {
|
|
124
|
-
date: '$date',
|
|
125
|
-
timezone: process.env.TZ
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
month: {
|
|
129
|
-
$month: {
|
|
130
|
-
date: '$date',
|
|
131
|
-
timezone: process.env.TZ
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
year: {
|
|
135
|
-
$year: {
|
|
136
|
-
date: '$date',
|
|
137
|
-
timezone: process.env.TZ
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
client: '$metadata.client',
|
|
141
|
-
instance: '$metadata.instance'
|
|
142
|
-
};
|
|
143
|
-
groupDate = {
|
|
144
|
-
'year': '$_id.year',
|
|
145
|
-
'month': '$_id.month',
|
|
146
|
-
'day': '$_id.day',
|
|
147
|
-
'hour': '$_id.hour',
|
|
148
|
-
'minute': '$_id.minute'
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
else if (graphInterval === 'hours') {
|
|
152
|
-
groupId = {
|
|
153
|
-
hour: {
|
|
154
|
-
$hour: {
|
|
155
|
-
date: '$date',
|
|
156
|
-
timezone: process.env.TZ
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
day: {
|
|
160
|
-
$dayOfMonth: {
|
|
161
|
-
date: '$date',
|
|
162
|
-
timezone: process.env.TZ
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
month: {
|
|
166
|
-
$month: {
|
|
167
|
-
date: '$date',
|
|
168
|
-
timezone: process.env.TZ
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
year: {
|
|
172
|
-
$year: {
|
|
173
|
-
date: '$date',
|
|
174
|
-
timezone: process.env.TZ
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
client: '$metadata.client',
|
|
178
|
-
instance: '$metadata.instance'
|
|
179
|
-
};
|
|
180
|
-
groupDate = {
|
|
181
|
-
'year': '$_id.year',
|
|
182
|
-
'month': '$_id.month',
|
|
183
|
-
'day': '$_id.day',
|
|
184
|
-
'hour': '$_id.hour'
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
groupId = {
|
|
189
|
-
day: {
|
|
190
|
-
$dayOfMonth: {
|
|
191
|
-
date: '$date',
|
|
192
|
-
timezone: process.env.TZ
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
month: {
|
|
196
|
-
$month: {
|
|
197
|
-
date: '$date',
|
|
198
|
-
timezone: process.env.TZ
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
year: {
|
|
202
|
-
$year: {
|
|
203
|
-
date: '$date',
|
|
204
|
-
timezone: process.env.TZ
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
client: '$metadata.client',
|
|
208
|
-
instance: '$metadata.instance'
|
|
209
|
-
};
|
|
210
|
-
groupDate = {
|
|
211
|
-
'year': '$_id.year',
|
|
212
|
-
'month': '$_id.month',
|
|
213
|
-
'day': '$_id.day'
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
query = [
|
|
217
|
-
{
|
|
218
|
-
$match: {
|
|
219
|
-
$and: [
|
|
220
|
-
{
|
|
221
|
-
date: { $gte: date_start }
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
date: { $lte: date_end }
|
|
225
|
-
}
|
|
226
|
-
]
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
];
|
|
230
|
-
if (client) {
|
|
231
|
-
query[0]['$match'].$and.push({ 'metadata.client': client });
|
|
232
|
-
}
|
|
233
|
-
if (instance) {
|
|
234
|
-
query[0]['$match'].$and.push({ 'metadata.instance': instance });
|
|
235
|
-
}
|
|
236
|
-
query.push({
|
|
237
|
-
$group: (_a = {
|
|
238
|
-
_id: groupId
|
|
239
|
-
},
|
|
240
|
-
_a[variable] = variableType === 'count' ? { $sum: 1 } : (_b = {},
|
|
241
|
-
_b['$' + variableType] = '$' + variable,
|
|
242
|
-
_b),
|
|
243
|
-
_a)
|
|
244
|
-
});
|
|
245
|
-
query.push({
|
|
246
|
-
$group: {
|
|
247
|
-
_id: groupDate,
|
|
248
|
-
data: {
|
|
249
|
-
$push: { k: { $concat: ['$_id.client', ' - ', '$_id.instance'] }, v: '$' + variable }
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
query.push({
|
|
254
|
-
$addFields: {
|
|
255
|
-
data: {
|
|
256
|
-
$arrayToObject: '$data'
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
query.push({
|
|
261
|
-
$replaceRoot: {
|
|
262
|
-
newRoot: {
|
|
263
|
-
$mergeObjects: ['$data', '$$ROOT']
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
});
|
|
267
|
-
query.push({
|
|
268
|
-
$project: {
|
|
269
|
-
data: 0
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
return [4 /*yield*/, __1.ResolveIOServer.getMongoManager().collection(collection).aggregate(query, { allowDiskUse: true, readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary' }, true)];
|
|
273
|
-
case 1:
|
|
274
|
-
graphData = _c.sent();
|
|
275
|
-
resolve(graphData);
|
|
276
|
-
return [2 /*return*/];
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
}); });
|
|
280
|
-
},
|
|
281
|
-
skipValidation: true
|
|
282
|
-
},
|
|
283
|
-
superadminMonitorTableData: {
|
|
284
|
-
function: function (date_start, date_end, collection, instance, client, graphInterval, variable, variableType) {
|
|
285
|
-
var _this = this;
|
|
286
|
-
return new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
287
|
-
var groupId, groupDate, query, firstGroupId, graphData;
|
|
288
|
-
var _a, _b, _c, _d, _e;
|
|
289
|
-
return __generator(this, function (_f) {
|
|
290
|
-
switch (_f.label) {
|
|
291
|
-
case 0:
|
|
292
|
-
groupId = {};
|
|
293
|
-
groupDate = {};
|
|
294
|
-
if (collection !== 'monitor-mongos') {
|
|
295
|
-
resolve([]);
|
|
296
|
-
return [2 /*return*/];
|
|
297
|
-
}
|
|
298
|
-
if (graphInterval === 'seconds') {
|
|
299
|
-
groupId = {
|
|
300
|
-
second: {
|
|
301
|
-
$second: {
|
|
302
|
-
date: '$date',
|
|
303
|
-
timezone: process.env.TZ
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
minute: {
|
|
307
|
-
$minute: {
|
|
308
|
-
date: '$date',
|
|
309
|
-
timezone: process.env.TZ
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
hour: {
|
|
313
|
-
$hour: {
|
|
314
|
-
date: '$date',
|
|
315
|
-
timezone: process.env.TZ
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
day: {
|
|
319
|
-
$dayOfMonth: {
|
|
320
|
-
date: '$date',
|
|
321
|
-
timezone: process.env.TZ
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
month: {
|
|
325
|
-
$month: {
|
|
326
|
-
date: '$date',
|
|
327
|
-
timezone: process.env.TZ
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
year: {
|
|
331
|
-
$year: {
|
|
332
|
-
date: '$date',
|
|
333
|
-
timezone: process.env.TZ
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
groupDate = {
|
|
338
|
-
'year': '$_id.year',
|
|
339
|
-
'month': '$_id.month',
|
|
340
|
-
'day': '$_id.day',
|
|
341
|
-
'hour': '$_id.hour',
|
|
342
|
-
'minute': '$_id.minute',
|
|
343
|
-
'second': '$_id.second'
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
else if (graphInterval === 'minutes') {
|
|
347
|
-
groupId = {
|
|
348
|
-
minute: {
|
|
349
|
-
$minute: {
|
|
350
|
-
date: '$date',
|
|
351
|
-
timezone: process.env.TZ
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
hour: {
|
|
355
|
-
$hour: {
|
|
356
|
-
date: '$date',
|
|
357
|
-
timezone: process.env.TZ
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
day: {
|
|
361
|
-
$dayOfMonth: {
|
|
362
|
-
date: '$date',
|
|
363
|
-
timezone: process.env.TZ
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
month: {
|
|
367
|
-
$month: {
|
|
368
|
-
date: '$date',
|
|
369
|
-
timezone: process.env.TZ
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
year: {
|
|
373
|
-
$year: {
|
|
374
|
-
date: '$date',
|
|
375
|
-
timezone: process.env.TZ
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
};
|
|
379
|
-
groupDate = {
|
|
380
|
-
'year': '$_id.year',
|
|
381
|
-
'month': '$_id.month',
|
|
382
|
-
'day': '$_id.day',
|
|
383
|
-
'hour': '$_id.hour',
|
|
384
|
-
'minute': '$_id.minute'
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
else if (graphInterval === 'hours') {
|
|
388
|
-
groupId = {
|
|
389
|
-
hour: {
|
|
390
|
-
$hour: {
|
|
391
|
-
date: '$date',
|
|
392
|
-
timezone: process.env.TZ
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
day: {
|
|
396
|
-
$dayOfMonth: {
|
|
397
|
-
date: '$date',
|
|
398
|
-
timezone: process.env.TZ
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
month: {
|
|
402
|
-
$month: {
|
|
403
|
-
date: '$date',
|
|
404
|
-
timezone: process.env.TZ
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
year: {
|
|
408
|
-
$year: {
|
|
409
|
-
date: '$date',
|
|
410
|
-
timezone: process.env.TZ
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
groupDate = {
|
|
415
|
-
'year': '$_id.year',
|
|
416
|
-
'month': '$_id.month',
|
|
417
|
-
'day': '$_id.day',
|
|
418
|
-
'hour': '$_id.hour'
|
|
419
|
-
};
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
groupId = {
|
|
423
|
-
day: {
|
|
424
|
-
$dayOfMonth: {
|
|
425
|
-
date: '$date',
|
|
426
|
-
timezone: process.env.TZ
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
month: {
|
|
430
|
-
$month: {
|
|
431
|
-
date: '$date',
|
|
432
|
-
timezone: process.env.TZ
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
year: {
|
|
436
|
-
$year: {
|
|
437
|
-
date: '$date',
|
|
438
|
-
timezone: process.env.TZ
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
};
|
|
442
|
-
groupDate = {
|
|
443
|
-
'year': '$_id.year',
|
|
444
|
-
'month': '$_id.month',
|
|
445
|
-
'day': '$_id.day'
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
query = [
|
|
449
|
-
{
|
|
450
|
-
$match: {
|
|
451
|
-
$and: [
|
|
452
|
-
{
|
|
453
|
-
date: { $gte: date_start }
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
date: { $lte: date_end }
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
];
|
|
462
|
-
if (client) {
|
|
463
|
-
query[0]['$match'].$and.push({ client: 'metadata.client' });
|
|
464
|
-
}
|
|
465
|
-
if (instance) {
|
|
466
|
-
query[0]['$match'].$and.push({ instance: 'metadata.instance' });
|
|
467
|
-
}
|
|
468
|
-
firstGroupId = (0, common_1.deepCopy)(groupId);
|
|
469
|
-
firstGroupId['client'] = '$metadata.client';
|
|
470
|
-
firstGroupId['instance'] = '$metadata.instance';
|
|
471
|
-
firstGroupId[variable] = '$' + variable;
|
|
472
|
-
groupDate[variable] = '$' + variable;
|
|
473
|
-
groupDate['date'] = '$date';
|
|
474
|
-
groupDate['data'] = '$data';
|
|
475
|
-
groupId['client'] = '$_id.client';
|
|
476
|
-
groupId['instance'] = '$_id.instance';
|
|
477
|
-
query.push({
|
|
478
|
-
$group: (_a = {
|
|
479
|
-
_id: firstGroupId
|
|
480
|
-
},
|
|
481
|
-
_a[variable] = {
|
|
482
|
-
'$sum': 1
|
|
483
|
-
},
|
|
484
|
-
_a[variable + '_name'] = {
|
|
485
|
-
$first: '$' + [variable]
|
|
486
|
-
},
|
|
487
|
-
_a.date = {
|
|
488
|
-
$first: '$date'
|
|
489
|
-
},
|
|
490
|
-
_a)
|
|
491
|
-
});
|
|
492
|
-
query.push({
|
|
493
|
-
$addFields: {
|
|
494
|
-
data: (_b = {},
|
|
495
|
-
_b[variable] = '$' + variable,
|
|
496
|
-
_b[variable + '_name'] = '$' + variable + '_name',
|
|
497
|
-
_b)
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
query.push({
|
|
501
|
-
$group: (_c = {
|
|
502
|
-
_id: groupId
|
|
503
|
-
},
|
|
504
|
-
_c[variable] = {
|
|
505
|
-
'$sum': '$data.' + variable
|
|
506
|
-
},
|
|
507
|
-
_c.date = {
|
|
508
|
-
$first: '$date'
|
|
509
|
-
},
|
|
510
|
-
_c.data = {
|
|
511
|
-
$push: '$data'
|
|
512
|
-
},
|
|
513
|
-
_c)
|
|
514
|
-
});
|
|
515
|
-
query.push({
|
|
516
|
-
$addFields: (_d = {},
|
|
517
|
-
_d[variable] = groupDate,
|
|
518
|
-
_d)
|
|
519
|
-
});
|
|
520
|
-
query.push({
|
|
521
|
-
$group: (_e = {
|
|
522
|
-
_id: {
|
|
523
|
-
client: '$_id.client',
|
|
524
|
-
instance: '$_id.instance'
|
|
525
|
-
},
|
|
526
|
-
data: {
|
|
527
|
-
$push: '$' + variable
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
_e[variable] = {
|
|
531
|
-
$sum: '$' + variable + '.' + variable
|
|
532
|
-
},
|
|
533
|
-
_e)
|
|
534
|
-
});
|
|
535
|
-
return [4 /*yield*/, __1.ResolveIOServer.getMongoManager().collection(collection).aggregate(query, { allowDiskUse: true, readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary' }, true)];
|
|
536
|
-
case 1:
|
|
537
|
-
graphData = _f.sent();
|
|
538
|
-
resolve(graphData);
|
|
539
|
-
return [2 /*return*/];
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
}); });
|
|
543
|
-
},
|
|
544
|
-
skipValidation: true
|
|
545
|
-
},
|
|
546
|
-
monitorMongos: {
|
|
547
|
-
function: function () {
|
|
548
|
-
return monitor_mongo_collection_1.MonitorMongos.find({}, { readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary' }, true);
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
monitorCPUs: {
|
|
552
|
-
function: function () {
|
|
553
|
-
return monitor_cpu_collection_1.MonitorCPUs.find({}, { readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary' }, true);
|
|
554
|
-
}
|
|
555
|
-
},
|
|
556
|
-
monitorMemorys: {
|
|
557
|
-
function: function () {
|
|
558
|
-
return monitor_memory_collection_1.MonitorMemorys.find({}, { readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary' }, true);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
exports.loadMonitorMethods = loadMonitorMethods;
|
|
564
|
-
|
|
565
|
-
//# sourceMappingURL=monitor.js.map
|
package/methods/monitor.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/methods/monitor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oFAAwE;AACxE,gFAAoE;AACpE,sFAA0E;AAC1E,wBAAqC;AACrC,yCAA0C;AAE1C,SAAgB,kBAAkB,CAAC,aAA4B;IAC9D,aAAa,CAAC,OAAO,CAAC;QACf,0BAA0B,EAAE;YACxB,QAAQ,EAAE,UAAS,UAAgB,EAAE,QAAc,EAAE,UAAkB,EAAE,QAAgB,EAAE,MAAc,EAAE,aAAqB,EAAE,QAAgB,EAAE,YAAoB;gBAA9J,iBAqPlB;gBApPA,OAAO,IAAI,OAAO,CAAC,UAAO,OAAO,EAAE,MAAM;;;;;;gCACpC,OAAO,GAAG,EAAE,CAAC;gCACb,SAAS,GAAG,EAAE,CAAC;gCAEnB,IAAI,aAAa,KAAK,SAAS,EAAE;oCAChC,OAAO,GAAG;wCACT,MAAM,EAAE;4CACP,OAAO,EAAE;gDACR,IAAI,EAAE,OAAO;gDACb,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;6CACxB;yCACD;wCACD,MAAM,EAAE;4CACP,OAAO,EAAE;gDACR,IAAI,EAAE,OAAO;gDACb,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE;6CACxB;yCACD;wCACD,IAAI,EA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AAC;YAC/I,CAAC;SACJ;QACD,WAAW,EAAE;YACT,QAAQ,EAAE;gBACN,OAAO,oCAAW,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,uBAAuB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAC,EAAE,IAAI,CAAC,CAAC;YAC7I,CAAC;SACJ;QACD,cAAc,EAAE;YACZ,QAAQ,EAAE;gBACN,OAAO,0CAAc,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,cAAc,EAAE,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,uBAAuB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,EAAC,EAAE,IAAI,CAAC,CAAC;YAChJ,CAAC;SACJ;KACP,CAAC,CAAC;AACJ,CAAC;AA5hBD,gDA4hBC","file":"monitor.js","sourcesContent":["import { MethodManager } from '../managers/method.manager';\nimport { MonitorMongos } from '../collections/monitor-mongo.collection';\nimport { MonitorCPUs } from '../collections/monitor-cpu.collection';\nimport { MonitorMemorys } from '../collections/monitor-memory.collection';\nimport { ResolveIOServer } from '..';\nimport { deepCopy } from '../util/common';\n\nexport function loadMonitorMethods(methodManager: MethodManager) {\n\tmethodManager.methods({\n superadminMonitorGraphData: {\n function: function(date_start: Date, date_end: Date, collection: string, instance: string, client: string, graphInterval: string, variable: string, variableType: string) {\n\t\t\t\treturn new Promise(async (resolve, reject) => {\n\t\t\t\t\tlet groupId = {};\n\t\t\t\t\tlet groupDate = {};\n\n\t\t\t\t\tif (graphInterval === 'seconds') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tsecond: {\n\t\t\t\t\t\t\t\t$second: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tminute: {\n\t\t\t\t\t\t\t\t$minute: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n },\n client: '$metadata.client',\n instance: '$metadata.instance'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour',\n\t\t\t\t\t\t\t'minute': '$_id.minute',\n\t\t\t\t\t\t\t'second': '$_id.second'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse if (graphInterval === 'minutes') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tminute: {\n\t\t\t\t\t\t\t\t$minute: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n },\n client: '$metadata.client',\n instance: '$metadata.instance'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour',\n\t\t\t\t\t\t\t'minute': '$_id.minute'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse if (graphInterval === 'hours') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n },\n client: '$metadata.client',\n instance: '$metadata.instance'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n },\n client: '$metadata.client',\n instance: '$metadata.instance'\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day'\n\t\t\t\t\t\t};\n }\n\n let query = <any>[\n {\n $match: {\n $and: [\n {\n date: {$gte: date_start}\n },\n {\n date: {$lte: date_end}\n }\n ]\n }\n }\n ];\n\n if (client) {\n query[0]['$match'].$and.push({'metadata.client': client});\n }\n\n if (instance) {\n query[0]['$match'].$and.push({'metadata.instance': instance});\n\t\t\t\t\t}\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$group: {\n\t\t\t\t\t\t\t\t_id: groupId,\n\t\t\t\t\t\t\t\t[variable]: variableType === 'count' ? {$sum: 1} : {\n\t\t\t\t\t\t\t\t\t['$' + variableType]: '$' + variable\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$group: {\n\t\t\t\t\t\t\t\t_id: groupDate,\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\t$push: {k: {$concat: ['$_id.client', ' - ', '$_id.instance']}, v: '$' + variable}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$addFields: {\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\t$arrayToObject: '$data'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$replaceRoot: {\n\t\t\t\t\t\t\t\tnewRoot: {\n\t\t\t\t\t\t\t\t\t$mergeObjects: ['$data', '$$ROOT']\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$project: {\n\t\t\t\t\t\t\t\tdata: 0\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tlet graphData = await ResolveIOServer.getMongoManager().collection(collection).aggregate(query, {allowDiskUse: true, readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary'}, true);\n\n\t\t\t\t\tresolve(graphData);\n\t\t\t\t});\n\t\t\t},\n\t\t\tskipValidation: true\n },\n\t\tsuperadminMonitorTableData: {\n function: function(date_start: Date, date_end: Date, collection: string, instance: string, client: string, graphInterval: string, variable: string, variableType: string) {\n\t\t\t\treturn new Promise(async (resolve, reject) => {\n\t\t\t\t\tlet groupId = {};\n\t\t\t\t\tlet groupDate = {};\n\n\t\t\t\t\tif (collection !== 'monitor-mongos') {\n\t\t\t\t\t\tresolve([]);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (graphInterval === 'seconds') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tsecond: {\n\t\t\t\t\t\t\t\t$second: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tminute: {\n\t\t\t\t\t\t\t\t$minute: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t}\n \n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour',\n\t\t\t\t\t\t\t'minute': '$_id.minute',\n\t\t\t\t\t\t\t'second': '$_id.second'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse if (graphInterval === 'minutes') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tminute: {\n\t\t\t\t\t\t\t\t$minute: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n }\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour',\n\t\t\t\t\t\t\t'minute': '$_id.minute'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse if (graphInterval === 'hours') {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\thour: {\n\t\t\t\t\t\t\t\t$hour: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n }\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day',\n\t\t\t\t\t\t\t'hour': '$_id.hour'\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgroupId = {\n\t\t\t\t\t\t\tday: {\n\t\t\t\t\t\t\t\t$dayOfMonth: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmonth: {\n\t\t\t\t\t\t\t\t$month: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tyear: {\n\t\t\t\t\t\t\t\t$year: {\n\t\t\t\t\t\t\t\t\tdate: '$date',\n\t\t\t\t\t\t\t\t\ttimezone: process.env.TZ\n\t\t\t\t\t\t\t\t} \n }\n\t\t\t\t\t\t};\n\n\t\t\t\t\t\tgroupDate = {\n\t\t\t\t\t\t\t'year': '$_id.year',\n\t\t\t\t\t\t\t'month': '$_id.month',\n\t\t\t\t\t\t\t'day': '$_id.day'\n\t\t\t\t\t\t};\n }\n\n let query = <any>[\n {\n $match: {\n $and: [\n {\n date: {$gte: date_start}\n },\n {\n date: {$lte: date_end}\n }\n ]\n }\n }\n ];\n\n if (client) {\n query[0]['$match'].$and.push({client: 'metadata.client'});\n }\n\n if (instance) {\n query[0]['$match'].$and.push({instance: 'metadata.instance'});\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlet firstGroupId = deepCopy(groupId);\n\t\t\t\t\tfirstGroupId['client'] = '$metadata.client';\n\t\t\t\t\tfirstGroupId['instance'] = '$metadata.instance';\n\t\t\t\t\tfirstGroupId[variable] = '$' + variable;\n\t\t\t\t\t\n\t\t\t\t\tgroupDate[variable] = '$' + variable;\n\t\t\t\t\tgroupDate['date'] = '$date';\n\t\t\t\t\tgroupDate['data'] = '$data';\n\n\t\t\t\t\tgroupId['client'] = '$_id.client';\n\t\t\t\t\tgroupId['instance'] = '$_id.instance';\n\t\t\t\t\t\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$group: {\n\t\t\t\t\t\t\t\t_id: firstGroupId,\n\t\t\t\t\t\t\t\t[variable]: {\n\t\t\t\t\t\t\t\t\t'$sum': 1\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t[variable + '_name']: {\n\t\t\t\t\t\t\t\t\t$first: '$' + [variable]\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tdate: {\n\t\t\t\t\t\t\t\t\t$first: '$date'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tquery.push({\n\t\t\t\t\t\t$addFields: {\n\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t[variable]: '$' + variable,\n\t\t\t\t\t\t\t\t[variable + '_name']: '$' + variable + '_name'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tquery.push({\n\t\t\t\t\t\t$group: {\n\t\t\t\t\t\t\t_id: groupId,\n\t\t\t\t\t\t\t[variable]: {\n\t\t\t\t\t\t\t\t'$sum': '$data.' + variable\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdate: {\n\t\t\t\t\t\t\t\t$first: '$date'\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t$push: '$data'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tquery.push({\n\t\t\t\t\t\t$addFields: {\n\t\t\t\t\t\t\t[variable]: groupDate\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tquery.push(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$group: {\n\t\t\t\t\t\t\t\t_id: {\n\t\t\t\t\t\t\t\t\tclient: '$_id.client',\n\t\t\t\t\t\t\t\t\tinstance: '$_id.instance'\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\t$push: '$' + variable\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t[variable]: {\n\t\t\t\t\t\t\t\t\t$sum: '$' + variable + '.' + variable\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tlet graphData = await ResolveIOServer.getMongoManager().collection(collection).aggregate(query, {allowDiskUse: true, readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary'}, true);\n\n\t\t\t\t\tresolve(graphData);\n\t\t\t\t});\n\t\t\t},\n\t\t\tskipValidation: true\n },\n monitorMongos: {\n function: function() {\n return MonitorMongos.find({}, {readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary'}, true);\n }\n },\n monitorCPUs: {\n function: function() {\n return MonitorCPUs.find({}, {readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary'}, true);\n }\n },\n monitorMemorys: {\n function: function() {\n return MonitorMemorys.find({}, {readPreference: this.serverConfig['ROOT_URL'] !== 'http://localhost:4200' ? 'secondary' : 'primary'}, true);\n }\n }\n\t});\n}"]}
|
package/methods/pdf.d.ts
DELETED