@esfaenza/admin-module 11.2.0
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/README.md +24 -0
- package/bundles/esfaenza-admin-module.umd.js +1667 -0
- package/bundles/esfaenza-admin-module.umd.js.map +1 -0
- package/bundles/esfaenza-admin-module.umd.min.js +16 -0
- package/bundles/esfaenza-admin-module.umd.min.js.map +1 -0
- package/esfaenza-admin-module.d.ts +17 -0
- package/esfaenza-admin-module.metadata.json +1 -0
- package/esm2015/esfaenza-admin-module.js +18 -0
- package/esm2015/lib/admin-module.module.js +89 -0
- package/esm2015/lib/communications/base/BaseModuleCommunicationsConsumer.js +3 -0
- package/esm2015/lib/components/audits/adm_audits.component.js +109 -0
- package/esm2015/lib/components/audits/adm_audits.component.loc.js +30 -0
- package/esm2015/lib/components/enqueues/adm_enq.component.js +91 -0
- package/esm2015/lib/components/enqueues/adm_enq.component.loc.js +19 -0
- package/esm2015/lib/components/logs/adm_logs.component.js +37 -0
- package/esm2015/lib/components/metrics/metrics_search.component.js +177 -0
- package/esm2015/lib/components/metrics/metrics_search.component.loc.js +23 -0
- package/esm2015/lib/components/profiler/adm_profiler.component.js +108 -0
- package/esm2015/lib/components/profiler/adm_profiler.component.loc.js +33 -0
- package/esm2015/lib/components/topact/topact_search.component.js +191 -0
- package/esm2015/lib/components/topact/topact_search.component.loc.js +32 -0
- package/esm2015/lib/components/workers/adm_wrk.component.js +182 -0
- package/esm2015/lib/components/workers/adm_wrk.component.loc.js +33 -0
- package/esm2015/lib/models/components/ActiveSession.js +3 -0
- package/esm2015/lib/models/components/Audit.js +3 -0
- package/esm2015/lib/models/components/AuditsView.js +9 -0
- package/esm2015/lib/models/components/DirectorInfos.js +3 -0
- package/esm2015/lib/models/components/LocksView.js +5 -0
- package/esm2015/lib/models/components/Metric.js +3 -0
- package/esm2015/lib/models/components/MetricChart.js +4 -0
- package/esm2015/lib/models/components/MetricsView.js +5 -0
- package/esm2015/lib/models/components/ProcessesView.js +5 -0
- package/esm2015/lib/models/components/ProfilerDataNode.js +76 -0
- package/esm2015/lib/models/components/ProfilerDataNode.loc.js +20 -0
- package/esm2015/lib/models/components/ProfilerDataNodesView.js +5 -0
- package/esm2015/lib/models/components/TopActivitiesDataView.js +5 -0
- package/esm2015/lib/models/components/TopActivity.js +3 -0
- package/esm2015/lib/models/components/TopNode.js +3 -0
- package/esm2015/lib/models/components/TopSession.js +3 -0
- package/esm2015/lib/models/externals/Repository.js +21 -0
- package/esm2015/lib/models/shared/KeyValue.js +7 -0
- package/esm2015/lib/models/shared/Locale.js +2 -0
- package/esm2015/lib/tokens.js +4 -0
- package/esm2015/public-api.js +4 -0
- package/fesm2015/esfaenza-admin-module.js +1176 -0
- package/fesm2015/esfaenza-admin-module.js.map +1 -0
- package/lib/admin-module.module.d.ts +62 -0
- package/lib/communications/base/BaseModuleCommunicationsConsumer.d.ts +3 -0
- package/lib/components/audits/adm_audits.component.d.ts +29 -0
- package/lib/components/audits/adm_audits.component.loc.d.ts +4 -0
- package/lib/components/enqueues/adm_enq.component.d.ts +27 -0
- package/lib/components/enqueues/adm_enq.component.loc.d.ts +4 -0
- package/lib/components/logs/adm_logs.component.d.ts +14 -0
- package/lib/components/metrics/metrics_search.component.d.ts +46 -0
- package/lib/components/metrics/metrics_search.component.loc.d.ts +4 -0
- package/lib/components/profiler/adm_profiler.component.d.ts +29 -0
- package/lib/components/profiler/adm_profiler.component.loc.d.ts +4 -0
- package/lib/components/topact/topact_search.component.d.ts +58 -0
- package/lib/components/topact/topact_search.component.loc.d.ts +4 -0
- package/lib/components/workers/adm_wrk.component.d.ts +51 -0
- package/lib/components/workers/adm_wrk.component.loc.d.ts +4 -0
- package/lib/models/components/ActiveSession.d.ts +11 -0
- package/lib/models/components/Audit.d.ts +13 -0
- package/lib/models/components/AuditsView.d.ts +14 -0
- package/lib/models/components/DirectorInfos.d.ts +5 -0
- package/lib/models/components/LocksView.d.ts +7 -0
- package/lib/models/components/Metric.d.ts +6 -0
- package/lib/models/components/MetricChart.d.ts +6 -0
- package/lib/models/components/MetricsView.d.ts +12 -0
- package/lib/models/components/ProcessesView.d.ts +8 -0
- package/lib/models/components/ProfilerDataNode.d.ts +19 -0
- package/lib/models/components/ProfilerDataNode.loc.d.ts +70 -0
- package/lib/models/components/ProfilerDataNodesView.d.ts +7 -0
- package/lib/models/components/TopActivitiesDataView.d.ts +7 -0
- package/lib/models/components/TopActivity.d.ts +8 -0
- package/lib/models/components/TopNode.d.ts +6 -0
- package/lib/models/components/TopSession.d.ts +15 -0
- package/lib/models/externals/Repository.d.ts +20 -0
- package/lib/models/shared/KeyValue.d.ts +5 -0
- package/lib/models/shared/Locale.d.ts +1 -0
- package/lib/tokens.d.ts +3 -0
- package/package.json +27 -0
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,1667 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/forms'), require('@angular/core'), require('@angular/router'), require('@angular/material/icon'), require('@angular/material/datepicker'), require('@esfaenza/material-dayjs-adapter'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('ngx-bootstrap/modal'), require('@ctrl/ngx-csv'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/tooltip'), require('@esfaenza/es-table'), require('@esfaenza/forms-and-validations'), require('@esfaenza/es-charts'), require('@esfaenza/gertrude'), require('@esfaenza/localizations'), require('@esfaenza/ngx-contextmenu'), require('@esfaenza/preferences'), require('@esfaenza/httpservice'), require('@angular/common/http'), require('@esfaenza/extensions'), require('cerialize'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@esfaenza/admin-module', ['exports', '@angular/common', '@angular/forms', '@angular/core', '@angular/router', '@angular/material/icon', '@angular/material/datepicker', '@esfaenza/material-dayjs-adapter', '@angular/material/input', '@angular-material-components/datetime-picker', 'ngx-bootstrap/modal', '@ctrl/ngx-csv', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/tooltip', '@esfaenza/es-table', '@esfaenza/forms-and-validations', '@esfaenza/es-charts', '@esfaenza/gertrude', '@esfaenza/localizations', '@esfaenza/ngx-contextmenu', '@esfaenza/preferences', '@esfaenza/httpservice', '@angular/common/http', '@esfaenza/extensions', 'cerialize', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['admin-module'] = {}), global.ng.common, global.ng.forms, global.ng.core, global.ng.router, global.ng.material.icon, global.ng.material.datepicker, global.materialDayjsAdapter, global.ng.material.input, global.datetimePicker, global.modal, global.ngxCsv, global.dropdown, global.tooltip, global.esTable, global.formsAndValidations, global.esCharts, global.gertrude, global.localizations, global.ngxContextmenu, global.preferences, global.httpservice, global.ng.common.http, global.extensions, global.cerialize, global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports, common, forms, core, router, icon, datepicker, materialDayjsAdapter, input, datetimePicker, modal, ngxCsv, dropdown, tooltip, esTable, formsAndValidations, esCharts, gertrude, localizations, ngxContextmenu, preferences, httpservice, http, extensions, cerialize, operators) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/*! *****************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
/* global Reflect, Promise */
|
|
22
|
+
var extendStatics = function (d, b) {
|
|
23
|
+
extendStatics = Object.setPrototypeOf ||
|
|
24
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
+
function (d, b) { for (var p in b)
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
+
d[p] = b[p]; };
|
|
28
|
+
return extendStatics(d, b);
|
|
29
|
+
};
|
|
30
|
+
function __extends(d, b) {
|
|
31
|
+
if (typeof b !== "function" && b !== null)
|
|
32
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
+
extendStatics(d, b);
|
|
34
|
+
function __() { this.constructor = d; }
|
|
35
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
+
}
|
|
37
|
+
var __assign = function () {
|
|
38
|
+
__assign = Object.assign || function __assign(t) {
|
|
39
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
+
s = arguments[i];
|
|
41
|
+
for (var p in s)
|
|
42
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
+
t[p] = s[p];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
return __assign.apply(this, arguments);
|
|
48
|
+
};
|
|
49
|
+
function __rest(s, e) {
|
|
50
|
+
var t = {};
|
|
51
|
+
for (var p in s)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
+
t[p[i]] = s[p[i]];
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
function __decorate(decorators, target, key, desc) {
|
|
62
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
+
else
|
|
66
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
+
if (d = decorators[i])
|
|
68
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
+
}
|
|
71
|
+
function __param(paramIndex, decorator) {
|
|
72
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
+
}
|
|
74
|
+
function __metadata(metadataKey, metadataValue) {
|
|
75
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
+
}
|
|
78
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
+
function fulfilled(value) { try {
|
|
82
|
+
step(generator.next(value));
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
reject(e);
|
|
86
|
+
} }
|
|
87
|
+
function rejected(value) { try {
|
|
88
|
+
step(generator["throw"](value));
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
reject(e);
|
|
92
|
+
} }
|
|
93
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function __generator(thisArg, body) {
|
|
98
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
+
function step(op) {
|
|
103
|
+
if (f)
|
|
104
|
+
throw new TypeError("Generator is already executing.");
|
|
105
|
+
while (_)
|
|
106
|
+
try {
|
|
107
|
+
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)
|
|
108
|
+
return t;
|
|
109
|
+
if (y = 0, t)
|
|
110
|
+
op = [op[0] & 2, t.value];
|
|
111
|
+
switch (op[0]) {
|
|
112
|
+
case 0:
|
|
113
|
+
case 1:
|
|
114
|
+
t = op;
|
|
115
|
+
break;
|
|
116
|
+
case 4:
|
|
117
|
+
_.label++;
|
|
118
|
+
return { value: op[1], done: false };
|
|
119
|
+
case 5:
|
|
120
|
+
_.label++;
|
|
121
|
+
y = op[1];
|
|
122
|
+
op = [0];
|
|
123
|
+
continue;
|
|
124
|
+
case 7:
|
|
125
|
+
op = _.ops.pop();
|
|
126
|
+
_.trys.pop();
|
|
127
|
+
continue;
|
|
128
|
+
default:
|
|
129
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
+
_ = 0;
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
+
_.label = op[1];
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
+
_.label = t[1];
|
|
139
|
+
t = op;
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
if (t && _.label < t[2]) {
|
|
143
|
+
_.label = t[2];
|
|
144
|
+
_.ops.push(op);
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
if (t[2])
|
|
148
|
+
_.ops.pop();
|
|
149
|
+
_.trys.pop();
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
op = body.call(thisArg, _);
|
|
153
|
+
}
|
|
154
|
+
catch (e) {
|
|
155
|
+
op = [6, e];
|
|
156
|
+
y = 0;
|
|
157
|
+
}
|
|
158
|
+
finally {
|
|
159
|
+
f = t = 0;
|
|
160
|
+
}
|
|
161
|
+
if (op[0] & 5)
|
|
162
|
+
throw op[1];
|
|
163
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
+
if (k2 === undefined)
|
|
168
|
+
k2 = k;
|
|
169
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
+
}) : (function (o, m, k, k2) {
|
|
171
|
+
if (k2 === undefined)
|
|
172
|
+
k2 = k;
|
|
173
|
+
o[k2] = m[k];
|
|
174
|
+
});
|
|
175
|
+
function __exportStar(m, o) {
|
|
176
|
+
for (var p in m)
|
|
177
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
+
__createBinding(o, m, p);
|
|
179
|
+
}
|
|
180
|
+
function __values(o) {
|
|
181
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
+
if (m)
|
|
183
|
+
return m.call(o);
|
|
184
|
+
if (o && typeof o.length === "number")
|
|
185
|
+
return {
|
|
186
|
+
next: function () {
|
|
187
|
+
if (o && i >= o.length)
|
|
188
|
+
o = void 0;
|
|
189
|
+
return { value: o && o[i++], done: !o };
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
+
}
|
|
194
|
+
function __read(o, n) {
|
|
195
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
+
if (!m)
|
|
197
|
+
return o;
|
|
198
|
+
var i = m.call(o), r, ar = [], e;
|
|
199
|
+
try {
|
|
200
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
+
ar.push(r.value);
|
|
202
|
+
}
|
|
203
|
+
catch (error) {
|
|
204
|
+
e = { error: error };
|
|
205
|
+
}
|
|
206
|
+
finally {
|
|
207
|
+
try {
|
|
208
|
+
if (r && !r.done && (m = i["return"]))
|
|
209
|
+
m.call(i);
|
|
210
|
+
}
|
|
211
|
+
finally {
|
|
212
|
+
if (e)
|
|
213
|
+
throw e.error;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return ar;
|
|
217
|
+
}
|
|
218
|
+
/** @deprecated */
|
|
219
|
+
function __spread() {
|
|
220
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
+
ar = ar.concat(__read(arguments[i]));
|
|
222
|
+
return ar;
|
|
223
|
+
}
|
|
224
|
+
/** @deprecated */
|
|
225
|
+
function __spreadArrays() {
|
|
226
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
+
s += arguments[i].length;
|
|
228
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
+
r[k] = a[j];
|
|
231
|
+
return r;
|
|
232
|
+
}
|
|
233
|
+
function __spreadArray(to, from, pack) {
|
|
234
|
+
if (pack || arguments.length === 2)
|
|
235
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
+
if (ar || !(i in from)) {
|
|
237
|
+
if (!ar)
|
|
238
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
+
ar[i] = from[i];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
|
+
}
|
|
244
|
+
function __await(v) {
|
|
245
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
246
|
+
}
|
|
247
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
248
|
+
if (!Symbol.asyncIterator)
|
|
249
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
250
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
251
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
252
|
+
function verb(n) { if (g[n])
|
|
253
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
254
|
+
function resume(n, v) { try {
|
|
255
|
+
step(g[n](v));
|
|
256
|
+
}
|
|
257
|
+
catch (e) {
|
|
258
|
+
settle(q[0][3], e);
|
|
259
|
+
} }
|
|
260
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
261
|
+
function fulfill(value) { resume("next", value); }
|
|
262
|
+
function reject(value) { resume("throw", value); }
|
|
263
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
264
|
+
resume(q[0][0], q[0][1]); }
|
|
265
|
+
}
|
|
266
|
+
function __asyncDelegator(o) {
|
|
267
|
+
var i, p;
|
|
268
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
269
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
270
|
+
}
|
|
271
|
+
function __asyncValues(o) {
|
|
272
|
+
if (!Symbol.asyncIterator)
|
|
273
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
+
var m = o[Symbol.asyncIterator], i;
|
|
275
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
276
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
277
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
278
|
+
}
|
|
279
|
+
function __makeTemplateObject(cooked, raw) {
|
|
280
|
+
if (Object.defineProperty) {
|
|
281
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
cooked.raw = raw;
|
|
285
|
+
}
|
|
286
|
+
return cooked;
|
|
287
|
+
}
|
|
288
|
+
;
|
|
289
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
290
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
291
|
+
}) : function (o, v) {
|
|
292
|
+
o["default"] = v;
|
|
293
|
+
};
|
|
294
|
+
function __importStar(mod) {
|
|
295
|
+
if (mod && mod.__esModule)
|
|
296
|
+
return mod;
|
|
297
|
+
var result = {};
|
|
298
|
+
if (mod != null)
|
|
299
|
+
for (var k in mod)
|
|
300
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
301
|
+
__createBinding(result, mod, k);
|
|
302
|
+
__setModuleDefault(result, mod);
|
|
303
|
+
return result;
|
|
304
|
+
}
|
|
305
|
+
function __importDefault(mod) {
|
|
306
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
307
|
+
}
|
|
308
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
+
if (kind === "a" && !f)
|
|
310
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
314
|
+
}
|
|
315
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
+
if (kind === "m")
|
|
317
|
+
throw new TypeError("Private method is not writable");
|
|
318
|
+
if (kind === "a" && !f)
|
|
319
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
var BaseModuleCommunicationsConsumer = /** @class */ (function () {
|
|
326
|
+
function BaseModuleCommunicationsConsumer() {
|
|
327
|
+
}
|
|
328
|
+
return BaseModuleCommunicationsConsumer;
|
|
329
|
+
}());
|
|
330
|
+
|
|
331
|
+
var AuditsView = /** @class */ (function (_super) {
|
|
332
|
+
__extends(AuditsView, _super);
|
|
333
|
+
function AuditsView() {
|
|
334
|
+
var _this = _super.call(this) || this;
|
|
335
|
+
_this.filteraction = '';
|
|
336
|
+
_this.filterhttp = '';
|
|
337
|
+
return _this;
|
|
338
|
+
}
|
|
339
|
+
return AuditsView;
|
|
340
|
+
}(esTable.AppSearch));
|
|
341
|
+
|
|
342
|
+
var Repository = {
|
|
343
|
+
GET_Adm_ChangeProcessConsumerGroup: "/api/Adm/ChangeProcessConsumerGroup",
|
|
344
|
+
GET_Adm_ClearAllCaches: "/api/Adm/ClearAllCaches",
|
|
345
|
+
GET_Adm_GetConsumerGroups: "/api/Adm/GetConsumerGroups#cache",
|
|
346
|
+
GET_Adm_GetInfos: "/api/Adm/GetInfos",
|
|
347
|
+
GET_Adm_GetMetrics: "/api/Adm/GetMetrics",
|
|
348
|
+
POST_Adm_GetMetrics: "/api/Adm/GetMetrics",
|
|
349
|
+
POST_Adm_GetProfilerDataNodes: "/api/Adm/GetProfilerDataNodes",
|
|
350
|
+
POST_Adm_GetServerAudits: "/api/Adm/GetServerAudits",
|
|
351
|
+
POST_Adm_GetServerLocks: "/api/Adm/GetServerLocks",
|
|
352
|
+
GET_Adm_GetServerLogs: "/api/Adm/GetServerLogs",
|
|
353
|
+
POST_Adm_GetServerWorkers: "/api/Adm/GetServerWorkers",
|
|
354
|
+
POST_Adm_GetTopActivities: "/api/Adm/GetTopActivities",
|
|
355
|
+
GET_Adm_GetWorkerStatus: "/api/Adm/GetWorkerStatus",
|
|
356
|
+
GET_Adm_InvalidateServerSideCache: "/api/Adm/InvalidateServerSideCache",
|
|
357
|
+
GET_Adm_KillProcess: "/api/Adm/KillProcess",
|
|
358
|
+
GET_Adm_SetProcessTracing: "/api/Adm/SetProcessTracing",
|
|
359
|
+
GET_Adm_StartWorker: "/api/Adm/StartWorker",
|
|
360
|
+
GET_Adm_StopWorker: "/api/Adm/StopWorker"
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
var ADM_LOCALE = new core.InjectionToken('ADM_LOCALE');
|
|
364
|
+
var ADM_BACKEND_URL = new core.InjectionToken('ADM_BACKEND_URL');
|
|
365
|
+
|
|
366
|
+
var AdmAuditLoc = /** @class */ (function (_super) {
|
|
367
|
+
__extends(AdmAuditLoc, _super);
|
|
368
|
+
function AdmAuditLoc(LOC_LOCALE) {
|
|
369
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
370
|
+
_super.prototype.set.call(_this, "en->it", "Search Application Audits", ["Ricerca Audit Applicativi"]);
|
|
371
|
+
_super.prototype.set.call(_this, "en->it", "User", ["Utente"]);
|
|
372
|
+
_super.prototype.set.call(_this, "en->it", "REST Call", ["Chiamata REST"]);
|
|
373
|
+
_super.prototype.set.call(_this, "en->it", "Update", ["Aggiornamento"]);
|
|
374
|
+
_super.prototype.set.call(_this, "en->it", "Route", ["Route"]);
|
|
375
|
+
_super.prototype.set.call(_this, "en->it", "Action", ["Azione"]);
|
|
376
|
+
_super.prototype.set.call(_this, "en->it", "HTTP Method", ["Metodo HTTP"]);
|
|
377
|
+
_super.prototype.set.call(_this, "en->it", "Arguments", ["Argomenti"]);
|
|
378
|
+
_super.prototype.set.call(_this, "en->it", "Object ID", ["ID Oggetto"]);
|
|
379
|
+
_super.prototype.set.call(_this, "en->it", "Object Type", ["Tipo Oggetto"]);
|
|
380
|
+
_super.prototype.set.call(_this, "en->it", "Object Data", ["Dati Oggetto"]);
|
|
381
|
+
_super.prototype.set.call(_this, "en->it", "Loading Application Audits", ["Carico gli Audit dell'Applicazione"]);
|
|
382
|
+
_super.prototype.set.call(_this, "en->it", "Date", ["Data"]);
|
|
383
|
+
_super.prototype.set.call(_this, "en->it", "HTTP Response", ["Risposta HTTP"]);
|
|
384
|
+
_super.prototype.set.call(_this, "en->it", "Application Error Code", ["Codice Errore Applicativo"]);
|
|
385
|
+
return _this;
|
|
386
|
+
}
|
|
387
|
+
return AdmAuditLoc;
|
|
388
|
+
}(localizations.LocalizationService));
|
|
389
|
+
AdmAuditLoc.decorators = [
|
|
390
|
+
{ type: core.Injectable }
|
|
391
|
+
];
|
|
392
|
+
AdmAuditLoc.ctorParameters = function () { return [
|
|
393
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
394
|
+
]; };
|
|
395
|
+
|
|
396
|
+
var AdmAuditsComponent = /** @class */ (function () {
|
|
397
|
+
function AdmAuditsComponent(lc, localStorage, _state, http, route, location, backend) {
|
|
398
|
+
this.lc = lc;
|
|
399
|
+
this.localStorage = localStorage;
|
|
400
|
+
this._state = _state;
|
|
401
|
+
this.http = http;
|
|
402
|
+
this.route = route;
|
|
403
|
+
this.location = location;
|
|
404
|
+
this.backend = backend;
|
|
405
|
+
this.searchView = new AuditsView();
|
|
406
|
+
this.Actions = [];
|
|
407
|
+
this.HttpMethods = [];
|
|
408
|
+
this.searchInProgress = false;
|
|
409
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
410
|
+
this.HttpMethods = [
|
|
411
|
+
{ id: "GET", description: "GET" },
|
|
412
|
+
{ id: "POST", description: "POST" },
|
|
413
|
+
{ id: "PUT", description: "PUT" },
|
|
414
|
+
{ id: "PATCH", description: "PATCH" },
|
|
415
|
+
{ id: "DELETE", description: "DELETE" }
|
|
416
|
+
];
|
|
417
|
+
this.Actions = [
|
|
418
|
+
{ id: "C", description: this.lc.loc("REST Call") },
|
|
419
|
+
{ id: "U", description: this.lc.loc("Update") },
|
|
420
|
+
{ id: "D", description: this.lc.loc("Delete") }
|
|
421
|
+
];
|
|
422
|
+
}
|
|
423
|
+
AdmAuditsComponent.prototype.ngOnInit = function () {
|
|
424
|
+
var _this = this;
|
|
425
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) { _this.Init(params["ignoreStorage"]); });
|
|
426
|
+
};
|
|
427
|
+
AdmAuditsComponent.prototype.ngOnDestroy = function () {
|
|
428
|
+
if (this.storageSub)
|
|
429
|
+
this.storageSub.unsubscribe();
|
|
430
|
+
};
|
|
431
|
+
AdmAuditsComponent.prototype.Init = function (ignoreStorage) {
|
|
432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
433
|
+
var item;
|
|
434
|
+
return __generator(this, function (_a) {
|
|
435
|
+
switch (_a.label) {
|
|
436
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotAudittato").toPromise()];
|
|
437
|
+
case 1:
|
|
438
|
+
item = _a.sent();
|
|
439
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
440
|
+
this.init(item);
|
|
441
|
+
return [3 /*break*/, 4];
|
|
442
|
+
case 2:
|
|
443
|
+
this.init(null);
|
|
444
|
+
this.location.replaceState("/pages/adm/serveraudits");
|
|
445
|
+
this.route.snapshot.queryParams = [];
|
|
446
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotAudittato").toPromise()];
|
|
447
|
+
case 3:
|
|
448
|
+
_a.sent();
|
|
449
|
+
_a.label = 4;
|
|
450
|
+
case 4: return [2 /*return*/];
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
AdmAuditsComponent.prototype.init = function (HotPotato) {
|
|
456
|
+
//Se ho la HotPotato vuol dire che sono appena tornato dall'edit/nuovo. Rifaccio la ricerca in base ai filtri precedenti
|
|
457
|
+
//Altirmenti genero il modello nuovo normalmente
|
|
458
|
+
if (HotPotato) {
|
|
459
|
+
this.searchView = HotPotato;
|
|
460
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerAudits"], this.searchView);
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
this.searchView = new AuditsView();
|
|
464
|
+
this.searchView.filterda = dayjs().add(-1, "month").format(this.lc.token("getSmallDateFormat"));
|
|
465
|
+
this.searchView.filtera = dayjs().format(this.lc.token("getSmallDateFormat"));
|
|
466
|
+
this.sendSearch();
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
AdmAuditsComponent.prototype.sendSearch = function (resetPage) {
|
|
470
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
471
|
+
this.searchInProgress = true;
|
|
472
|
+
if (resetPage)
|
|
473
|
+
this.searchView.page = 1;
|
|
474
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerAudits"], this.searchView);
|
|
475
|
+
};
|
|
476
|
+
AdmAuditsComponent.prototype.POSTGetProcesses = function (url, data) {
|
|
477
|
+
var _this = this;
|
|
478
|
+
this.http.post(url, data).subscribe(function (t) {
|
|
479
|
+
_this.searchView = t;
|
|
480
|
+
_this.searchInProgress = false;
|
|
481
|
+
_this.localStorage.setItem("HotAudittato", _this.searchView).subscribe();
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
return AdmAuditsComponent;
|
|
485
|
+
}());
|
|
486
|
+
AdmAuditsComponent.decorators = [
|
|
487
|
+
{ type: core.Component, args: [{
|
|
488
|
+
selector: "adm_audits",
|
|
489
|
+
viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmAuditLoc }],
|
|
490
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Audits' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row\">\r\n <div class=\"col-md-11\">\r\n <div class=\"col-md-12 row app-no-padding app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterda\" name=\"filterda\" [Placeholder]=\"'From' | localize : lc\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filtera\" name=\"filtera\" [Placeholder]=\"'To' | localize : lc\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filteruser\" name=\"filteruser\" [Placeholder]=\"'User' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterroute\" name=\"filterroute\" [Placeholder]=\"'Route' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [SelectLabel]=\"'Action' | localize : lc\" [(ngModel)]=\"searchView.filteraction\" name=\"filteraction\" [Source]=\"Actions\"></form-select>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [SelectLabel]=\"'HTTP Method' | localize : lc\" [(ngModel)]=\"searchView.filterhttp\" name=\"filterhttp\" [Source]=\"HttpMethods\"></form-select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 row app-no-padding\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterargs\" name=\"filterargs\" [Placeholder]=\"'Arguments' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterobjid\" name=\"filterobjid\" [Placeholder]=\"'Object ID' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterobjtype\" name=\"filterobjtype\" [Placeholder]=\"'Object Type' | localize : lc\"></form-input>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-1 app-no-padding\">\r\n <button [disabled]=\"searchInProgress\" class=\"input-group-addon btn app-btn-search\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Application Audits' | localize : lc}}...</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [MultipleOrderingDirectives]=\"true\" (onSearchRequest)=\"sendSearch($event);\">\r\n \r\n <span *th=\"'Timestamp'\">{{'Date' | localize : lc}}</span>\r\n <span *th=\"'User'\">{{'User' | localize : lc}}</span>\r\n <span *th=\"'Action'\">{{'Action' | localize : lc}}</span>\r\n <span *th=\"'HttpMethod'\">{{'HTTP Method' | localize : lc}}</span>\r\n <span *th=\"'Route'\">{{'Route' | localize : lc}}</span>\r\n <span *th=\"'Args'\">{{'Arguments' | localize : lc}}</span>\r\n <span *th=\"'HttpResponse'\">{{'HTTP Response' | localize : lc}}</span>\r\n <span *th=\"'NonStdErrorMessage'\">{{'Application Error Code' | localize : lc}}</span>\r\n <span *th=\"'ObjectType'\">{{'Object Type' | localize : lc}}</span>\r\n <span *th=\"'ObjectId'\">{{'Object ID' | localize : lc}}</span>\r\n <span *th=\"'ObjectData'\">{{'Object Data' | localize : lc}}</span>\r\n \r\n <strong *td=\"'Timestamp'; let pro\">{{pro.timestamp | loc_date:'DD/MM/YYYY HH:mm:ss'}}</strong>\r\n <span *td=\"'User'; let pro\">{{pro.user}}</span>\r\n <span *td=\"'Action'; let pro\">{{pro.action}}</span>\r\n <span *td=\"'HttpMethod'; let pro\">{{pro.httpmethod}}</span>\r\n <span *td=\"'Route'; let pro\">{{pro.route}}</span>\r\n <span *td=\"'Args'; let pro\">{{pro.args}}</span>\r\n <span *td=\"'HttpResponse'; let pro\">{{pro.httpresponse}}</span>\r\n <span *td=\"'NonStdErrorMessage'; let pro\">{{pro.mdmerrorcode}}</span>\r\n <span *td=\"'ObjectType'; let pro\">{{pro.objecttype}}</span>\r\n <span *td=\"'ObjectId'; let pro\">{{pro.objectid}}</span>\r\n <span *td=\"'ObjectData'; let pro\">{{pro.objectdata}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
491
|
+
},] }
|
|
492
|
+
];
|
|
493
|
+
AdmAuditsComponent.ctorParameters = function () { return [
|
|
494
|
+
{ type: localizations.LocalizationService },
|
|
495
|
+
{ type: preferences.PreferencesService },
|
|
496
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
497
|
+
{ type: httpservice.HTTPService },
|
|
498
|
+
{ type: router.ActivatedRoute },
|
|
499
|
+
{ type: common.Location },
|
|
500
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
501
|
+
]; };
|
|
502
|
+
|
|
503
|
+
var ProcessesView = /** @class */ (function (_super) {
|
|
504
|
+
__extends(ProcessesView, _super);
|
|
505
|
+
function ProcessesView() {
|
|
506
|
+
return _super.call(this) || this;
|
|
507
|
+
}
|
|
508
|
+
return ProcessesView;
|
|
509
|
+
}(esTable.AppSearch));
|
|
510
|
+
|
|
511
|
+
var AdmWrkLoc = /** @class */ (function (_super) {
|
|
512
|
+
__extends(AdmWrkLoc, _super);
|
|
513
|
+
function AdmWrkLoc(LOC_LOCALE) {
|
|
514
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
515
|
+
_super.prototype.set.call(_this, "en->it", "Consumer Group succesfully changed", ["Gruppo di Consumo modificato con successo"]);
|
|
516
|
+
_super.prototype.set.call(_this, "en->it", "Errors changing Consumer Group", ["Errori nella modifica del Gruppo di Consumo"]);
|
|
517
|
+
_super.prototype.set.call(_this, "en->it", "Change Consumer Group", ["Modifica Gruppo di Consumo"]);
|
|
518
|
+
_super.prototype.set.call(_this, "en->it", "New Consumer Group", ["Nuovo Gruppo di Consumo"]);
|
|
519
|
+
_super.prototype.set.call(_this, "en->it", "State", ["Stato"]);
|
|
520
|
+
_super.prototype.set.call(_this, "en->it", "Global", ["Globale"]);
|
|
521
|
+
_super.prototype.set.call(_this, "en->it", "Search Application Processes", ["Ricerca Processi Applicativi"]);
|
|
522
|
+
_super.prototype.set.call(_this, "en->it", "Tenant", ["Operatore"]);
|
|
523
|
+
_super.prototype.set.call(_this, "en->it", "Errors toggling Process Tracing", ["Errori nella modifica del Tracing del Processo"]);
|
|
524
|
+
_super.prototype.set.call(_this, "en->it", "User", ["Utente"]);
|
|
525
|
+
_super.prototype.set.call(_this, "en->it", "Loading Application Processes", ["Carico i Processi Applicativi"]);
|
|
526
|
+
_super.prototype.set.call(_this, "en->it", "Activate Process Tracing", ["Attiva Tracing Processo"]);
|
|
527
|
+
_super.prototype.set.call(_this, "en->it", "Deactivate Process Tracing", ["Disattiva Tracing Progetto"]);
|
|
528
|
+
_super.prototype.set.call(_this, "en->it", "Kill Process", ["Ammazza Processo"]);
|
|
529
|
+
_super.prototype.set.call(_this, "en->it", "Errors killing the Process", ["Errori durante la Kill del Processo"]);
|
|
530
|
+
_super.prototype.set.call(_this, "en->it", "Process succesfully killed", ["Processo ucciso con successo"]);
|
|
531
|
+
_super.prototype.set.call(_this, "en->it", "Confirm Process Kill", ["Conferma Terminazione del Processo"]);
|
|
532
|
+
_super.prototype.set.call(_this, "en->it", "Are you sure you wish to kill the selected process? The associated user will be disconnected", ["Sei sicuro di voler Terminare il processo selezionato? L'utente relativo sara' disconnesso"]);
|
|
533
|
+
return _this;
|
|
534
|
+
}
|
|
535
|
+
return AdmWrkLoc;
|
|
536
|
+
}(localizations.LocalizationService));
|
|
537
|
+
AdmWrkLoc.decorators = [
|
|
538
|
+
{ type: core.Injectable }
|
|
539
|
+
];
|
|
540
|
+
AdmWrkLoc.ctorParameters = function () { return [
|
|
541
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
542
|
+
]; };
|
|
543
|
+
|
|
544
|
+
var AdmWrkComponent = /** @class */ (function () {
|
|
545
|
+
function AdmWrkComponent(utiExts, msgExts, lc, localStorage, _state, http, route, location, backend) {
|
|
546
|
+
this.utiExts = utiExts;
|
|
547
|
+
this.msgExts = msgExts;
|
|
548
|
+
this.lc = lc;
|
|
549
|
+
this.localStorage = localStorage;
|
|
550
|
+
this._state = _state;
|
|
551
|
+
this.http = http;
|
|
552
|
+
this.route = route;
|
|
553
|
+
this.location = location;
|
|
554
|
+
this.backend = backend;
|
|
555
|
+
this.searchView = new ProcessesView();
|
|
556
|
+
this.DynamicOps = [];
|
|
557
|
+
this.valueToShow = "";
|
|
558
|
+
//********************************************** Gestione modifica Consumer Group ***************************************
|
|
559
|
+
this.newCg = "";
|
|
560
|
+
this.CGs = [];
|
|
561
|
+
this.CgDictionariesLoaded = false;
|
|
562
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
563
|
+
this.DynamicOps = [
|
|
564
|
+
new esTable.EsTableOperationDefinition("trace_on", this.lc.loc("Activate Process Tracing"), "fa fa-circle text-danger", "", "trace_enabled", "N"),
|
|
565
|
+
new esTable.EsTableOperationDefinition("trace_off", this.lc.loc("Deactivate Process Tracing"), "fa fa-circle text-success", "", "trace_enabled", "Y"),
|
|
566
|
+
new esTable.EsTableOperationDefinition("kill", this.lc.loc("Kill Process"), "fa fa-ban text-danger"),
|
|
567
|
+
new esTable.EsTableOperationDefinition("change_cg", this.lc.loc("Change Consumer Group"), "fa fa-edit text-info")
|
|
568
|
+
];
|
|
569
|
+
}
|
|
570
|
+
AdmWrkComponent.prototype.ngOnInit = function () {
|
|
571
|
+
var _this = this;
|
|
572
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) {
|
|
573
|
+
_this.Init(params["ignoreStorage"]);
|
|
574
|
+
});
|
|
575
|
+
};
|
|
576
|
+
AdmWrkComponent.prototype.ngOnDestroy = function () {
|
|
577
|
+
if (this.storageSub)
|
|
578
|
+
this.storageSub.unsubscribe();
|
|
579
|
+
};
|
|
580
|
+
AdmWrkComponent.prototype.Init = function (ignoreStorage) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
582
|
+
var item;
|
|
583
|
+
return __generator(this, function (_a) {
|
|
584
|
+
switch (_a.label) {
|
|
585
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotProcessato").toPromise()];
|
|
586
|
+
case 1:
|
|
587
|
+
item = _a.sent();
|
|
588
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
589
|
+
this.init(item);
|
|
590
|
+
return [3 /*break*/, 4];
|
|
591
|
+
case 2:
|
|
592
|
+
this.init(null);
|
|
593
|
+
this.location.replaceState("/pages/adm/serverworkers");
|
|
594
|
+
this.route.snapshot.queryParams = [];
|
|
595
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotProcessato").toPromise()];
|
|
596
|
+
case 3:
|
|
597
|
+
_a.sent();
|
|
598
|
+
_a.label = 4;
|
|
599
|
+
case 4: return [2 /*return*/];
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
};
|
|
604
|
+
AdmWrkComponent.prototype.init = function (HotPotato) {
|
|
605
|
+
if (HotPotato) {
|
|
606
|
+
this.searchView = HotPotato;
|
|
607
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerWorkers"], this.searchView);
|
|
608
|
+
}
|
|
609
|
+
else {
|
|
610
|
+
this.searchView = new ProcessesView();
|
|
611
|
+
this.sendSearch();
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
AdmWrkComponent.prototype.sendSearch = function (resetPage) {
|
|
615
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
616
|
+
this.searchView.searchinprogress = true;
|
|
617
|
+
if (resetPage)
|
|
618
|
+
this.searchView.page = 1;
|
|
619
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerWorkers"], this.searchView);
|
|
620
|
+
};
|
|
621
|
+
AdmWrkComponent.prototype.POSTGetProcesses = function (url, data) {
|
|
622
|
+
var _this = this;
|
|
623
|
+
this.http.post(url, data).subscribe(function (t) {
|
|
624
|
+
_this.searchView = t;
|
|
625
|
+
_this.searchView.searchinprogress = false;
|
|
626
|
+
_this.localStorage.setItem("HotProcessato", _this.searchView).subscribe();
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
AdmWrkComponent.prototype.back = function () {
|
|
630
|
+
this.location.back();
|
|
631
|
+
};
|
|
632
|
+
AdmWrkComponent.prototype.onOperation = function (event) {
|
|
633
|
+
switch (event.id) {
|
|
634
|
+
case "trace_on":
|
|
635
|
+
this.toggleTracing(event.item, true);
|
|
636
|
+
break;
|
|
637
|
+
case "trace_off":
|
|
638
|
+
this.toggleTracing(event.item, false);
|
|
639
|
+
break;
|
|
640
|
+
case "kill":
|
|
641
|
+
this.killProcess(event.item);
|
|
642
|
+
break;
|
|
643
|
+
case "change_cg":
|
|
644
|
+
this.changeProcessCg(event.item);
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
AdmWrkComponent.prototype.toggleTracing = function (process, tracing) {
|
|
649
|
+
var _this = this;
|
|
650
|
+
var pars = new http.HttpParams()
|
|
651
|
+
.set("instanceid", process.properties["inst_id"])
|
|
652
|
+
.set("sid", process.properties["sid"])
|
|
653
|
+
.set("serial", process.properties["serial"])
|
|
654
|
+
.set("enable", tracing.toString());
|
|
655
|
+
this.http.get(this.backend + Repository["GET_Adm_SetProcessTracing"], pars).subscribe(function (t) {
|
|
656
|
+
_this.msgExts.manageStringResponse(t, "", _this.lc.loc("Errors toggling Process Tracing"), function () { return _this.sendSearch(); });
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
AdmWrkComponent.prototype.killProcess = function (process) {
|
|
660
|
+
var _this = this;
|
|
661
|
+
this.msgExts.simpleWarningWithChoice(this.lc.loc("Confirm Process Kill"), this.lc.loc("Are you sure you wish to kill the selected process? The associated user will be disconnected"), function () {
|
|
662
|
+
var pars = new http.HttpParams()
|
|
663
|
+
.set("instanceid", process.properties["inst_id"])
|
|
664
|
+
.set("sid", process.properties["sid"])
|
|
665
|
+
.set("serial", process.properties["serial"]);
|
|
666
|
+
_this.http.get(_this.backend + Repository["GET_Adm_KillProcess"], pars).subscribe(function (t) {
|
|
667
|
+
_this.msgExts.manageStringResponse(t, _this.lc.loc("Process succesfully killed"), _this.lc.loc("Errors killing the Process"), function () { return _this.sendSearch(); });
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
AdmWrkComponent.prototype.changeProcessCg = function (process) {
|
|
672
|
+
this.ProcessOnEdit = process;
|
|
673
|
+
if (!this.CgDictionariesLoaded) {
|
|
674
|
+
this.loadCgDictionaries();
|
|
675
|
+
this.CgDictionariesLoaded = true;
|
|
676
|
+
}
|
|
677
|
+
this.setupChangeCg();
|
|
678
|
+
this.dlgChangeCg.show();
|
|
679
|
+
};
|
|
680
|
+
AdmWrkComponent.prototype.loadCgDictionaries = function () {
|
|
681
|
+
var _this = this;
|
|
682
|
+
this.http.get(this.backend + Repository["GET_Adm_GetConsumerGroups"]).subscribe(function (t) { return _this.CGs = t; });
|
|
683
|
+
};
|
|
684
|
+
AdmWrkComponent.prototype.setupChangeCg = function () {
|
|
685
|
+
var _this = this;
|
|
686
|
+
this.utiExts.cleanForm(this.cgFrom);
|
|
687
|
+
setTimeout(function () { _this.newCg = ""; });
|
|
688
|
+
};
|
|
689
|
+
AdmWrkComponent.prototype.doChangeCg = function () {
|
|
690
|
+
var _this = this;
|
|
691
|
+
var pars = new http.HttpParams()
|
|
692
|
+
.set("instanceid", this.ProcessOnEdit.properties["inst_id"])
|
|
693
|
+
.set("sid", this.ProcessOnEdit.properties["sid"])
|
|
694
|
+
.set("serial", this.ProcessOnEdit.properties["serial"])
|
|
695
|
+
.set("consumer_group", this.newCg);
|
|
696
|
+
this.http.get(this.backend + Repository["GET_Adm_ChangeProcessConsumerGroup"], pars).subscribe(function (t) {
|
|
697
|
+
_this.msgExts.manageStringResponse(t, _this.lc.loc("Consumer Group succesfully changed"), _this.lc.loc("Errors changing Consumer Group"), function () { return _this.sendSearch(); });
|
|
698
|
+
});
|
|
699
|
+
return true;
|
|
700
|
+
};
|
|
701
|
+
return AdmWrkComponent;
|
|
702
|
+
}());
|
|
703
|
+
AdmWrkComponent.decorators = [
|
|
704
|
+
{ type: core.Component, args: [{
|
|
705
|
+
selector: "adm_wrk",
|
|
706
|
+
viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmWrkLoc }],
|
|
707
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Processes' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filtertenant\" name=\"filterTenant\" [Placeholder]=\"'Tenant' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filteruser\" name=\"filterUser\" [Placeholder]=\"'User' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterstate\" name=\"filterState\" [Placeholder]=\"'State' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10\">\r\n <form-checkbox [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterglobal\" name=\"filterglobal\"></form-checkbox> \r\n <span class=\"app-pointer\" (click)=\"searchView.filterglobal = !searchView.filterglobal\">{{'Global' | localize : lc}}</span>\r\n </div>\r\n <button [disabled]=\"searchView.searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Application Processes' | localize : lc}}...</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [DynamicOperations]=\"DynamicOps\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\" (onDynamicOperation)=\"onOperation($event)\">\r\n <span class=\"app-nowrap\" *td=\"'full_wait_stack'; let value\">\r\n <span class=\"fa fa-list app-pointer\" (click)=\"valueToShow = value; dlgValue.show();\"></span> \r\n {{value.length > 70 ? value.substr(0, 67) + '...' : value}}\r\n </span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"app-margin-top-15\">\r\n <button class=\"btn btn-secondary pull-left\" type=\"button\" (click)=\"back()\">{{'Back' | localize : lc}}</button>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div bsModal #dlgChangeCg=\"bs-modal\" class=\"modal fade\" role=\"dialog\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\" cdkDrag>\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" cdkDragHandle>\r\n <h4 class=\"modal-title pull-left\">{{'Change Consumer Group' | localize : lc}}</h4>\r\n <button type=\"button\" class=\"close pull-right\" (click)=\"dlgChangeCg.hide()\" aria-label=\"Close\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <form novalidate #cgFrom=\"ngForm\" (ngSubmit)=\"cgFrom.valid && doChangeCg() && dlgChangeCg.hide()\">\r\n <div class=\"modal-body\">\r\n <form-select [Label]=\"'New Consumer Group' | localize : lc\" [(ngModel)]=\"newCg\" name=\"newcg\" [Source]=\"CGs\" required [Last]=\"true\"></form-select>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-secondary app-margin-right-5\" (click)=\"dlgChangeCg.hide()\">{{'Close' | localize : lc}}</button>\r\n <button type=\"submit\" class=\"btn btn-primary\">{{'Confirm' | localize : lc}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n<div bsModal #dlgValue=\"bs-modal\" class=\"modal fade\" role=\"dialog\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-xl\" app-draggable=\".modal-header\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title pull-left\">\r\n Full Wait Stack\r\n </h5>\r\n <button type=\"button\" class=\"close pull-right\" (click)=\"dlgValue.hide()\" aria-label=\"Close\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body app-padidng-bottom-20 app-padding-top-20\">\r\n <span class=\"app-wrap\">\r\n {{valueToShow}}\r\n </span>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"dlgValue.hide()\">Chiudi</button>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
708
|
+
},] }
|
|
709
|
+
];
|
|
710
|
+
AdmWrkComponent.ctorParameters = function () { return [
|
|
711
|
+
{ type: extensions.UtilityService },
|
|
712
|
+
{ type: extensions.MessageService },
|
|
713
|
+
{ type: localizations.LocalizationService },
|
|
714
|
+
{ type: preferences.PreferencesService },
|
|
715
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
716
|
+
{ type: httpservice.HTTPService },
|
|
717
|
+
{ type: router.ActivatedRoute },
|
|
718
|
+
{ type: common.Location },
|
|
719
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
720
|
+
]; };
|
|
721
|
+
AdmWrkComponent.propDecorators = {
|
|
722
|
+
cgFrom: [{ type: core.ViewChild, args: ["cgFrom",] }],
|
|
723
|
+
dlgChangeCg: [{ type: core.ViewChild, args: ["dlgChangeCg",] }]
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
var Locale = localStorage.getItem("LOCALE") || myconfig.LOCALE;
|
|
727
|
+
|
|
728
|
+
var ProfilerDataNode_loc = {
|
|
729
|
+
'Parent ID': { 'en-US': "Parent ID", 'it-IT': "ID Padre" },
|
|
730
|
+
'ID': { 'en-US': "ID", 'it-IT': "ID" },
|
|
731
|
+
'Description': { 'en-US': "Description", 'it-IT': "Descrizione" },
|
|
732
|
+
'Calls': { 'en-US': "Calls", 'it-IT': "Chiamate" },
|
|
733
|
+
'Time': { 'en-US': "Time", 'it-IT': "Tempo" },
|
|
734
|
+
'Peak Time': { 'en-US': "Peak Time", 'it-IT': "Tempo Max" },
|
|
735
|
+
'Min. Time': { 'en-US': "Min. Time", 'it-IT': "Tempo Min" },
|
|
736
|
+
'Avg. Time': { 'en-US': "Avg. Time", 'it-IT': "Tempo Medio" },
|
|
737
|
+
'Specific Time': { 'en-US': "Specific Time", 'it-IT': "Tempo Specifico" },
|
|
738
|
+
'Percentage': { 'en-US': "Percentage", 'it-IT': "Percentuale" },
|
|
739
|
+
'Calls for Period': { 'en-US': "Calls for Period", 'it-IT': "Chiamate Periodo" },
|
|
740
|
+
'Time for Period': { 'en-US': "Time for Period", 'it-IT': "Tempo Periodo" },
|
|
741
|
+
'Peak Time for Period': { 'en-US': "Peak Time for Period", 'it-IT': "Tempo Max Periodo" },
|
|
742
|
+
'Min. Time for Period': { 'en-US': "Min. Time for Period", 'it-IT': "Tempo Min Periodo" },
|
|
743
|
+
'Avg. Time for Period': { 'en-US': "Avg. Time for Period", 'it-IT': "Tempo Medio Periodo" },
|
|
744
|
+
'Specific Time for Period': { 'en-US': "Specific Time for Period", 'it-IT': "Tempo Specifico Periodo" },
|
|
745
|
+
'Percentage for Period': { 'en-US': "Percentage for Period", 'it-IT': "Percentuale Periodo" }
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
var ProfilerDataNode = /** @class */ (function () {
|
|
749
|
+
function ProfilerDataNode() {
|
|
750
|
+
}
|
|
751
|
+
return ProfilerDataNode;
|
|
752
|
+
}());
|
|
753
|
+
__decorate([
|
|
754
|
+
extensions.Export(10, ProfilerDataNode_loc["Parent ID"][Locale]),
|
|
755
|
+
cerialize.autoserialize
|
|
756
|
+
], ProfilerDataNode.prototype, "parentid", void 0);
|
|
757
|
+
__decorate([
|
|
758
|
+
extensions.Export(20, ProfilerDataNode_loc["ID"][Locale]),
|
|
759
|
+
cerialize.autoserialize
|
|
760
|
+
], ProfilerDataNode.prototype, "id", void 0);
|
|
761
|
+
__decorate([
|
|
762
|
+
extensions.Export(30, ProfilerDataNode_loc["Description"][Locale]),
|
|
763
|
+
cerialize.autoserialize
|
|
764
|
+
], ProfilerDataNode.prototype, "description", void 0);
|
|
765
|
+
__decorate([
|
|
766
|
+
extensions.Export(40, ProfilerDataNode_loc["Calls"][Locale]),
|
|
767
|
+
cerialize.autoserialize
|
|
768
|
+
], ProfilerDataNode.prototype, "calls", void 0);
|
|
769
|
+
__decorate([
|
|
770
|
+
extensions.Export(50, ProfilerDataNode_loc["Time"][Locale]),
|
|
771
|
+
cerialize.autoserialize
|
|
772
|
+
], ProfilerDataNode.prototype, "time", void 0);
|
|
773
|
+
__decorate([
|
|
774
|
+
extensions.Export(60, ProfilerDataNode_loc["Peak Time"][Locale]),
|
|
775
|
+
cerialize.autoserialize
|
|
776
|
+
], ProfilerDataNode.prototype, "peaktime", void 0);
|
|
777
|
+
__decorate([
|
|
778
|
+
extensions.Export(70, ProfilerDataNode_loc["Min. Time"][Locale]),
|
|
779
|
+
cerialize.autoserialize
|
|
780
|
+
], ProfilerDataNode.prototype, "mintime", void 0);
|
|
781
|
+
__decorate([
|
|
782
|
+
extensions.Export(80, ProfilerDataNode_loc["Avg. Time"][Locale]),
|
|
783
|
+
cerialize.autoserialize
|
|
784
|
+
], ProfilerDataNode.prototype, "avgtime", void 0);
|
|
785
|
+
__decorate([
|
|
786
|
+
extensions.Export(90, ProfilerDataNode_loc["Specific Time"][Locale]),
|
|
787
|
+
cerialize.autoserialize
|
|
788
|
+
], ProfilerDataNode.prototype, "timewithoutchildren", void 0);
|
|
789
|
+
__decorate([
|
|
790
|
+
extensions.Export(100, ProfilerDataNode_loc["Percentage"][Locale]),
|
|
791
|
+
cerialize.autoserialize
|
|
792
|
+
], ProfilerDataNode.prototype, "percentage", void 0);
|
|
793
|
+
__decorate([
|
|
794
|
+
extensions.Export(110, ProfilerDataNode_loc["Calls for Period"][Locale]),
|
|
795
|
+
cerialize.autoserialize
|
|
796
|
+
], ProfilerDataNode.prototype, "snapdeltacalls", void 0);
|
|
797
|
+
__decorate([
|
|
798
|
+
extensions.Export(120, ProfilerDataNode_loc["Time for Period"][Locale]),
|
|
799
|
+
cerialize.autoserialize
|
|
800
|
+
], ProfilerDataNode.prototype, "snapdeltatime", void 0);
|
|
801
|
+
__decorate([
|
|
802
|
+
extensions.Export(130, ProfilerDataNode_loc["Peak Time for Period"][Locale]),
|
|
803
|
+
cerialize.autoserialize
|
|
804
|
+
], ProfilerDataNode.prototype, "snappeaktime", void 0);
|
|
805
|
+
__decorate([
|
|
806
|
+
extensions.Export(140, ProfilerDataNode_loc["Min. Time for Period"][Locale]),
|
|
807
|
+
cerialize.autoserialize
|
|
808
|
+
], ProfilerDataNode.prototype, "snapmintime", void 0);
|
|
809
|
+
__decorate([
|
|
810
|
+
extensions.Export(150, ProfilerDataNode_loc["Avg. Time for Period"][Locale]),
|
|
811
|
+
cerialize.autoserialize
|
|
812
|
+
], ProfilerDataNode.prototype, "snapavgtime", void 0);
|
|
813
|
+
__decorate([
|
|
814
|
+
extensions.Export(160, ProfilerDataNode_loc["Specific Time for Period"][Locale]),
|
|
815
|
+
cerialize.autoserialize
|
|
816
|
+
], ProfilerDataNode.prototype, "snaptimewithoutchildren", void 0);
|
|
817
|
+
__decorate([
|
|
818
|
+
extensions.Export(170, ProfilerDataNode_loc["Percentage for Period"][Locale]),
|
|
819
|
+
cerialize.autoserialize
|
|
820
|
+
], ProfilerDataNode.prototype, "snappercentage", void 0);
|
|
821
|
+
|
|
822
|
+
var ProfilerDataNodesView = /** @class */ (function (_super) {
|
|
823
|
+
__extends(ProfilerDataNodesView, _super);
|
|
824
|
+
function ProfilerDataNodesView() {
|
|
825
|
+
return _super.call(this) || this;
|
|
826
|
+
}
|
|
827
|
+
return ProfilerDataNodesView;
|
|
828
|
+
}(esTable.AppSearch));
|
|
829
|
+
|
|
830
|
+
var AdmProfilerComponentLoc = /** @class */ (function (_super) {
|
|
831
|
+
__extends(AdmProfilerComponentLoc, _super);
|
|
832
|
+
function AdmProfilerComponentLoc(LOC_LOCALE) {
|
|
833
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
834
|
+
_super.prototype.set.call(_this, "en->it", "Server Profiler", ["Profiler del Server"]);
|
|
835
|
+
_super.prototype.set.call(_this, "en->it", "Loading Data", ["Carico i Dati"]);
|
|
836
|
+
_super.prototype.set.call(_this, "en->it", "ID", ["ID"]);
|
|
837
|
+
_super.prototype.set.call(_this, "en->it", "Description", ["Descrizione"]);
|
|
838
|
+
_super.prototype.set.call(_this, "en->it", "Calls", ["Chiamate"]);
|
|
839
|
+
_super.prototype.set.call(_this, "en->it", "Time", ["Tempo"]);
|
|
840
|
+
_super.prototype.set.call(_this, "en->it", "Peak Time", ["Tempo Max"]);
|
|
841
|
+
_super.prototype.set.call(_this, "en->it", "Min. Time", ["Tempo Min"]);
|
|
842
|
+
_super.prototype.set.call(_this, "en->it", "Avg. Time", ["Tempo Medio"]);
|
|
843
|
+
_super.prototype.set.call(_this, "en->it", "Specific Time", ["Tempo Specifico"]);
|
|
844
|
+
_super.prototype.set.call(_this, "en->it", "Percentage", ["Percentuale"]);
|
|
845
|
+
_super.prototype.set.call(_this, "en->it", "Calls for Period", ["Chiamate Periodo"]);
|
|
846
|
+
_super.prototype.set.call(_this, "en->it", "Time for Period", ["Tempo Periodo"]);
|
|
847
|
+
_super.prototype.set.call(_this, "en->it", "Peak Time for Period", ["Tempo Max Periodo"]);
|
|
848
|
+
_super.prototype.set.call(_this, "en->it", "Min. Time for Period", ["Tempo Min Periodo"]);
|
|
849
|
+
_super.prototype.set.call(_this, "en->it", "Avg. Time for Period", ["Tempo Medio Periodo"]);
|
|
850
|
+
_super.prototype.set.call(_this, "en->it", "Specific Time for Period", ["Tempo Specifico Periodo"]);
|
|
851
|
+
_super.prototype.set.call(_this, "en->it", "Percentage for Period", ["Percentuale Periodo"]);
|
|
852
|
+
return _this;
|
|
853
|
+
}
|
|
854
|
+
return AdmProfilerComponentLoc;
|
|
855
|
+
}(localizations.LocalizationService));
|
|
856
|
+
AdmProfilerComponentLoc.decorators = [
|
|
857
|
+
{ type: core.Injectable }
|
|
858
|
+
];
|
|
859
|
+
AdmProfilerComponentLoc.ctorParameters = function () { return [
|
|
860
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
861
|
+
]; };
|
|
862
|
+
|
|
863
|
+
var AdmProfilerComponent = /** @class */ (function () {
|
|
864
|
+
function AdmProfilerComponent(expExts, lc, localStorage, location, _state, http, route, backend) {
|
|
865
|
+
this.expExts = expExts;
|
|
866
|
+
this.lc = lc;
|
|
867
|
+
this.localStorage = localStorage;
|
|
868
|
+
this.location = location;
|
|
869
|
+
this._state = _state;
|
|
870
|
+
this.http = http;
|
|
871
|
+
this.route = route;
|
|
872
|
+
this.backend = backend;
|
|
873
|
+
this.searchView = new ProfilerDataNodesView();
|
|
874
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
875
|
+
}
|
|
876
|
+
AdmProfilerComponent.prototype.ngOnInit = function () {
|
|
877
|
+
var _this = this;
|
|
878
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) {
|
|
879
|
+
_this.Init(params["ignoreStorage"]);
|
|
880
|
+
});
|
|
881
|
+
};
|
|
882
|
+
AdmProfilerComponent.prototype.Init = function (ignoreStore) {
|
|
883
|
+
this.doInit(ignoreStore);
|
|
884
|
+
};
|
|
885
|
+
AdmProfilerComponent.prototype.doInit = function (ignoreStorage) {
|
|
886
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
887
|
+
var item;
|
|
888
|
+
return __generator(this, function (_a) {
|
|
889
|
+
switch (_a.label) {
|
|
890
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotSearchProfilato").toPromise()];
|
|
891
|
+
case 1:
|
|
892
|
+
item = _a.sent();
|
|
893
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
894
|
+
this.init(item);
|
|
895
|
+
return [3 /*break*/, 4];
|
|
896
|
+
case 2:
|
|
897
|
+
this.init(null);
|
|
898
|
+
this.location.replaceState("/pages/adm/profiler");
|
|
899
|
+
this.route.snapshot.queryParams = [];
|
|
900
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotSearchProfilato").toPromise()];
|
|
901
|
+
case 3:
|
|
902
|
+
_a.sent();
|
|
903
|
+
_a.label = 4;
|
|
904
|
+
case 4: return [2 /*return*/];
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
AdmProfilerComponent.prototype.init = function (HotPotato) {
|
|
910
|
+
if (HotPotato) {
|
|
911
|
+
this.searchView = HotPotato;
|
|
912
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetProfilerDataNodes"], this.searchView);
|
|
913
|
+
}
|
|
914
|
+
else {
|
|
915
|
+
this.searchView = new ProfilerDataNodesView();
|
|
916
|
+
this.sendSearch();
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
AdmProfilerComponent.prototype.ngOnDestroy = function () {
|
|
920
|
+
if (this.storageSub)
|
|
921
|
+
this.storageSub.unsubscribe();
|
|
922
|
+
};
|
|
923
|
+
AdmProfilerComponent.prototype.sendSearch = function (resetPage) {
|
|
924
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
925
|
+
this.searchView.searchinprogress = true;
|
|
926
|
+
if (resetPage)
|
|
927
|
+
this.searchView.page = 1;
|
|
928
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetProfilerDataNodes"], this.searchView);
|
|
929
|
+
};
|
|
930
|
+
AdmProfilerComponent.prototype.POSTGetItems = function (url, data) {
|
|
931
|
+
var _this = this;
|
|
932
|
+
this.http.post(url, data).subscribe(function (t) {
|
|
933
|
+
_this.searchView = t;
|
|
934
|
+
_this.searchView.searchinprogress = false;
|
|
935
|
+
_this.localStorage.setItem("HotSearchProfilato", _this.searchView).subscribe();
|
|
936
|
+
});
|
|
937
|
+
};
|
|
938
|
+
AdmProfilerComponent.prototype.prepareExport = function (dataCallBack) {
|
|
939
|
+
var _this = this;
|
|
940
|
+
var view = JSON.parse(JSON.stringify(this.searchView));
|
|
941
|
+
view.page = 1;
|
|
942
|
+
view.itemsperpageoverride = 9999999;
|
|
943
|
+
this.http.post(this.backend + Repository["POST_Adm_GetProfilerDataNodes"], view).subscribe(function (t) {
|
|
944
|
+
var items = _this.expExts.deserializeForExport(t.items, ProfilerDataNode);
|
|
945
|
+
dataCallBack(items);
|
|
946
|
+
});
|
|
947
|
+
};
|
|
948
|
+
return AdmProfilerComponent;
|
|
949
|
+
}());
|
|
950
|
+
AdmProfilerComponent.decorators = [
|
|
951
|
+
{ type: core.Component, args: [{
|
|
952
|
+
selector: "adm_profiler",
|
|
953
|
+
providers: [{ provide: localizations.LocalizationService, useClass: AdmProfilerComponentLoc }],
|
|
954
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Server Profiler' | localize : lc}}</span> \r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterfrom\" name=\"filterfrom\" [Placeholder]=\"'From' | localize : lc\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterto\" name=\"filterto\" [Placeholder]=\"'To' | localize : lc\"></form-date>\r\n </div>\r\n <button [disabled]=\"searchView.searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Data' | localize : lc}}</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [Hierarchy]=\"true\" [OrderByColumn]=\"false\" [ParentKey]=\"'parentid'\"\r\n [OwnKey]=\"'id'\" [StartsExpanded]=\"false\" [ExportFunction]=\"prepareExport.bind(this)\" [Export]=\"true\"\r\n [ExportFileName]=\"'Profiler Export.csv'\" [HidePaging]=\"true\" (onSearchRequest)=\"sendSearch($event);\">\r\n \r\n <span *th=\"'1'\">{{'ID' | localize : lc}}</span>\r\n <span *th=\"'2'\">{{'Description' | localize : lc}}</span>\r\n <span *th=\"'3'\">{{'Calls' | localize : lc}}</span>\r\n <span *th=\"'4'\">{{'Time' | localize : lc}}</span>\r\n <span *th=\"'5'\">{{'Peak Time' | localize : lc}}</span>\r\n <span *th=\"'6'\">{{'Min. Time' | localize : lc}}</span>\r\n <span *th=\"'7'\">{{'Avg. Time' | localize : lc}}</span>\r\n <span *th=\"'8'\">{{'Specific Time' | localize : lc}}</span>\r\n <span *th=\"'9'\">{{'Percentage' | localize : lc}}</span>\r\n <span *th=\"'10'\">{{'Calls for Period' | localize : lc}}</span>\r\n <span *th=\"'11'\">{{'Time for Period' | localize : lc}}</span>\r\n <span *th=\"'12'\">{{'Peak Time for Period' | localize : lc}}</span>\r\n <span *th=\"'13'\">{{'Min. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'14'\">{{'Avg. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'15'\">{{'Specific Time for Period' | localize : lc}}</span>\r\n <span *th=\"'16'\">{{'Percentage for Period' | localize : lc}}</span>\r\n\r\n <span *td=\"'1'; let item\">{{item.id}}</span>\r\n <span *td=\"'2'; let item\" title=\"{{item.description}}\">{{item.description.length <= 50 ? item.description : item.description.substr(0,50) + \"[...]\" }}</span>\r\n <span *td=\"'3'; let item\">{{item.calls}}</span>\r\n <span *td=\"'4'; let item\">{{item.time}}</span>\r\n <span *td=\"'5'; let item\">{{item.peaktime}}</span>\r\n <span *td=\"'6'; let item\">{{item.mintime}}</span>\r\n <span *td=\"'7'; let item\">{{item.avgtime}}</span>\r\n <span *td=\"'8'; let item\">{{item.timewithoutchildren}}</span>\r\n <span *td=\"'9'; let item\">{{item.percentage}}</span>\r\n <span *td=\"'10' let item\">{{item.snapdeltacalls}}</span>\r\n <span *td=\"'11' let item\">{{item.snapdeltatime}}</span>\r\n <span *td=\"'12' let item\">{{item.snappeaktime}}</span>\r\n <span *td=\"'13' let item\">{{item.snapmintime}}</span>\r\n <span *td=\"'14' let item\">{{item.snapavgtime}}</span>\r\n <span *td=\"'15' let item\">{{item.snaptimewithoutchildren}}</span>\r\n <span *td=\"'16' let item\">{{item.snappercentage}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
955
|
+
},] }
|
|
956
|
+
];
|
|
957
|
+
AdmProfilerComponent.ctorParameters = function () { return [
|
|
958
|
+
{ type: extensions.ExportService },
|
|
959
|
+
{ type: localizations.LocalizationService },
|
|
960
|
+
{ type: preferences.PreferencesService },
|
|
961
|
+
{ type: common.Location },
|
|
962
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
963
|
+
{ type: httpservice.HTTPService },
|
|
964
|
+
{ type: router.ActivatedRoute },
|
|
965
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
966
|
+
]; };
|
|
967
|
+
|
|
968
|
+
var TopActivitiesDataView = /** @class */ (function (_super) {
|
|
969
|
+
__extends(TopActivitiesDataView, _super);
|
|
970
|
+
function TopActivitiesDataView() {
|
|
971
|
+
return _super.call(this) || this;
|
|
972
|
+
}
|
|
973
|
+
return TopActivitiesDataView;
|
|
974
|
+
}(esTable.AppSearch));
|
|
975
|
+
|
|
976
|
+
var AdmTopActivitieLoc = /** @class */ (function (_super) {
|
|
977
|
+
__extends(AdmTopActivitieLoc, _super);
|
|
978
|
+
function AdmTopActivitieLoc(LOC_LOCALE) {
|
|
979
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
980
|
+
_super.prototype.set.call(_this, "en->it", "Active Sessions", ["Sessioni Attive"]);
|
|
981
|
+
_super.prototype.set.call(_this, "en->it", "Top Nodes", ["Prime Istruzioni"]);
|
|
982
|
+
_super.prototype.set.call(_this, "en->it", "Top Sessions", ["Prime Sessioni"]);
|
|
983
|
+
_super.prototype.set.call(_this, "en->it", "Loading Data", ["Carico i Dati"]);
|
|
984
|
+
_super.prototype.set.call(_this, "en->it", "Top Activities", ["Attivita' Principali"]);
|
|
985
|
+
_super.prototype.set.call(_this, "en->it", "Node Description", ["Descrizione Nodo"]);
|
|
986
|
+
_super.prototype.set.call(_this, "en->it", "Node", ["Nodo"]);
|
|
987
|
+
_super.prototype.set.call(_this, "en->it", "Activity", ["Attivita'"]);
|
|
988
|
+
_super.prototype.set.call(_this, "en->it", "Limit", ["Limite"]);
|
|
989
|
+
_super.prototype.set.call(_this, "en->it", "Node Type", ["Tipo Nodo"]);
|
|
990
|
+
_super.prototype.set.call(_this, "en->it", "User", ["Utente"]);
|
|
991
|
+
_super.prototype.set.call(_this, "en->it", "Tenant", ["Tenant"]);
|
|
992
|
+
_super.prototype.set.call(_this, "en->it", "Process", ["Processo"]);
|
|
993
|
+
_super.prototype.set.call(_this, "en->it", "Update every", ["Aggiorna ogni"]);
|
|
994
|
+
_super.prototype.set.call(_this, "en->it", "second/s", ["secondo/i"]);
|
|
995
|
+
_super.prototype.set.call(_this, "en->it", "Maximum Threads", ["Thread Massimi"]);
|
|
996
|
+
_super.prototype.set.call(_this, "en->it", "CPUs", ["CPU"]);
|
|
997
|
+
return _this;
|
|
998
|
+
}
|
|
999
|
+
return AdmTopActivitieLoc;
|
|
1000
|
+
}(localizations.LocalizationService));
|
|
1001
|
+
AdmTopActivitieLoc.decorators = [
|
|
1002
|
+
{ type: core.Injectable }
|
|
1003
|
+
];
|
|
1004
|
+
AdmTopActivitieLoc.ctorParameters = function () { return [
|
|
1005
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
1006
|
+
]; };
|
|
1007
|
+
|
|
1008
|
+
var AdmTopActivitiesComponent = /** @class */ (function () {
|
|
1009
|
+
function AdmTopActivitiesComponent(dateExts, lc, localStorage, location, _state, http, route, backend) {
|
|
1010
|
+
var _a;
|
|
1011
|
+
this.dateExts = dateExts;
|
|
1012
|
+
this.lc = lc;
|
|
1013
|
+
this.localStorage = localStorage;
|
|
1014
|
+
this.location = location;
|
|
1015
|
+
this._state = _state;
|
|
1016
|
+
this.http = http;
|
|
1017
|
+
this.route = route;
|
|
1018
|
+
this.backend = backend;
|
|
1019
|
+
this.searchView = new TopActivitiesDataView();
|
|
1020
|
+
this.autoUpdate = false;
|
|
1021
|
+
this.seconds = "5";
|
|
1022
|
+
this.seriesPropertiesMapping = {};
|
|
1023
|
+
this.propertiesSeriesMapping = (_a = {},
|
|
1024
|
+
_a["cputime"] = "CPU",
|
|
1025
|
+
_a["waittime"] = "Wait",
|
|
1026
|
+
_a["scripttime"] = "Scripting",
|
|
1027
|
+
_a["dbtime"] = "DB",
|
|
1028
|
+
_a["nettime"] = "Network",
|
|
1029
|
+
_a["throttletime"] = "Throttling",
|
|
1030
|
+
_a["sleeptime"] = "Sleep",
|
|
1031
|
+
_a["iotime"] = "IO",
|
|
1032
|
+
_a);
|
|
1033
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
1034
|
+
}
|
|
1035
|
+
AdmTopActivitiesComponent.prototype.ngOnInit = function () {
|
|
1036
|
+
var _this = this;
|
|
1037
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) {
|
|
1038
|
+
_this.Init(params["ignoreStorage"]);
|
|
1039
|
+
});
|
|
1040
|
+
};
|
|
1041
|
+
AdmTopActivitiesComponent.prototype.Init = function (ignoreStore) {
|
|
1042
|
+
this.doInit(ignoreStore);
|
|
1043
|
+
};
|
|
1044
|
+
AdmTopActivitiesComponent.prototype.doInit = function (ignoreStorage) {
|
|
1045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1046
|
+
var item;
|
|
1047
|
+
return __generator(this, function (_a) {
|
|
1048
|
+
switch (_a.label) {
|
|
1049
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotSearchTopAct").toPromise()];
|
|
1050
|
+
case 1:
|
|
1051
|
+
item = _a.sent();
|
|
1052
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
1053
|
+
this.init(item);
|
|
1054
|
+
return [3 /*break*/, 4];
|
|
1055
|
+
case 2:
|
|
1056
|
+
this.init(null);
|
|
1057
|
+
this.location.replaceState("/pages/adm/topact");
|
|
1058
|
+
this.route.snapshot.queryParams = [];
|
|
1059
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotSearchTopAct").toPromise()];
|
|
1060
|
+
case 3:
|
|
1061
|
+
_a.sent();
|
|
1062
|
+
_a.label = 4;
|
|
1063
|
+
case 4: return [2 /*return*/];
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
});
|
|
1067
|
+
};
|
|
1068
|
+
AdmTopActivitiesComponent.prototype.init = function (HotPotato) {
|
|
1069
|
+
if (HotPotato) {
|
|
1070
|
+
this.searchView = HotPotato;
|
|
1071
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetTopActivities"], this.searchView, false);
|
|
1072
|
+
}
|
|
1073
|
+
else {
|
|
1074
|
+
this.searchView = new TopActivitiesDataView();
|
|
1075
|
+
this.sendSearch();
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
AdmTopActivitiesComponent.prototype.ngOnDestroy = function () {
|
|
1079
|
+
if (this.storageSub)
|
|
1080
|
+
this.storageSub.unsubscribe();
|
|
1081
|
+
};
|
|
1082
|
+
AdmTopActivitiesComponent.prototype.sendSearch = function (resetPage, update, searchViewOverride) {
|
|
1083
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
1084
|
+
if (update === void 0) { update = false; }
|
|
1085
|
+
if (searchViewOverride === void 0) { searchViewOverride = null; }
|
|
1086
|
+
this.searchView.searchinprogress = true;
|
|
1087
|
+
if (resetPage)
|
|
1088
|
+
this.searchView.page = 1;
|
|
1089
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetTopActivities"], searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
|
|
1090
|
+
};
|
|
1091
|
+
AdmTopActivitiesComponent.prototype.POSTGetItems = function (url, data, update) {
|
|
1092
|
+
var _this = this;
|
|
1093
|
+
this.http.post(url, data).subscribe(function (t) { return __awaiter(_this, void 0, void 0, function () {
|
|
1094
|
+
var dirinfos;
|
|
1095
|
+
return __generator(this, function (_a) {
|
|
1096
|
+
switch (_a.label) {
|
|
1097
|
+
case 0:
|
|
1098
|
+
//Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
|
|
1099
|
+
if (!update) {
|
|
1100
|
+
this.searchView = t;
|
|
1101
|
+
this.localStorage.setItem("HotSearchTopAct", this.searchView).subscribe();
|
|
1102
|
+
}
|
|
1103
|
+
return [4 /*yield*/, this.getDirectorInfos()];
|
|
1104
|
+
case 1:
|
|
1105
|
+
dirinfos = _a.sent();
|
|
1106
|
+
this.searchView.searchinprogress = false;
|
|
1107
|
+
this.reviewBindings(update, t, dirinfos);
|
|
1108
|
+
return [2 /*return*/];
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
}); });
|
|
1112
|
+
};
|
|
1113
|
+
AdmTopActivitiesComponent.prototype.getDirectorInfos = function () {
|
|
1114
|
+
return this.http.get(this.backend + Repository["GET_Adm_GetInfos"]).pipe(operators.map(function (res) { return res; })).toPromise();
|
|
1115
|
+
};
|
|
1116
|
+
AdmTopActivitiesComponent.prototype.reviewBindings = function (update, searchViewOverride, dirInfos) {
|
|
1117
|
+
var _this = this;
|
|
1118
|
+
var reference = (searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView).items[0];
|
|
1119
|
+
this.TopNodes = reference.topnodes;
|
|
1120
|
+
this.TopSessions = reference.topsessions;
|
|
1121
|
+
this.DirInfos = dirInfos;
|
|
1122
|
+
if (!reference.actsessions || reference.actsessions.length == 0) {
|
|
1123
|
+
this.TopActiveSessions = null;
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
var series = [];
|
|
1127
|
+
var props = Object.keys(reference.actsessions[0]);
|
|
1128
|
+
for (var i = 0; i < props.length; i++) {
|
|
1129
|
+
if (props[i] != 'sampletime') {
|
|
1130
|
+
var s = new esCharts.LineSerie(this.propertiesSeriesMapping[props[i]], [], null, null, "sessions");
|
|
1131
|
+
series.push(s);
|
|
1132
|
+
this.seriesPropertiesMapping[props[i]] = s;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
for (var i = 0; i < reference.actsessions.length; i++) {
|
|
1136
|
+
var itemref = reference.actsessions[i];
|
|
1137
|
+
var theD = new Date(itemref.sampletime);
|
|
1138
|
+
for (var i_1 = 0; i_1 < props.length; i_1++)
|
|
1139
|
+
if (props[i_1] != 'sampletime' && (!update || this.dateExts.getDateConvertion(theD).isAfter(this.LastDataPoint)))
|
|
1140
|
+
this.seriesPropertiesMapping[props[i_1]].values.push(new esCharts.DateValue(theD, itemref[props[i_1]]));
|
|
1141
|
+
}
|
|
1142
|
+
if (update && this.ChartInstance) {
|
|
1143
|
+
var data = new esCharts.LineChartData(series, new esCharts.Limit(dirInfos === null || dirInfos === void 0 ? void 0 : dirInfos.threads, this.lc.loc("Maximum Threads")));
|
|
1144
|
+
if (series.some(function (t) { return t.values.length > 0; })) {
|
|
1145
|
+
this.ChartInstance.addData(data);
|
|
1146
|
+
this.LastDataPoint = series.map(function (t) { return dayjs.max(t.values.map(function (v) { return _this.dateExts.getDateConvertion(v.d); })); })[0];
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
this.TopActiveSessions = new esCharts.LineChartData(series, new esCharts.Limit(dirInfos === null || dirInfos === void 0 ? void 0 : dirInfos.threads, this.lc.loc("Maximum Threads")));
|
|
1151
|
+
this.LastDataPoint = series.map(function (t) { return dayjs.max(t.values.map(function (v) { return _this.dateExts.getDateConvertion(v.d); })); })[0];
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
AdmTopActivitiesComponent.prototype.autoUpdateChanged = function () {
|
|
1155
|
+
var _this = this;
|
|
1156
|
+
if (!/^[1-9]\d*$/.test(this.seconds))
|
|
1157
|
+
this.seconds = '10';
|
|
1158
|
+
var secondsInMs = parseInt(this.seconds, null) * 1000;
|
|
1159
|
+
if (this.autoUpdate) {
|
|
1160
|
+
this.sendSearch(false, true);
|
|
1161
|
+
this.updateTimer = setInterval(function () { _this.sendSearch(false, true); }, secondsInMs);
|
|
1162
|
+
}
|
|
1163
|
+
else
|
|
1164
|
+
clearInterval(this.updateTimer);
|
|
1165
|
+
};
|
|
1166
|
+
AdmTopActivitiesComponent.prototype.dataSelectionChanged = function (event) {
|
|
1167
|
+
this.from = event.initial ? (this.searchView.filterfrom ? this.dateExts.getDateConvertion(this.searchView.filterfrom).toDate() : "") : event.from;
|
|
1168
|
+
this.to = event.initial ? (this.searchView.filterto ? this.dateExts.getDateConvertion(this.searchView.filterto).toDate() : "") : event.to;
|
|
1169
|
+
var pseudoSearchView = JSON.parse(JSON.stringify(this.searchView));
|
|
1170
|
+
pseudoSearchView.filterfrom = this.from ? dayjs(this.from).format(this.lc.token("getFullDateDisplayFormat")) : "";
|
|
1171
|
+
pseudoSearchView.filterto = this.to ? dayjs(this.to).format(this.lc.token("getFullDateDisplayFormat")) : "";
|
|
1172
|
+
this.sendSearch(true, true, pseudoSearchView);
|
|
1173
|
+
};
|
|
1174
|
+
AdmTopActivitiesComponent.prototype.onChartLoaded = function (chart) {
|
|
1175
|
+
this.ChartInstance = chart;
|
|
1176
|
+
chart.Chart.events.on("ready", function () {
|
|
1177
|
+
chart.Chart.xAxes.each(function (x) { return x.zoom({ start: 0, end: 1 }, true, true); });
|
|
1178
|
+
chart.Chart.yAxes.each(function (y) { return y.zoom({ start: 0, end: 1 }, true, true); });
|
|
1179
|
+
setTimeout(function () {
|
|
1180
|
+
chart.Chart.xAxes.each(function (x) { return x.zoom({ start: 0, end: 1 }, true, true); });
|
|
1181
|
+
chart.Chart.yAxes.each(function (y) { return y.zoom({ start: 0, end: 1 }, true, true); });
|
|
1182
|
+
// 500 millisecondi è più o meno il tempo di prima animazione del grafico. Finito questo si resetta lo zoom
|
|
1183
|
+
}, 500);
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
return AdmTopActivitiesComponent;
|
|
1187
|
+
}());
|
|
1188
|
+
AdmTopActivitiesComponent.decorators = [
|
|
1189
|
+
{ type: core.Component, args: [{
|
|
1190
|
+
selector: "topact_search",
|
|
1191
|
+
providers: [
|
|
1192
|
+
{ provide: localizations.LocalizationService, useClass: AdmTopActivitieLoc }
|
|
1193
|
+
],
|
|
1194
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">\r\n {{'Top Activities' | localize : lc}}\r\n <span *ngIf=\"DirInfos\"> - {{'' + DirInfos.cpus + ' ' + ('CPUs' | localize : lc) + (DirInfos.rssplan ? ' - ' + DirInfos.rssplan : '')}}</span> \r\n </span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 app-relative\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-datetime [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterfrom\" name=\"filterfrom\" [Placeholder]=\"'From' | localize : lc\"></form-datetime>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-datetime [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterto\" name=\"filterto\" [Placeholder]=\"'To' | localize : lc\"></form-datetime>\r\n </div>\r\n <button [disabled]=\"searchView.searchinprogress || autoUpdate\" class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n\r\n <div class=\"app-absolute app-right-25 app-top-40\">\r\n <div class=\"pull-right\">\r\n {{'Update every' | localize : lc}} <input [readonly]=\"autoUpdate\" maxlength=\"3\" class=\"form-control app-updevery-input\" type=\"text\" [(ngModel)]=\"seconds\" name=\"secs\" /> {{'second/s' | localize : lc}}\r\n </div>\r\n <div class=\"pull-right m-t-2 app-margin-right-5\">\r\n <label class=\"switch\">\r\n <input type=\"checkbox\" [(ngModel)]=\"autoUpdate\" (ngModelChange)=\"autoUpdateChanged();\" />\r\n <div class=\"slider round\"></div>\r\n </label>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12 app-margin-top-5\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Data' | localize : lc}}</em></p>\r\n <div *ngIf=\"searchView\" class=\"row\">\r\n <div class=\"col-md-12 app-no-padding\">\r\n <!--<h5 class=\"app-margin-top-5\">{{'Active Sessions' | localize : lc}}</h5>-->\r\n <div style=\"width: 100%; height: 290px\">\r\n <es-line-chart *ngIf=\"TopActiveSessions\"\r\n [MinGridDistance]=\"65\"\r\n [Timeline]=\"false\"\r\n [FinalInstants]=\"false\"\r\n [LegendPadding]=\"{top: 0, bottom: 7, right: 0, left: 10}\"\r\n [Fill]=\"true\"\r\n [MergeDatasets]=\"true\"\r\n [Data]=\"TopActiveSessions\"\r\n [Legend]=\"true\" \r\n name=\"topactsession\"\r\n [DataGroupingThreshold]=\"99999999\"\r\n (onSelectionChanged)=\"dataSelectionChanged($event)\" (chartLoaded)=\"onChartLoaded($event)\"></es-line-chart>\r\n </div>\r\n </div>\r\n <div class=\"col-md-5\">\r\n <h5>{{'Top Nodes' | localize : lc}}</h5>\r\n <es-table [(ngModel)]=\"TopNodes\" [HidePaging]=\"true\">\r\n <ng-template #header>\r\n <th class=\"app-col-min\">{{'Node' | localize : lc}}</th>\r\n <th>{{'Node Description' | localize : lc}}</th>\r\n <th class=\"app-col-min\">{{'Activity' | localize : lc}}</th>\r\n <th class=\"app-col-min app-nowrap\">{{'Node Type' | localize : lc}}</th>\r\n </ng-template>\r\n <ng-template #body let-node>\r\n <td class=\"app-col-min\"><strong>{{node.profnodeid}}</strong></td>\r\n <td><span title=\"{{node.profnodedesc}}\">{{node.profnodedesc.length > 40 ? node.profnodedesc.substr(0,40) + \"...\" : node.profnodedesc}}</span></td>\r\n <td class=\"app-nowrap\">{{node.activity | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{node.nodetypename}}</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class=\"col-md-7\">\r\n <h5>{{'Top Sessions' | localize : lc}}</h5>\r\n <es-table [(ngModel)]=\"TopSessions\" [HidePaging]=\"true\">\r\n <ng-template #header>\r\n <th class=\"app-col-min\">ID</th>\r\n <th>{{'User' | localize : lc}}</th>\r\n <th>{{'Tenant' | localize : lc}}</th>\r\n <th>{{'Process' | localize : lc}}</th>\r\n <th>{{'Activity' | localize : lc}}</th>\r\n <th>Cpu</th>\r\n <th>Wait</th>\r\n <th>DB</th>\r\n <th>Script</th>\r\n <th>Throttle</th>\r\n <th>Sleep</th>\r\n <th>Networking</th>\r\n <th>IO</th>\r\n </ng-template>\r\n\r\n <ng-template #body let-session>\r\n <td><strong>{{session.sid}}</strong></td>\r\n <td>{{session.user}}</td>\r\n <td>{{session.tenant}}</td>\r\n <td>{{session.bgprocess}}</td>\r\n <td>{{session.activity | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.cpu | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.wait | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.db | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.script | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.throttle | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.sleep | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.net | number : '1.1-2' : 'it'}} %</td>\r\n <td>{{session.io | number : '1.1-2' : 'it'}} %</td>\r\n </ng-template>\r\n </es-table>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
1195
|
+
},] }
|
|
1196
|
+
];
|
|
1197
|
+
AdmTopActivitiesComponent.ctorParameters = function () { return [
|
|
1198
|
+
{ type: extensions.DateService },
|
|
1199
|
+
{ type: localizations.LocalizationService },
|
|
1200
|
+
{ type: preferences.PreferencesService },
|
|
1201
|
+
{ type: common.Location },
|
|
1202
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
1203
|
+
{ type: httpservice.HTTPService },
|
|
1204
|
+
{ type: router.ActivatedRoute },
|
|
1205
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1206
|
+
]; };
|
|
1207
|
+
|
|
1208
|
+
var LocksView = /** @class */ (function (_super) {
|
|
1209
|
+
__extends(LocksView, _super);
|
|
1210
|
+
function LocksView() {
|
|
1211
|
+
return _super.call(this) || this;
|
|
1212
|
+
}
|
|
1213
|
+
return LocksView;
|
|
1214
|
+
}(esTable.AppSearch));
|
|
1215
|
+
|
|
1216
|
+
var AdmEnqLoc = /** @class */ (function (_super) {
|
|
1217
|
+
__extends(AdmEnqLoc, _super);
|
|
1218
|
+
function AdmEnqLoc(LOC_LOCALE) {
|
|
1219
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
1220
|
+
_super.prototype.set.call(_this, "en->it", "Search Application Locks", ["Ricerca Lock Applicativi"]);
|
|
1221
|
+
_super.prototype.set.call(_this, "en->it", "Name", ["Nome"]);
|
|
1222
|
+
_super.prototype.set.call(_this, "en->it", "Loading Application Locks", ["Carico i Lock Applicativi"]);
|
|
1223
|
+
_super.prototype.set.call(_this, "en->it", "Global", ["Globale"]);
|
|
1224
|
+
return _this;
|
|
1225
|
+
}
|
|
1226
|
+
return AdmEnqLoc;
|
|
1227
|
+
}(localizations.LocalizationService));
|
|
1228
|
+
AdmEnqLoc.decorators = [
|
|
1229
|
+
{ type: core.Injectable }
|
|
1230
|
+
];
|
|
1231
|
+
AdmEnqLoc.ctorParameters = function () { return [
|
|
1232
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
1233
|
+
]; };
|
|
1234
|
+
|
|
1235
|
+
var AdmEnqComponent = /** @class */ (function () {
|
|
1236
|
+
function AdmEnqComponent(lc, localStorage, expExts, _state, http, route, location, backend) {
|
|
1237
|
+
this.lc = lc;
|
|
1238
|
+
this.localStorage = localStorage;
|
|
1239
|
+
this.expExts = expExts;
|
|
1240
|
+
this._state = _state;
|
|
1241
|
+
this.http = http;
|
|
1242
|
+
this.route = route;
|
|
1243
|
+
this.location = location;
|
|
1244
|
+
this.backend = backend;
|
|
1245
|
+
this.locksView = new LocksView();
|
|
1246
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
1247
|
+
}
|
|
1248
|
+
AdmEnqComponent.prototype.ngOnInit = function () {
|
|
1249
|
+
var _this = this;
|
|
1250
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) { _this.Init(params["ignoreStorage"]); });
|
|
1251
|
+
};
|
|
1252
|
+
AdmEnqComponent.prototype.ngOnDestroy = function () {
|
|
1253
|
+
if (this.storageSub)
|
|
1254
|
+
this.storageSub.unsubscribe();
|
|
1255
|
+
};
|
|
1256
|
+
AdmEnqComponent.prototype.Init = function (ignoreStorage) {
|
|
1257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1258
|
+
var item;
|
|
1259
|
+
return __generator(this, function (_a) {
|
|
1260
|
+
switch (_a.label) {
|
|
1261
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotEnqueue").toPromise()];
|
|
1262
|
+
case 1:
|
|
1263
|
+
item = _a.sent();
|
|
1264
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
1265
|
+
this.init(item);
|
|
1266
|
+
return [3 /*break*/, 4];
|
|
1267
|
+
case 2:
|
|
1268
|
+
this.init(null);
|
|
1269
|
+
this.location.replaceState("/pages/adm/serverenqueues");
|
|
1270
|
+
this.route.snapshot.queryParams = [];
|
|
1271
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotEnqueue").toPromise()];
|
|
1272
|
+
case 3:
|
|
1273
|
+
_a.sent();
|
|
1274
|
+
_a.label = 4;
|
|
1275
|
+
case 4: return [2 /*return*/];
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
});
|
|
1279
|
+
};
|
|
1280
|
+
AdmEnqComponent.prototype.init = function (HotPotato) {
|
|
1281
|
+
if (HotPotato) {
|
|
1282
|
+
this.locksView = HotPotato;
|
|
1283
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerLocks"], this.locksView);
|
|
1284
|
+
}
|
|
1285
|
+
else {
|
|
1286
|
+
this.locksView = new LocksView();
|
|
1287
|
+
this.sendSearch();
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
AdmEnqComponent.prototype.sendSearch = function (resetPage) {
|
|
1291
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
1292
|
+
if (resetPage)
|
|
1293
|
+
this.locksView.page = 1;
|
|
1294
|
+
this.POSTGetProcesses(this.backend + Repository["POST_Adm_GetServerLocks"], this.locksView);
|
|
1295
|
+
};
|
|
1296
|
+
AdmEnqComponent.prototype.POSTGetProcesses = function (url, data) {
|
|
1297
|
+
var _this = this;
|
|
1298
|
+
this.http.post(url, data).subscribe(function (t) {
|
|
1299
|
+
_this.locksView = t;
|
|
1300
|
+
_this.localStorage.setItem("HotEnqueue", _this.locksView).subscribe();
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
return AdmEnqComponent;
|
|
1304
|
+
}());
|
|
1305
|
+
AdmEnqComponent.decorators = [
|
|
1306
|
+
{ type: core.Component, args: [{
|
|
1307
|
+
selector: "adm_enq",
|
|
1308
|
+
viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmEnqLoc }],
|
|
1309
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Locks' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"locksView.filtersid\" name=\"filtersid\" [Placeholder]=\"'SID'\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"locksView.filterlock\" name=\"filterlock\" [Placeholder]=\"'Name' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper app-padding-top-10\">\r\n <form-checkbox [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"locksView.filterglobal\" name=\"filterglobal\"></form-checkbox> \r\n <span class=\"app-pointer\" (click)=\"locksView.filterglobal = !locksView.filterglobal\">{{'Global' | localize : lc}}</span>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!locksView\"><em>{{'Loading Application Locks' | localize : lc}}...</em></p>\r\n <div *ngIf=\"locksView\">\r\n <es-table [(ngModel)]=\"locksView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
1310
|
+
},] }
|
|
1311
|
+
];
|
|
1312
|
+
AdmEnqComponent.ctorParameters = function () { return [
|
|
1313
|
+
{ type: localizations.LocalizationService },
|
|
1314
|
+
{ type: preferences.PreferencesService },
|
|
1315
|
+
{ type: extensions.ExportService },
|
|
1316
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
1317
|
+
{ type: httpservice.HTTPService },
|
|
1318
|
+
{ type: router.ActivatedRoute },
|
|
1319
|
+
{ type: common.Location },
|
|
1320
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1321
|
+
]; };
|
|
1322
|
+
|
|
1323
|
+
var KeyValue = /** @class */ (function () {
|
|
1324
|
+
function KeyValue(id, description) {
|
|
1325
|
+
this.id = id;
|
|
1326
|
+
this.description = description;
|
|
1327
|
+
}
|
|
1328
|
+
return KeyValue;
|
|
1329
|
+
}());
|
|
1330
|
+
|
|
1331
|
+
var MetricsView = /** @class */ (function (_super) {
|
|
1332
|
+
__extends(MetricsView, _super);
|
|
1333
|
+
function MetricsView() {
|
|
1334
|
+
return _super.call(this) || this;
|
|
1335
|
+
}
|
|
1336
|
+
return MetricsView;
|
|
1337
|
+
}(esTable.AppSearch));
|
|
1338
|
+
|
|
1339
|
+
var AdmMetricsLoc = /** @class */ (function (_super) {
|
|
1340
|
+
__extends(AdmMetricsLoc, _super);
|
|
1341
|
+
function AdmMetricsLoc(LOC_LOCALE) {
|
|
1342
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
1343
|
+
_super.prototype.set.call(_this, "en->it", "System Metrics", ["Metriche di Sistema"]);
|
|
1344
|
+
_super.prototype.set.call(_this, "en->it", "Session ID", ["Cod. Sessione"]);
|
|
1345
|
+
_super.prototype.set.call(_this, "en->it", "Session Serial", ["Seriale Sessione"]);
|
|
1346
|
+
_super.prototype.set.call(_this, "en->it", "Filter Metrics...", ["Filtra Metriche..."]);
|
|
1347
|
+
_super.prototype.set.call(_this, "en->it", "Loading Data", ["Carico i Dati"]);
|
|
1348
|
+
_super.prototype.set.call(_this, "en->it", "Update every", ["Aggiorna ogni"]);
|
|
1349
|
+
_super.prototype.set.call(_this, "en->it", "second/s", ["secondo/i"]);
|
|
1350
|
+
_super.prototype.set.call(_this, "en->it", "Metrics Instance", ["Istanza Metriche"]);
|
|
1351
|
+
return _this;
|
|
1352
|
+
}
|
|
1353
|
+
return AdmMetricsLoc;
|
|
1354
|
+
}(localizations.LocalizationService));
|
|
1355
|
+
AdmMetricsLoc.decorators = [
|
|
1356
|
+
{ type: core.Injectable }
|
|
1357
|
+
];
|
|
1358
|
+
AdmMetricsLoc.ctorParameters = function () { return [
|
|
1359
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
1360
|
+
]; };
|
|
1361
|
+
|
|
1362
|
+
var AdmMetricsComponent = /** @class */ (function () {
|
|
1363
|
+
function AdmMetricsComponent(dateExts, lc, localStorage, location, _state, http, route, backend) {
|
|
1364
|
+
this.dateExts = dateExts;
|
|
1365
|
+
this.lc = lc;
|
|
1366
|
+
this.localStorage = localStorage;
|
|
1367
|
+
this.location = location;
|
|
1368
|
+
this._state = _state;
|
|
1369
|
+
this.http = http;
|
|
1370
|
+
this.route = route;
|
|
1371
|
+
this.backend = backend;
|
|
1372
|
+
this.MetricsChartCache = {};
|
|
1373
|
+
this.searchView = new MetricsView();
|
|
1374
|
+
this.autoUpdate = false;
|
|
1375
|
+
this.seconds = "5";
|
|
1376
|
+
this.Instances = [];
|
|
1377
|
+
this.selectedInstance = "";
|
|
1378
|
+
this.instanceRequired = false;
|
|
1379
|
+
this.metricsToShow = [];
|
|
1380
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
1381
|
+
}
|
|
1382
|
+
AdmMetricsComponent.prototype.ngOnInit = function () {
|
|
1383
|
+
var _this = this;
|
|
1384
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) {
|
|
1385
|
+
_this.Init(params["ignoreStorage"]);
|
|
1386
|
+
});
|
|
1387
|
+
};
|
|
1388
|
+
AdmMetricsComponent.prototype.Init = function (ignoreStore) {
|
|
1389
|
+
this.doInit(ignoreStore);
|
|
1390
|
+
};
|
|
1391
|
+
AdmMetricsComponent.prototype.dateChanged = function () {
|
|
1392
|
+
var _this = this;
|
|
1393
|
+
// Pulizia di tutti i parametri di ricerca dipendenti dalle date
|
|
1394
|
+
this.metricsToShow = [];
|
|
1395
|
+
this.Metrics = [];
|
|
1396
|
+
this.instanceRequired = false;
|
|
1397
|
+
this.Instances = [];
|
|
1398
|
+
this.selectedInstance = "";
|
|
1399
|
+
this.searchView.filtermetrics = [];
|
|
1400
|
+
var pars = new http.HttpParams().set("from", this.searchView.filterfrom || "").set("to", this.searchView.filterto || "");
|
|
1401
|
+
this.http.get(this.backend + Repository["GET_Adm_GetMetrics"], pars).subscribe(function (t) { return _this.Metrics = t; });
|
|
1402
|
+
};
|
|
1403
|
+
AdmMetricsComponent.prototype.doInit = function (ignoreStorage) {
|
|
1404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1405
|
+
var item;
|
|
1406
|
+
return __generator(this, function (_a) {
|
|
1407
|
+
switch (_a.label) {
|
|
1408
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotSearchMetrics").toPromise()];
|
|
1409
|
+
case 1:
|
|
1410
|
+
item = _a.sent();
|
|
1411
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
1412
|
+
this.init(item);
|
|
1413
|
+
return [3 /*break*/, 4];
|
|
1414
|
+
case 2:
|
|
1415
|
+
this.init(null);
|
|
1416
|
+
this.location.replaceState("/pages/adm/metrics");
|
|
1417
|
+
this.route.snapshot.queryParams = [];
|
|
1418
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotSearchMetrics").toPromise()];
|
|
1419
|
+
case 3:
|
|
1420
|
+
_a.sent();
|
|
1421
|
+
_a.label = 4;
|
|
1422
|
+
case 4: return [2 /*return*/];
|
|
1423
|
+
}
|
|
1424
|
+
});
|
|
1425
|
+
});
|
|
1426
|
+
};
|
|
1427
|
+
AdmMetricsComponent.prototype.init = function (HotPotato) {
|
|
1428
|
+
if (HotPotato) {
|
|
1429
|
+
this.searchView = HotPotato;
|
|
1430
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetMetrics"], this.searchView, false);
|
|
1431
|
+
}
|
|
1432
|
+
else {
|
|
1433
|
+
this.searchView = new MetricsView();
|
|
1434
|
+
this.sendSearch();
|
|
1435
|
+
}
|
|
1436
|
+
this.dateChanged();
|
|
1437
|
+
};
|
|
1438
|
+
AdmMetricsComponent.prototype.ngOnDestroy = function () {
|
|
1439
|
+
if (this.storageSub)
|
|
1440
|
+
this.storageSub.unsubscribe();
|
|
1441
|
+
};
|
|
1442
|
+
AdmMetricsComponent.prototype.sendSearch = function (resetPage, update, searchViewOverride) {
|
|
1443
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
1444
|
+
if (update === void 0) { update = false; }
|
|
1445
|
+
if (searchViewOverride === void 0) { searchViewOverride = null; }
|
|
1446
|
+
if (!update)
|
|
1447
|
+
this.MetricsChartCache = {};
|
|
1448
|
+
this.searchView.searchinprogress = true;
|
|
1449
|
+
// Questa ricerca prende i nomi distinct delle metriche quindi devo prendere tutto per forza
|
|
1450
|
+
this.searchView.itemsperpageoverride = 999999;
|
|
1451
|
+
if (resetPage)
|
|
1452
|
+
this.searchView.page = 1;
|
|
1453
|
+
this.POSTGetItems(this.backend + Repository["POST_Adm_GetMetrics"], searchViewOverride !== null && searchViewOverride !== void 0 ? searchViewOverride : this.searchView, update);
|
|
1454
|
+
};
|
|
1455
|
+
AdmMetricsComponent.prototype.POSTGetItems = function (url, data, update) {
|
|
1456
|
+
var _this = this;
|
|
1457
|
+
data.filterrealtime = update ? data.filterrealtime : !(!!data.filterfrom || !!data.filterto);
|
|
1458
|
+
this.http.post(url, data).subscribe(function (t) { return __awaiter(_this, void 0, void 0, function () {
|
|
1459
|
+
var _this = this;
|
|
1460
|
+
return __generator(this, function (_a) {
|
|
1461
|
+
//Se sono in modalità di update non devo toccare la searchView attuale se non per il searchinprogress che viene messo dall'es table
|
|
1462
|
+
if (!update) {
|
|
1463
|
+
this.selectedInstance = "";
|
|
1464
|
+
this.metricsToShow = [];
|
|
1465
|
+
this.searchView = t;
|
|
1466
|
+
this.searchView.items.forEach(function (m) {
|
|
1467
|
+
if (!_this.Instances.find(function (t) { return t.id == m.instance; }))
|
|
1468
|
+
_this.Instances.push(new KeyValue(m.instance, m.instance));
|
|
1469
|
+
});
|
|
1470
|
+
this.instanceRequired = this.Instances.length > 1;
|
|
1471
|
+
if (this.Instances.length == 1) {
|
|
1472
|
+
this.selectedInstance = this.Instances[0].id;
|
|
1473
|
+
this.instanceSelected();
|
|
1474
|
+
}
|
|
1475
|
+
this.localStorage.setItem("HotSearchMetrics", this.searchView).subscribe();
|
|
1476
|
+
}
|
|
1477
|
+
else {
|
|
1478
|
+
// Per ogni grafico di ogni metrica aggiungo tutti i valori che sono DOPO all'ultimo ts registrato per quel grafico
|
|
1479
|
+
t.items.forEach(function (m) {
|
|
1480
|
+
m.values.forEach(function (c) {
|
|
1481
|
+
var refm = _this.MetricsChartCache[_this.metricKey(m, c)];
|
|
1482
|
+
if (refm) {
|
|
1483
|
+
c.series.forEach(function (s) { s.values = s.values.filter(function (v) { return _this.dateExts.getDateConvertion(v.d).isAfter(refm.lastTs); }); });
|
|
1484
|
+
if (c.series.some(function (t) { return t.values.length > 0; })) {
|
|
1485
|
+
refm.lastTs = c.series.map(function (t) { return dayjs.max(t.values.map(function (v) { return _this.dateExts.getDateConvertion(v.d); })); })[0];
|
|
1486
|
+
refm.chart.addData(c);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
});
|
|
1491
|
+
}
|
|
1492
|
+
this.searchView.searchinprogress = false;
|
|
1493
|
+
return [2 /*return*/];
|
|
1494
|
+
});
|
|
1495
|
+
}); });
|
|
1496
|
+
};
|
|
1497
|
+
AdmMetricsComponent.prototype.instanceSelected = function () {
|
|
1498
|
+
var _this = this;
|
|
1499
|
+
if (!this.selectedInstance)
|
|
1500
|
+
return;
|
|
1501
|
+
this.metricsToShow = this.searchView.items.filter(function (t) { return t.instance == _this.selectedInstance; });
|
|
1502
|
+
};
|
|
1503
|
+
AdmMetricsComponent.prototype.linkChartToMetric = function (metric, metricChart, chartComp) {
|
|
1504
|
+
var _this = this;
|
|
1505
|
+
this.MetricsChartCache[this.metricKey(metric, metricChart)] = { chart: chartComp, lastTs: metricChart.series.map(function (t) { return dayjs.max(t.values.map(function (v) { return _this.dateExts.getDateConvertion(v.d); })); })[0] };
|
|
1506
|
+
};
|
|
1507
|
+
AdmMetricsComponent.prototype.metricKey = function (metric, value) {
|
|
1508
|
+
return metric.name + " - " + value.xtitle + " - " + metric.instance;
|
|
1509
|
+
};
|
|
1510
|
+
AdmMetricsComponent.prototype.autoUpdateChanged = function () {
|
|
1511
|
+
var _this = this;
|
|
1512
|
+
if (!/^[1-9]\d*$/.test(this.seconds))
|
|
1513
|
+
this.seconds = '10';
|
|
1514
|
+
var secondsInMs = parseInt(this.seconds, null) * 1000;
|
|
1515
|
+
if (this.autoUpdate) {
|
|
1516
|
+
this.sendSearch(false, true);
|
|
1517
|
+
this.updateTimer = setInterval(function () { _this.sendSearch(false, true); }, secondsInMs);
|
|
1518
|
+
}
|
|
1519
|
+
else
|
|
1520
|
+
clearInterval(this.updateTimer);
|
|
1521
|
+
};
|
|
1522
|
+
return AdmMetricsComponent;
|
|
1523
|
+
}());
|
|
1524
|
+
AdmMetricsComponent.decorators = [
|
|
1525
|
+
{ type: core.Component, args: [{
|
|
1526
|
+
selector: "metrics_search",
|
|
1527
|
+
providers: [
|
|
1528
|
+
{ provide: localizations.LocalizationService, useClass: AdmMetricsLoc }
|
|
1529
|
+
],
|
|
1530
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">\r\n {{'System Metrics' | localize : lc}}\r\n </span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12\">\r\n <form role=\"form\">\r\n <div class=\"row\">\r\n <div class=\"col-md-11\">\r\n <div class=\"col-md-12 row app-no-padding app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-datetime [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterfrom\" name=\"filterfrom\" [Placeholder]=\"'From' | localize : lc\" (inputChange)=\"dateChanged();\"></form-datetime>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-datetime [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterto\" name=\"filterto\" [Placeholder]=\"'To' | localize : lc\" (inputChange)=\"dateChanged();\"></form-datetime>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filtersid\" name=\"filtersid\" [Placeholder]=\"'Session ID' | localize : lc\"></form-input>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-input [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterserial\" name=\"filterserial\" [Placeholder]=\"'Session Serial' | localize : lc\"></form-input>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 row app-no-padding\">\r\n <div class=\"col-12 app-filter-wrapper\">\r\n <form-multiselect [Readonly]=\"autoUpdate\" [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filtermetrics\" [IdField]=\"'name'\" [Display]=\"'{name}'\" name=\"filtermetrics\" [SelectLabel]=\"'Filter Metrics...' | localize : lc\" [Source]=\"Metrics\"></form-multiselect>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n <div class=\"col-md-1 app-no-padding\">\r\n <button [disabled]=\"searchView.searchinprogress || autoUpdate\" class=\"input-group-addon btn app-btn-search\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </form>\r\n <div class=\"app-col-12 app-margin-top-15\">\r\n <div class=\"pull-right\">\r\n {{'Update every' | localize : lc}} <input [readonly]=\"autoUpdate\" maxlength=\"3\" class=\"form-control app-updevery-input\" type=\"text\" [(ngModel)]=\"seconds\" /> {{'second/s' | localize : lc}}\r\n </div>\r\n <div class=\"pull-right m-t-2 app-margin-right-5\">\r\n <label class=\"switch\">\r\n <input type=\"checkbox\" [(ngModel)]=\"autoUpdate\" (ngModelChange)=\"autoUpdateChanged();\" />\r\n <div class=\"slider round\"></div>\r\n </label>\r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Data' | localize : lc}}</em></p>\r\n <div *ngIf=\"searchView && instanceRequired\">\r\n <form-select [Validation]=\"false\" [Label]=\"'Metrics Instance' | localize : lc\" [(ngModel)]=\"selectedInstance\" name=\"instance\" [Source]=\"Instances\" (inputChange)=\"instanceSelected()\" required></form-select>\r\n </div>\r\n <div *ngIf=\"searchView && metricsToShow && metricsToShow.length > 0\">\r\n <div class=\"col-md-12 app-padding-right-0 row app-margin-top-15\">\r\n <ng-container *ngFor=\"let metric of metricsToShow; let i = index\">\r\n <div class=\"col-md-4 app-no-padding app-simple-border\" *ngFor=\"let chart of metric.values; let z = index\">\r\n <div style=\"width: 100%; height: 260px\">\r\n <es-line-chart [XTitle]=\"chart.xtitle\"\r\n [YTitle]=\"chart.ytitle\"\r\n [MinGridDistance]=\"65\"\r\n [Timeline]=\"false\"\r\n [LegendPadding]=\"{top: 0, bottom: 7, right: 0, left: 10}\"\r\n [MergeDatasets]=\"true\"\r\n [Data]=\"chart\"\r\n [Animations]=\"true\"\r\n [Legend]=\"chart.legend\"\r\n name=\"metric_{{i}}_chart_{{z}}\"\r\n (chartLoaded)=\"linkChartToMetric(metric, chart, $event);\"\r\n [DataGroupingThreshold]=\"99999999\">\r\n </es-line-chart>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
1531
|
+
},] }
|
|
1532
|
+
];
|
|
1533
|
+
AdmMetricsComponent.ctorParameters = function () { return [
|
|
1534
|
+
{ type: extensions.DateService },
|
|
1535
|
+
{ type: localizations.LocalizationService },
|
|
1536
|
+
{ type: preferences.PreferencesService },
|
|
1537
|
+
{ type: common.Location },
|
|
1538
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
1539
|
+
{ type: httpservice.HTTPService },
|
|
1540
|
+
{ type: router.ActivatedRoute },
|
|
1541
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1542
|
+
]; };
|
|
1543
|
+
|
|
1544
|
+
// Angular
|
|
1545
|
+
var AdmLogsComponent = /** @class */ (function () {
|
|
1546
|
+
function AdmLogsComponent(_state, http, lc, route, backend) {
|
|
1547
|
+
this._state = _state;
|
|
1548
|
+
this.http = http;
|
|
1549
|
+
this.lc = lc;
|
|
1550
|
+
this.route = route;
|
|
1551
|
+
this.backend = backend;
|
|
1552
|
+
this._state.handleNavigation(this.lc.loc(this.route.snapshot.data["title"]), false);
|
|
1553
|
+
}
|
|
1554
|
+
AdmLogsComponent.prototype.ngOnInit = function () {
|
|
1555
|
+
var _this = this;
|
|
1556
|
+
this.http.get(this.backend + Repository["GET_Adm_GetServerLogs"]).subscribe(function (t) { _this.Log = t; });
|
|
1557
|
+
};
|
|
1558
|
+
return AdmLogsComponent;
|
|
1559
|
+
}());
|
|
1560
|
+
AdmLogsComponent.decorators = [
|
|
1561
|
+
{ type: core.Component, args: [{
|
|
1562
|
+
selector: "adm_logs",
|
|
1563
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12 bottom-15\">\r\n <p *ngIf=\"Log\" class=\"app-whitespace-prewrap\" [innerHTML]=\"Log\"></p>\r\n </div>\r\n</div>"
|
|
1564
|
+
},] }
|
|
1565
|
+
];
|
|
1566
|
+
AdmLogsComponent.ctorParameters = function () { return [
|
|
1567
|
+
{ type: BaseModuleCommunicationsConsumer },
|
|
1568
|
+
{ type: httpservice.HTTPService },
|
|
1569
|
+
{ type: localizations.LocalizationService },
|
|
1570
|
+
{ type: router.ActivatedRoute },
|
|
1571
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1572
|
+
]; };
|
|
1573
|
+
|
|
1574
|
+
var ɵ0 = { title: "Search Application Processes", internalNavigation: false }, ɵ1 = { title: "Server Profiler", internalNavigation: false }, ɵ2 = { title: "Top Activities", internalNavigation: false }, ɵ3 = { title: "System Metrics", internalNavigation: false }, ɵ4 = { title: "Server Logs", internalNavigation: false }, ɵ5 = { title: "Search Application Audits", internalNavigation: false }, ɵ6 = { title: "Search Application Locks", internalNavigation: false };
|
|
1575
|
+
var routeConfig = [
|
|
1576
|
+
{
|
|
1577
|
+
path: "",
|
|
1578
|
+
children: [
|
|
1579
|
+
{ path: "serverworkers", component: AdmWrkComponent, data: ɵ0 },
|
|
1580
|
+
{ path: "profiler", component: AdmProfilerComponent, data: ɵ1 },
|
|
1581
|
+
{ path: "topact", component: AdmTopActivitiesComponent, data: ɵ2 },
|
|
1582
|
+
{ path: "metrics", component: AdmMetricsComponent, data: ɵ3 },
|
|
1583
|
+
{ path: "serverlogs", component: AdmLogsComponent, data: ɵ4 },
|
|
1584
|
+
{ path: "serveraudits", component: AdmAuditsComponent, data: ɵ5 },
|
|
1585
|
+
{ path: "serverenqueues", component: AdmEnqComponent, data: ɵ6 }
|
|
1586
|
+
]
|
|
1587
|
+
}
|
|
1588
|
+
];
|
|
1589
|
+
var MODULES = [
|
|
1590
|
+
// Base
|
|
1591
|
+
common.CommonModule,
|
|
1592
|
+
forms.FormsModule,
|
|
1593
|
+
// Material
|
|
1594
|
+
datepicker.MatDatepickerModule,
|
|
1595
|
+
materialDayjsAdapter.MatDayjsDateModule,
|
|
1596
|
+
icon.MatIconModule,
|
|
1597
|
+
input.MatInputModule,
|
|
1598
|
+
// Bootstrap
|
|
1599
|
+
modal.ModalModule,
|
|
1600
|
+
tooltip.TooltipModule,
|
|
1601
|
+
dropdown.BsDropdownModule,
|
|
1602
|
+
ngxCsv.CsvModule,
|
|
1603
|
+
// Esfaenza e componenti visuali
|
|
1604
|
+
ngxContextmenu.ContextMenuModule,
|
|
1605
|
+
localizations.LocalizationModule,
|
|
1606
|
+
esTable.EsTableModule,
|
|
1607
|
+
formsAndValidations.FormsAndValidationsModule,
|
|
1608
|
+
gertrude.EsGertrudeModule,
|
|
1609
|
+
esCharts.EsChartsModule,
|
|
1610
|
+
datetimePicker.NgxMatDatetimePickerModule,
|
|
1611
|
+
router.RouterModule.forChild(routeConfig),
|
|
1612
|
+
];
|
|
1613
|
+
var COMPONENTS = [
|
|
1614
|
+
AdmWrkComponent,
|
|
1615
|
+
AdmProfilerComponent,
|
|
1616
|
+
AdmTopActivitiesComponent,
|
|
1617
|
+
AdmLogsComponent,
|
|
1618
|
+
AdmAuditsComponent,
|
|
1619
|
+
AdmEnqComponent,
|
|
1620
|
+
AdmMetricsComponent
|
|
1621
|
+
];
|
|
1622
|
+
var AdmModule = /** @class */ (function () {
|
|
1623
|
+
function AdmModule() {
|
|
1624
|
+
}
|
|
1625
|
+
return AdmModule;
|
|
1626
|
+
}());
|
|
1627
|
+
AdmModule.decorators = [
|
|
1628
|
+
{ type: core.NgModule, args: [{
|
|
1629
|
+
imports: __spread(MODULES),
|
|
1630
|
+
declarations: __spread(COMPONENTS)
|
|
1631
|
+
},] }
|
|
1632
|
+
];
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Generated bundle index. Do not edit.
|
|
1636
|
+
*/
|
|
1637
|
+
|
|
1638
|
+
exports.ADM_BACKEND_URL = ADM_BACKEND_URL;
|
|
1639
|
+
exports.ADM_LOCALE = ADM_LOCALE;
|
|
1640
|
+
exports.AdmModule = AdmModule;
|
|
1641
|
+
exports.BaseModuleCommunicationsConsumer = BaseModuleCommunicationsConsumer;
|
|
1642
|
+
exports.routeConfig = routeConfig;
|
|
1643
|
+
exports.ɵ0 = ɵ0;
|
|
1644
|
+
exports.ɵ1 = ɵ1;
|
|
1645
|
+
exports.ɵ2 = ɵ2;
|
|
1646
|
+
exports.ɵ3 = ɵ3;
|
|
1647
|
+
exports.ɵ4 = ɵ4;
|
|
1648
|
+
exports.ɵ5 = ɵ5;
|
|
1649
|
+
exports.ɵ6 = ɵ6;
|
|
1650
|
+
exports.ɵa = AdmWrkComponent;
|
|
1651
|
+
exports.ɵb = AdmWrkLoc;
|
|
1652
|
+
exports.ɵc = AdmProfilerComponent;
|
|
1653
|
+
exports.ɵd = AdmProfilerComponentLoc;
|
|
1654
|
+
exports.ɵe = AdmTopActivitiesComponent;
|
|
1655
|
+
exports.ɵf = AdmTopActivitieLoc;
|
|
1656
|
+
exports.ɵg = AdmMetricsComponent;
|
|
1657
|
+
exports.ɵh = AdmMetricsLoc;
|
|
1658
|
+
exports.ɵi = AdmLogsComponent;
|
|
1659
|
+
exports.ɵj = AdmAuditsComponent;
|
|
1660
|
+
exports.ɵk = AdmAuditLoc;
|
|
1661
|
+
exports.ɵl = AdmEnqComponent;
|
|
1662
|
+
exports.ɵm = AdmEnqLoc;
|
|
1663
|
+
|
|
1664
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1665
|
+
|
|
1666
|
+
})));
|
|
1667
|
+
//# sourceMappingURL=esfaenza-admin-module.umd.js.map
|