ngx-hana-nameserver-history-viewer 1.2.1 → 21.1.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 +2 -1
- package/{fesm2020 → fesm2022}/ngx-hana-nameserver-history-viewer.mjs +2898 -3983
- package/fesm2022/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
- package/ngx-hana-nameserver-history-viewer-21.1.0.tgz +0 -0
- package/package.json +20 -27
- package/types/ngx-hana-nameserver-history-viewer.d.ts +545 -0
- package/esm2020/ngx-hana-nameserver-history-viewer.mjs +0 -5
- package/esm2020/public-api.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.component.mjs +0 -68
- package/esm2020/src/nameserver-history-viewer/components/alert/alert.module.mjs +0 -22
- package/esm2020/src/nameserver-history-viewer/components/alert/index.mjs +0 -3
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.mjs +0 -112
- package/esm2020/src/nameserver-history-viewer/components/file-drop-input/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/index.mjs +0 -9
- package/esm2020/src/nameserver-history-viewer/components/instruction/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/instruction/instruction.component.mjs +0 -42
- package/esm2020/src/nameserver-history-viewer/components/nameserver-history.component.mjs +0 -557
- package/esm2020/src/nameserver-history-viewer/components/port-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.component.mjs +0 -69
- package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.service.mjs +0 -41
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.mjs +0 -40
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.mjs +0 -70
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.mjs +0 -88
- package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.mjs +0 -47
- package/esm2020/src/nameserver-history-viewer/index.mjs +0 -3
- package/esm2020/src/nameserver-history-viewer/nameserver-history.module.mjs +0 -63
- package/esm2020/src/nameserver-history-viewer/services/chart.service.mjs +0 -328
- package/esm2020/src/nameserver-history-viewer/services/file.service.mjs +0 -390
- package/esm2020/src/nameserver-history-viewer/services/index.mjs +0 -4
- package/esm2020/src/nameserver-history-viewer/services/ui.service.mjs +0 -557
- package/esm2020/src/nameserver-history-viewer/types/abort.types.mjs +0 -6
- package/esm2020/src/nameserver-history-viewer/types/alert.types.mjs +0 -8
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data-item.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-data.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-header.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content-time.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/chart-content.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/color-rgba.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/html-element.type.mjs +0 -9
- package/esm2020/src/nameserver-history-viewer/types/index.mjs +0 -28
- package/esm2020/src/nameserver-history-viewer/types/item.types.mjs +0 -14
- package/esm2020/src/nameserver-history-viewer/types/legend-color.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-backup.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-columnstore.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-host.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-item.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-persistence.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-rowstore.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-server.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sql.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info-threads.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/load-history-info.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/port.types.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/types/scale-group.types.mjs +0 -17
- package/esm2020/src/nameserver-history-viewer/types/unit-category.types.mjs +0 -10
- package/esm2020/src/nameserver-history-viewer/types/unit.types.mjs +0 -14
- package/esm2020/src/nameserver-history-viewer/utils/chart-util.mjs +0 -25
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.mjs +0 -56
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.mjs +0 -139
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/index.mjs +0 -41
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.mjs +0 -106
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.mjs +0 -167
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/utils.mjs +0 -114
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.mjs +0 -527
- package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/index.mjs +0 -2
- package/esm2020/src/nameserver-history-viewer/utils/file-util.mjs +0 -161
- package/esm2020/src/nameserver-history-viewer/utils/index.mjs +0 -5
- package/esm2020/src/nameserver-history-viewer/utils/time-util.mjs +0 -99
- package/esm2020/src/nameserver-history-viewer/utils/ui-util.mjs +0 -162
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs +0 -4098
- package/fesm2015/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
- package/fesm2020/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
- package/ngx-hana-nameserver-history-viewer.d.ts +0 -5
- package/public-api.d.ts +0 -1
- package/src/nameserver-history-viewer/components/alert/alert.component.d.ts +0 -21
- package/src/nameserver-history-viewer/components/alert/alert.module.d.ts +0 -8
- package/src/nameserver-history-viewer/components/alert/index.d.ts +0 -2
- package/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.d.ts +0 -16
- package/src/nameserver-history-viewer/components/file-drop-input/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/index.d.ts +0 -8
- package/src/nameserver-history-viewer/components/instruction/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/instruction/instruction.component.d.ts +0 -17
- package/src/nameserver-history-viewer/components/nameserver-history.component.d.ts +0 -262
- package/src/nameserver-history-viewer/components/port-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/port-selector/port-selector.component.d.ts +0 -31
- package/src/nameserver-history-viewer/components/port-selector/port-selector.service.d.ts +0 -14
- package/src/nameserver-history-viewer/components/progress-bar/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.d.ts +0 -6
- package/src/nameserver-history-viewer/components/time-range-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.d.ts +0 -19
- package/src/nameserver-history-viewer/components/timezone-selector/index.d.ts +0 -1
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.d.ts +0 -26
- package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.d.ts +0 -21
- package/src/nameserver-history-viewer/index.d.ts +0 -2
- package/src/nameserver-history-viewer/nameserver-history.module.d.ts +0 -19
- package/src/nameserver-history-viewer/services/chart.service.d.ts +0 -59
- package/src/nameserver-history-viewer/services/file.service.d.ts +0 -63
- package/src/nameserver-history-viewer/services/index.d.ts +0 -3
- package/src/nameserver-history-viewer/services/ui.service.d.ts +0 -88
- package/src/nameserver-history-viewer/types/abort.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/alert.types.d.ts +0 -6
- package/src/nameserver-history-viewer/types/chart-content-data-item.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-data.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-header.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/chart-content-time.types.d.ts +0 -3
- package/src/nameserver-history-viewer/types/chart-content.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/color-rgba.types.d.ts +0 -6
- package/src/nameserver-history-viewer/types/html-element.type.d.ts +0 -7
- package/src/nameserver-history-viewer/types/index.d.ts +0 -27
- package/src/nameserver-history-viewer/types/item.types.d.ts +0 -12
- package/src/nameserver-history-viewer/types/legend-color.types.d.ts +0 -4
- package/src/nameserver-history-viewer/types/load-history-info-backup.types.d.ts +0 -7
- package/src/nameserver-history-viewer/types/load-history-info-columnstore.types.d.ts +0 -7
- package/src/nameserver-history-viewer/types/load-history-info-host.types.d.ts +0 -15
- package/src/nameserver-history-viewer/types/load-history-info-item.types.d.ts +0 -13
- package/src/nameserver-history-viewer/types/load-history-info-persistence.types.d.ts +0 -11
- package/src/nameserver-history-viewer/types/load-history-info-rowstore.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/load-history-info-server.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts +0 -10
- package/src/nameserver-history-viewer/types/load-history-info-sql.types.d.ts +0 -16
- package/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/load-history-info-threads.types.d.ts +0 -9
- package/src/nameserver-history-viewer/types/load-history-info.types.d.ts +0 -22
- package/src/nameserver-history-viewer/types/port.types.d.ts +0 -5
- package/src/nameserver-history-viewer/types/scale-group.types.d.ts +0 -15
- package/src/nameserver-history-viewer/types/unit-category.types.d.ts +0 -8
- package/src/nameserver-history-viewer/types/unit.types.d.ts +0 -12
- package/src/nameserver-history-viewer/utils/chart-util.d.ts +0 -14
- package/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.d.ts +0 -89
- package/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.d.ts +0 -32
- package/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.d.ts +0 -78
- package/src/nameserver-history-viewer/utils/chartjs-downsample/index.d.ts +0 -1
- package/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.d.ts +0 -57
- package/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.d.ts +0 -55
- package/src/nameserver-history-viewer/utils/chartjs-downsample/utils.d.ts +0 -64
- package/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.d.ts +0 -30
- package/src/nameserver-history-viewer/utils/chartjs-zoom/index.d.ts +0 -1
- package/src/nameserver-history-viewer/utils/file-util.d.ts +0 -68
- package/src/nameserver-history-viewer/utils/index.d.ts +0 -4
- package/src/nameserver-history-viewer/utils/time-util.d.ts +0 -23
- package/src/nameserver-history-viewer/utils/ui-util.d.ts +0 -41
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ChartContentDataItem, ChartContentHeader, LegendColor } from '../types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class UIService {
|
|
4
|
-
private readonly _DEFAULT_DISPLAY_ITEMS;
|
|
5
|
-
private readonly _HIDED_COLUMNS;
|
|
6
|
-
private readonly _MEASURE_COLUMNS;
|
|
7
|
-
private _loadHistoryInfos;
|
|
8
|
-
/**
|
|
9
|
-
* get the colors for legends
|
|
10
|
-
*/
|
|
11
|
-
static getColors(alpha?: number): LegendColor;
|
|
12
|
-
private static get _unitType();
|
|
13
|
-
/**
|
|
14
|
-
* get yScale group list from the enum ScaleGroup
|
|
15
|
-
*/
|
|
16
|
-
private static get _YScaleGroupList();
|
|
17
|
-
/**
|
|
18
|
-
* Generate one item by the provided attributes and values
|
|
19
|
-
* @param args the dynamic parameter of [attribute, value]
|
|
20
|
-
*/
|
|
21
|
-
private static _generateLoadHistoryInfoItem;
|
|
22
|
-
/**
|
|
23
|
-
* generate the loadHistoryInfo object with default values.
|
|
24
|
-
*/
|
|
25
|
-
private static _generateLoadHistoryInfo;
|
|
26
|
-
/**
|
|
27
|
-
* get rgbcolor object via red, green, blue and alpha.
|
|
28
|
-
*/
|
|
29
|
-
private static _getRgbColor;
|
|
30
|
-
private static _getYScaleForItem;
|
|
31
|
-
private static _getMaxValueOfGroup;
|
|
32
|
-
private _getLoadHistoryInfo;
|
|
33
|
-
private _getProcessingUnit;
|
|
34
|
-
private _setOverview;
|
|
35
|
-
/**
|
|
36
|
-
* convert unit values (eg: byte to MB or GB) and generate the control data (sum, max, avg) for one row
|
|
37
|
-
*/
|
|
38
|
-
private _convertUnitAndGenerateRowControlData;
|
|
39
|
-
/**
|
|
40
|
-
* Loop from all history items, put those history items which
|
|
41
|
-
* have the same yScaleGroup together, using yScaleGroup as key.
|
|
42
|
-
* eg: {__SCALE_GROUP_CPU:[item1, item2...], __SCALE_GROUP_UNKNOWN:[item3, item4...]}
|
|
43
|
-
*/
|
|
44
|
-
private _getYScaleGroupWithHistoryItems;
|
|
45
|
-
private _setYScaleOfGroup;
|
|
46
|
-
private _getItemByKey;
|
|
47
|
-
/**
|
|
48
|
-
* reset the load history info object, to prevent memory leak
|
|
49
|
-
*/
|
|
50
|
-
clearLoadHistoryInfos(): void;
|
|
51
|
-
/**
|
|
52
|
-
* get all the data for the selection table
|
|
53
|
-
*/
|
|
54
|
-
getSelectionTableRows(headerKeys: string[], port: string, defaultDisplayItems: string[]): any[];
|
|
55
|
-
/**
|
|
56
|
-
* get all hidden columns. Those hidden columns = input hidden columns + default hidden columns
|
|
57
|
-
* @param hideMeasureColumns the array contains the columns list that need to be hidden.
|
|
58
|
-
*/
|
|
59
|
-
getHiddenColumns(hideMeasureColumns: string[]): string[];
|
|
60
|
-
/**
|
|
61
|
-
* get header information and format it to {headKey: key, headText: text}
|
|
62
|
-
*/
|
|
63
|
-
getHeader(keys: string[], port: string): ChartContentHeader[];
|
|
64
|
-
/**
|
|
65
|
-
* Get the selected items, which need to be displayed on the chart.
|
|
66
|
-
* @param headerKeys array that contains the keys of header
|
|
67
|
-
* @param port the relative port
|
|
68
|
-
* @param defaultDisplayItems the items list that will be displayed by default.
|
|
69
|
-
*/
|
|
70
|
-
getDisplayItems(headerKeys: string[], port: string, defaultDisplayItems: string[]): string[];
|
|
71
|
-
/**
|
|
72
|
-
* Get the Y Scale by the keys and port
|
|
73
|
-
*/
|
|
74
|
-
getYScale(keys: string[], port: string): number[];
|
|
75
|
-
/**
|
|
76
|
-
* Generate Y Scale for the port
|
|
77
|
-
*/
|
|
78
|
-
generateYScale(port: string): void;
|
|
79
|
-
/**
|
|
80
|
-
* convert unit values (eg: byte to MB or GB) and generate the control data (sum, max, avg)
|
|
81
|
-
* @param data the nameserver history data
|
|
82
|
-
* @param header header list
|
|
83
|
-
* @param port selected port
|
|
84
|
-
*/
|
|
85
|
-
convertUnitAndGenerateControlData(data: ChartContentDataItem[][], header: string[], port: string): Promise<any>;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UIService, never>;
|
|
87
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UIService>;
|
|
88
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Abort } from './abort.types';
|
|
2
|
-
import { ChartContentTime } from './chart-content-time.types';
|
|
3
|
-
import { ChartContentData } from './chart-content-data.types';
|
|
4
|
-
export interface ChartContent {
|
|
5
|
-
header: string[];
|
|
6
|
-
host: string;
|
|
7
|
-
time: ChartContentTime;
|
|
8
|
-
data: ChartContentData;
|
|
9
|
-
aborted: Abort;
|
|
10
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export * from './item.types';
|
|
2
|
-
export * from './load-history-info-item.types';
|
|
3
|
-
export * from './load-history-info-host.types';
|
|
4
|
-
export * from './load-history-info-backup.types';
|
|
5
|
-
export * from './load-history-info-columnstore.types';
|
|
6
|
-
export * from './load-history-info-persistence.types';
|
|
7
|
-
export * from './load-history-info-rowstore.types';
|
|
8
|
-
export * from './load-history-info-server.types';
|
|
9
|
-
export * from './load-history-info-session-admission-control.types';
|
|
10
|
-
export * from './load-history-info-sql.types';
|
|
11
|
-
export * from './load-history-info-sync-primitives.types';
|
|
12
|
-
export * from './load-history-info-threads.types';
|
|
13
|
-
export * from './load-history-info.types';
|
|
14
|
-
export * from './scale-group.types';
|
|
15
|
-
export * from './unit.types';
|
|
16
|
-
export * from './unit-category.types';
|
|
17
|
-
export * from './alert.types';
|
|
18
|
-
export * from './html-element.type';
|
|
19
|
-
export * from './color-rgba.types';
|
|
20
|
-
export * from './port.types';
|
|
21
|
-
export * from './abort.types';
|
|
22
|
-
export * from './chart-content-data-item.types';
|
|
23
|
-
export * from './chart-content-data.types';
|
|
24
|
-
export * from './chart-content-time.types';
|
|
25
|
-
export * from './chart-content.types';
|
|
26
|
-
export * from './chart-content-header.types';
|
|
27
|
-
export * from './legend-color.types';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoBackup {
|
|
3
|
-
dataBackupWriteSize: LoadHistoryInfoItem;
|
|
4
|
-
dataBackupWriteTime: LoadHistoryInfoItem;
|
|
5
|
-
logBackupWriteSize: LoadHistoryInfoItem;
|
|
6
|
-
logBackupWriteTime: LoadHistoryInfoItem;
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoHost {
|
|
3
|
-
cpuUsed: LoadHistoryInfoItem;
|
|
4
|
-
memoryResident: LoadHistoryInfoItem;
|
|
5
|
-
memoryTotalResident: LoadHistoryInfoItem;
|
|
6
|
-
memoryUsed: LoadHistoryInfoItem;
|
|
7
|
-
memoryLimit: LoadHistoryInfoItem;
|
|
8
|
-
memorySize: LoadHistoryInfoItem;
|
|
9
|
-
diskUsed: LoadHistoryInfoItem;
|
|
10
|
-
diskSize: LoadHistoryInfoItem;
|
|
11
|
-
networkIn: LoadHistoryInfoItem;
|
|
12
|
-
networkOut: LoadHistoryInfoItem;
|
|
13
|
-
swapIn: LoadHistoryInfoItem;
|
|
14
|
-
swapOut: LoadHistoryInfoItem;
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ScaleGroup } from './scale-group.types';
|
|
2
|
-
export interface LoadHistoryInfoItem {
|
|
3
|
-
KPI?: string;
|
|
4
|
-
'Y-Scale'?: number;
|
|
5
|
-
_YScaleGroup?: ScaleGroup;
|
|
6
|
-
Unit?: string;
|
|
7
|
-
Max?: number;
|
|
8
|
-
Average?: number;
|
|
9
|
-
Sum?: number;
|
|
10
|
-
Last?: number;
|
|
11
|
-
Description?: string;
|
|
12
|
-
header?: boolean;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoPersistence {
|
|
3
|
-
dataWriteSize: LoadHistoryInfoItem;
|
|
4
|
-
dataWriteTime: LoadHistoryInfoItem;
|
|
5
|
-
logWriteSize: LoadHistoryInfoItem;
|
|
6
|
-
logWriteTime: LoadHistoryInfoItem;
|
|
7
|
-
dataReadSize: LoadHistoryInfoItem;
|
|
8
|
-
dataReadTime: LoadHistoryInfoItem;
|
|
9
|
-
logReadSize: LoadHistoryInfoItem;
|
|
10
|
-
logReadTime: LoadHistoryInfoItem;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoIndexServer {
|
|
3
|
-
indexserverCpu: LoadHistoryInfoItem;
|
|
4
|
-
indexserverCpuSys: LoadHistoryInfoItem;
|
|
5
|
-
indexserverMemUsed: LoadHistoryInfoItem;
|
|
6
|
-
indexserverMemLimit: LoadHistoryInfoItem;
|
|
7
|
-
indexserverHandles: LoadHistoryInfoItem;
|
|
8
|
-
indexserverPingtime: LoadHistoryInfoItem;
|
|
9
|
-
indexserverSwapIn: LoadHistoryInfoItem;
|
|
10
|
-
}
|
package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoSessionAdmissionControl {
|
|
3
|
-
admissinControlAdmitCount: LoadHistoryInfoItem;
|
|
4
|
-
admissionControlRejectCount: LoadHistoryInfoItem;
|
|
5
|
-
admissionControlWaitingRequests: LoadHistoryInfoItem;
|
|
6
|
-
admissionControlWaitTime: LoadHistoryInfoItem;
|
|
7
|
-
admissionControlEnqueueCount: LoadHistoryInfoItem;
|
|
8
|
-
admissionControlDequeueCount: LoadHistoryInfoItem;
|
|
9
|
-
admissionControlTimeoutCount: LoadHistoryInfoItem;
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoSQL {
|
|
3
|
-
sqlConnections: LoadHistoryInfoItem;
|
|
4
|
-
internalConnections: LoadHistoryInfoItem;
|
|
5
|
-
externalConnections: LoadHistoryInfoItem;
|
|
6
|
-
idleConnections: LoadHistoryInfoItem;
|
|
7
|
-
sqlTransactions: LoadHistoryInfoItem;
|
|
8
|
-
internalTransactions: LoadHistoryInfoItem;
|
|
9
|
-
externalTransactions: LoadHistoryInfoItem;
|
|
10
|
-
userTransactions: LoadHistoryInfoItem;
|
|
11
|
-
sqlBlockedTrans: LoadHistoryInfoItem;
|
|
12
|
-
sqlStatements: LoadHistoryInfoItem;
|
|
13
|
-
cidRange: LoadHistoryInfoItem;
|
|
14
|
-
tidRange: LoadHistoryInfoItem;
|
|
15
|
-
pendingRequestCount: LoadHistoryInfoItem;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoItem } from './load-history-info-item.types';
|
|
2
|
-
export interface LoadHistoryInfoThreads {
|
|
3
|
-
indexserverThreads: LoadHistoryInfoItem;
|
|
4
|
-
waitingThreads: LoadHistoryInfoItem;
|
|
5
|
-
totalThreads: LoadHistoryInfoItem;
|
|
6
|
-
activeSqlExecutors: LoadHistoryInfoItem;
|
|
7
|
-
waitingSqlExecutors: LoadHistoryInfoItem;
|
|
8
|
-
totalSqlExecutors: LoadHistoryInfoItem;
|
|
9
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LoadHistoryInfoHost } from './load-history-info-host.types';
|
|
2
|
-
import { LoadHistoryInfoIndexServer } from './load-history-info-server.types';
|
|
3
|
-
import { LoadHistoryInfoColumnStore } from './load-history-info-columnstore.types';
|
|
4
|
-
import { LoadHistoryInfoThreads } from './load-history-info-threads.types';
|
|
5
|
-
import { LoadHistoryInfoSessionAdmissionControl } from './load-history-info-session-admission-control.types';
|
|
6
|
-
import { LoadHistoryInfoBackup } from './load-history-info-backup.types';
|
|
7
|
-
import { LoadHistoryInfoSQL } from './load-history-info-sql.types';
|
|
8
|
-
import { LoadHistoryInfoRowStore } from './load-history-info-rowstore.types';
|
|
9
|
-
import { LoadHistoryInfoPersistence } from './load-history-info-persistence.types';
|
|
10
|
-
import { LoadHistoryInfoSyncPrimitives } from './load-history-info-sync-primitives.types';
|
|
11
|
-
export interface LoadHistoryInfo {
|
|
12
|
-
'Host': LoadHistoryInfoHost;
|
|
13
|
-
'Index Server': LoadHistoryInfoIndexServer;
|
|
14
|
-
'SQL': LoadHistoryInfoSQL;
|
|
15
|
-
'Row Store': LoadHistoryInfoRowStore;
|
|
16
|
-
'Column Store': LoadHistoryInfoColumnStore;
|
|
17
|
-
'Threads': LoadHistoryInfoThreads;
|
|
18
|
-
'Persistence': LoadHistoryInfoPersistence;
|
|
19
|
-
'Backup': LoadHistoryInfoBackup;
|
|
20
|
-
'Synchronization Primitives': LoadHistoryInfoSyncPrimitives;
|
|
21
|
-
'Session Admission Control': LoadHistoryInfoSessionAdmissionControl;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ColorRgba } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* generate random color
|
|
4
|
-
* @param opacity alpha
|
|
5
|
-
*/
|
|
6
|
-
export declare function randomColor(opacity: number): string;
|
|
7
|
-
/**
|
|
8
|
-
* generate the rgba string from ColorRgba
|
|
9
|
-
*/
|
|
10
|
-
export declare function getColorString(rgbaColor: ColorRgba): string;
|
|
11
|
-
/**
|
|
12
|
-
* format Number with commas
|
|
13
|
-
*/
|
|
14
|
-
export declare function getNumberWithCommas(num: number): string;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin is adapted from: https://github.com/3dcl/chartjs-plugin-responsive-downsample
|
|
3
|
-
* for controlling the radius of point.
|
|
4
|
-
*
|
|
5
|
-
* MIT License
|
|
6
|
-
* Copyright (c) 2018 3D Content Logistics
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { Chart } from 'chart.js';
|
|
26
|
-
/**
|
|
27
|
-
* A chart scale
|
|
28
|
-
*/
|
|
29
|
-
export interface Scale {
|
|
30
|
-
left: number;
|
|
31
|
-
right: number;
|
|
32
|
-
top: number;
|
|
33
|
-
bottom: number;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the location of the given data point. Value can either be an index or a numerical value
|
|
36
|
-
* The coordinate (0, 0) is at the upper-left corner of the canvas
|
|
37
|
-
* @param value
|
|
38
|
-
* @param index
|
|
39
|
-
* @param datasetIndex
|
|
40
|
-
*/
|
|
41
|
-
getPixelForValue(value: any, index?: number, datasetIndex?: number): number;
|
|
42
|
-
/**
|
|
43
|
-
* Used to get the data value from a given pixel. This is the inverse of getPixelForValue
|
|
44
|
-
* The coordinate (0, 0) is at the upper-left corner of the canvas
|
|
45
|
-
* @param pixel
|
|
46
|
-
*/
|
|
47
|
-
getValueForPixel(pixel: number): any;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* A time-based chart scale
|
|
51
|
-
*/
|
|
52
|
-
export interface TimeScale extends Scale {
|
|
53
|
-
/**
|
|
54
|
-
* Returns the location of the given data point. Value can either be an index or a numerical value
|
|
55
|
-
* The coordinate (0, 0) is at the upper-left corner of the canvas
|
|
56
|
-
* @param value
|
|
57
|
-
* @param index
|
|
58
|
-
* @param datasetIndex
|
|
59
|
-
*/
|
|
60
|
-
getPixelForValue(value: Date, index?: number, datasetIndex?: number): number;
|
|
61
|
-
/**
|
|
62
|
-
* Used to get the data value from a given pixel. This is the inverse of getPixelForValue
|
|
63
|
-
* The coordinate (0, 0) is at the upper-left corner of the canvas
|
|
64
|
-
* @param pixel
|
|
65
|
-
*/
|
|
66
|
-
getValueForPixel(pixel: number): Date;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Interface for a chart.js plugin
|
|
70
|
-
*/
|
|
71
|
-
export interface IChartPlugin {
|
|
72
|
-
beforeInit?: (chartInstance: Chart) => void;
|
|
73
|
-
afterInit?: (chartInstance: Chart) => void;
|
|
74
|
-
resize?: (chartInstance: Chart, newChartSize: [number, number]) => void;
|
|
75
|
-
beforeUpdate?: (chartInstance: Chart) => void | boolean;
|
|
76
|
-
afterScaleUpdate?: (charInstance: Chart) => void;
|
|
77
|
-
afterLayout?: (charInstance: Chart) => void;
|
|
78
|
-
beforeDatasetsUpdate?: (charInstance: Chart) => void | boolean;
|
|
79
|
-
afterDatasetsUpdate?: (charInstance: Chart) => void;
|
|
80
|
-
afterUpdate?: (charInstance: Chart) => void;
|
|
81
|
-
beforeRender?: (charInstance: Chart) => void | boolean;
|
|
82
|
-
beforeDraw?: (charInstance: Chart, easing: string) => void | boolean;
|
|
83
|
-
afterDraw?: (charInstance: Chart, easing: string) => void;
|
|
84
|
-
beforeDatasetsDraw?: (charInstance: Chart, easing: string) => void | boolean;
|
|
85
|
-
afterDatasetsDraw?: (charInstance: Chart, easing: string) => void;
|
|
86
|
-
destroy?: (charInstance: Chart) => void;
|
|
87
|
-
beforeEvent?: (charInstance: Chart, event: any) => void | boolean;
|
|
88
|
-
afterEvent?: (charInstance: Chart, event: any) => void;
|
|
89
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin is adapted from: https://github.com/3dcl/chartjs-plugin-responsive-downsample
|
|
3
|
-
* for controlling the radius of point.
|
|
4
|
-
*
|
|
5
|
-
* MIT License
|
|
6
|
-
* Copyright (c) 2018 3D Content Logistics
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { ChartPoint } from 'chart.js';
|
|
26
|
-
import { Scale } from './chartjs_ext';
|
|
27
|
-
import moment from 'moment';
|
|
28
|
-
export declare type XValue = number | string | Date | moment.Moment;
|
|
29
|
-
export declare type Range = [XValue, XValue];
|
|
30
|
-
export declare function rangeIsEqual(previousValue: Range, currentValue: Range): boolean;
|
|
31
|
-
export declare function getScaleRange(scale: Scale): Range;
|
|
32
|
-
export declare function cullData(data: ChartPoint[], range: Range): ChartPoint[];
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This plugin is adapted from: https://github.com/3dcl/chartjs-plugin-responsive-downsample
|
|
3
|
-
* for controlling the radius of point.
|
|
4
|
-
*
|
|
5
|
-
* MIT License
|
|
6
|
-
* Copyright (c) 2018 3D Content Logistics
|
|
7
|
-
*
|
|
8
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
10
|
-
* in the Software without restriction, including without limitation the rights
|
|
11
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
13
|
-
* furnished to do so, subject to the following conditions:
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
import { ChartPoint } from 'chart.js';
|
|
26
|
-
/**
|
|
27
|
-
* A mipmap data structure for line chart data. Uses averages to downsample data.
|
|
28
|
-
*/
|
|
29
|
-
export declare class DataMipmap {
|
|
30
|
-
protected minNumPoints: number;
|
|
31
|
-
protected mipMaps: ChartPoint[][];
|
|
32
|
-
protected originalData: ChartPoint[];
|
|
33
|
-
protected resolution: number;
|
|
34
|
-
/**
|
|
35
|
-
* Create a data mipmap
|
|
36
|
-
* @param data The orignal line chart data
|
|
37
|
-
* @param minNumPoints Minimal number of points on lowest mipmap level(limits number of levels)
|
|
38
|
-
*/
|
|
39
|
-
constructor(data: ChartPoint[], minNumPoints?: number);
|
|
40
|
-
/**
|
|
41
|
-
* Set the line chart data and update mipmap level.
|
|
42
|
-
* @param data The orignal line chart data
|
|
43
|
-
*/
|
|
44
|
-
setData(data: ChartPoint[]): void;
|
|
45
|
-
/**
|
|
46
|
-
* Set the minimal number of points
|
|
47
|
-
* @param minNumPoints Minimal number of points on lowest mipmap level(limits number of levels)
|
|
48
|
-
*/
|
|
49
|
-
setMinNumPoints(minNumPoints: number): void;
|
|
50
|
-
/**
|
|
51
|
-
* Get the best fitting mipmap level for a certain scale resolution
|
|
52
|
-
* @param resolution Desired resolution in ms per pixel
|
|
53
|
-
*/
|
|
54
|
-
getMipMapForResolution(resolution: number): ChartPoint[];
|
|
55
|
-
/**
|
|
56
|
-
* Computes the index of the best fitting mipmap level for a certain scale resolution
|
|
57
|
-
* @param resolution Desired resolution in ms per pixel
|
|
58
|
-
*/
|
|
59
|
-
getMipMapIndexForResolution(resolution: number): number;
|
|
60
|
-
/**
|
|
61
|
-
* Get a mipmap level by index
|
|
62
|
-
* @param level The index of the mipmap level
|
|
63
|
-
*/
|
|
64
|
-
getMipMapLevel(level: number): ChartPoint[];
|
|
65
|
-
/**
|
|
66
|
-
* Get all mipmap level
|
|
67
|
-
*/
|
|
68
|
-
getMipMaps(): ChartPoint[][];
|
|
69
|
-
/**
|
|
70
|
-
* Get the number of available mipmap level
|
|
71
|
-
*/
|
|
72
|
-
getNumLevel(): number;
|
|
73
|
-
protected computeResolution(data: ChartPoint[]): number;
|
|
74
|
-
protected createMipMap(): void;
|
|
75
|
-
protected downsampleToResolution(data: ChartPoint[], targetResolution: number, targetLength: number): ChartPoint[];
|
|
76
|
-
protected getAverage(aggregationValues: ChartPoint[]): ChartPoint;
|
|
77
|
-
protected getTime(point: ChartPoint): number;
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ResponsiveDownsamplePlugin, ResponsiveDownsamplePluginOptions } from './responsive_downsample_plugin';
|