@esfaenza/admin-module 20.3.5 → 20.3.7
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.
|
@@ -15,7 +15,7 @@ import { AppSearch, EsTableOperationDefinition, EsTableModule } from '@esfaenza/
|
|
|
15
15
|
import * as i9 from '@esfaenza/forms-and-validations';
|
|
16
16
|
import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
|
|
17
17
|
import * as i2 from '@esfaenza/es-charts';
|
|
18
|
-
import { LineSerie, LineChartData, PieChartData, KeyValueColor, DateValue, Limit, EsChartsModule } from '@esfaenza/es-charts';
|
|
18
|
+
import { BaseInterval, LineSerie, LineChartData, PieChartData, KeyValueColor, DateValue, Limit, EsChartsModule } from '@esfaenza/es-charts';
|
|
19
19
|
import { EsGertrudeModule } from '@esfaenza/gertrude';
|
|
20
20
|
import * as i1$1 from '@esfaenza/extensions';
|
|
21
21
|
import { MessageService, InboundMessageTypes, Export, ExportLocalization, ExtensionsModule } from '@esfaenza/extensions';
|
|
@@ -715,7 +715,10 @@ class NodeDetailComponent {
|
|
|
715
715
|
this.onClose = new EventEmitter();
|
|
716
716
|
}
|
|
717
717
|
ngOnInit() {
|
|
718
|
-
|
|
718
|
+
var interval = new BaseInterval();
|
|
719
|
+
interval.count = 5;
|
|
720
|
+
interval.timeunit = "second";
|
|
721
|
+
let serie = new LineSerie(this.lc.loc("Sessioni Attive"), this.NodeDetails.activesessions, interval);
|
|
719
722
|
this.NodeDetails.sessionchart = new LineChartData([serie]);
|
|
720
723
|
this.NodeDetails.loadchart = new PieChartData([
|
|
721
724
|
new KeyValueColor("CPU", this.NodeDetails.cpuperc),
|
|
@@ -998,7 +1001,10 @@ class AdmTopActivitiesComponent {
|
|
|
998
1001
|
let props = Object.keys(reference.actsessions[0]);
|
|
999
1002
|
for (let i = 0; i < props.length; i++) {
|
|
1000
1003
|
if (props[i] != 'sampletime') {
|
|
1001
|
-
|
|
1004
|
+
var interval = new BaseInterval();
|
|
1005
|
+
interval.count = 5;
|
|
1006
|
+
interval.timeunit = "second";
|
|
1007
|
+
let s = new LineSerie(this.propertiesSeriesMapping[props[i]], [], interval, null, "sessions");
|
|
1002
1008
|
series.push(s);
|
|
1003
1009
|
this.seriesPropertiesMapping[props[i]] = s;
|
|
1004
1010
|
}
|
|
@@ -1044,15 +1050,12 @@ class AdmTopActivitiesComponent {
|
|
|
1044
1050
|
onChartLoaded(chart, overwriteInstance = true) {
|
|
1045
1051
|
if (overwriteInstance)
|
|
1046
1052
|
this.ChartInstance = chart;
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
// // 500 millisecondi è più o meno il tempo di prima animazione del grafico. Finito questo si resetta lo zoom
|
|
1054
|
-
// }, 500);
|
|
1055
|
-
// });
|
|
1053
|
+
let readyHandler = () => {
|
|
1054
|
+
chart.Chart.xAxes.each(x => x.zoom(0, 1, 0));
|
|
1055
|
+
chart.Chart.yAxes.each(y => y.zoom(0, 1, 0));
|
|
1056
|
+
chart.Chart.root.events.off("frameended", readyHandler);
|
|
1057
|
+
};
|
|
1058
|
+
chart.Chart.root.events.onDebounced("frameended", readyHandler, 500);
|
|
1056
1059
|
}
|
|
1057
1060
|
loadSessionDetails(sessionId, serialNo, instanceid) {
|
|
1058
1061
|
this.SessionDetails = null;
|
|
@@ -1071,7 +1074,10 @@ class AdmTopActivitiesComponent {
|
|
|
1071
1074
|
let props = Object.keys(sessDet.sessions[0]);
|
|
1072
1075
|
for (let i = 0; i < props.length; i++) {
|
|
1073
1076
|
if (props[i] != 'sampletime') {
|
|
1074
|
-
|
|
1077
|
+
var interval = new BaseInterval();
|
|
1078
|
+
interval.count = 5;
|
|
1079
|
+
interval.timeunit = "second";
|
|
1080
|
+
let s = new LineSerie(this.propertiesSeriesMapping[props[i]], [], interval, null, "sessions");
|
|
1075
1081
|
series.push(s);
|
|
1076
1082
|
this.seriesPropertiesMapping2[props[i]] = s;
|
|
1077
1083
|
}
|