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.
Files changed (147) hide show
  1. package/README.md +2 -1
  2. package/{fesm2020 → fesm2022}/ngx-hana-nameserver-history-viewer.mjs +2898 -3983
  3. package/fesm2022/ngx-hana-nameserver-history-viewer.mjs.map +1 -0
  4. package/ngx-hana-nameserver-history-viewer-21.1.0.tgz +0 -0
  5. package/package.json +20 -27
  6. package/types/ngx-hana-nameserver-history-viewer.d.ts +545 -0
  7. package/esm2020/ngx-hana-nameserver-history-viewer.mjs +0 -5
  8. package/esm2020/public-api.mjs +0 -2
  9. package/esm2020/src/nameserver-history-viewer/components/alert/alert.component.mjs +0 -68
  10. package/esm2020/src/nameserver-history-viewer/components/alert/alert.module.mjs +0 -22
  11. package/esm2020/src/nameserver-history-viewer/components/alert/index.mjs +0 -3
  12. package/esm2020/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.mjs +0 -112
  13. package/esm2020/src/nameserver-history-viewer/components/file-drop-input/index.mjs +0 -2
  14. package/esm2020/src/nameserver-history-viewer/components/index.mjs +0 -9
  15. package/esm2020/src/nameserver-history-viewer/components/instruction/index.mjs +0 -2
  16. package/esm2020/src/nameserver-history-viewer/components/instruction/instruction.component.mjs +0 -42
  17. package/esm2020/src/nameserver-history-viewer/components/nameserver-history.component.mjs +0 -557
  18. package/esm2020/src/nameserver-history-viewer/components/port-selector/index.mjs +0 -2
  19. package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.component.mjs +0 -69
  20. package/esm2020/src/nameserver-history-viewer/components/port-selector/port-selector.service.mjs +0 -41
  21. package/esm2020/src/nameserver-history-viewer/components/progress-bar/index.mjs +0 -2
  22. package/esm2020/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.mjs +0 -40
  23. package/esm2020/src/nameserver-history-viewer/components/time-range-selector/index.mjs +0 -2
  24. package/esm2020/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.mjs +0 -70
  25. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/index.mjs +0 -2
  26. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.mjs +0 -88
  27. package/esm2020/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.mjs +0 -47
  28. package/esm2020/src/nameserver-history-viewer/index.mjs +0 -3
  29. package/esm2020/src/nameserver-history-viewer/nameserver-history.module.mjs +0 -63
  30. package/esm2020/src/nameserver-history-viewer/services/chart.service.mjs +0 -328
  31. package/esm2020/src/nameserver-history-viewer/services/file.service.mjs +0 -390
  32. package/esm2020/src/nameserver-history-viewer/services/index.mjs +0 -4
  33. package/esm2020/src/nameserver-history-viewer/services/ui.service.mjs +0 -557
  34. package/esm2020/src/nameserver-history-viewer/types/abort.types.mjs +0 -6
  35. package/esm2020/src/nameserver-history-viewer/types/alert.types.mjs +0 -8
  36. package/esm2020/src/nameserver-history-viewer/types/chart-content-data-item.types.mjs +0 -2
  37. package/esm2020/src/nameserver-history-viewer/types/chart-content-data.types.mjs +0 -2
  38. package/esm2020/src/nameserver-history-viewer/types/chart-content-header.types.mjs +0 -2
  39. package/esm2020/src/nameserver-history-viewer/types/chart-content-time.types.mjs +0 -2
  40. package/esm2020/src/nameserver-history-viewer/types/chart-content.types.mjs +0 -2
  41. package/esm2020/src/nameserver-history-viewer/types/color-rgba.types.mjs +0 -2
  42. package/esm2020/src/nameserver-history-viewer/types/html-element.type.mjs +0 -9
  43. package/esm2020/src/nameserver-history-viewer/types/index.mjs +0 -28
  44. package/esm2020/src/nameserver-history-viewer/types/item.types.mjs +0 -14
  45. package/esm2020/src/nameserver-history-viewer/types/legend-color.types.mjs +0 -2
  46. package/esm2020/src/nameserver-history-viewer/types/load-history-info-backup.types.mjs +0 -2
  47. package/esm2020/src/nameserver-history-viewer/types/load-history-info-columnstore.types.mjs +0 -2
  48. package/esm2020/src/nameserver-history-viewer/types/load-history-info-host.types.mjs +0 -2
  49. package/esm2020/src/nameserver-history-viewer/types/load-history-info-item.types.mjs +0 -2
  50. package/esm2020/src/nameserver-history-viewer/types/load-history-info-persistence.types.mjs +0 -2
  51. package/esm2020/src/nameserver-history-viewer/types/load-history-info-rowstore.types.mjs +0 -2
  52. package/esm2020/src/nameserver-history-viewer/types/load-history-info-server.types.mjs +0 -2
  53. package/esm2020/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.mjs +0 -2
  54. package/esm2020/src/nameserver-history-viewer/types/load-history-info-sql.types.mjs +0 -2
  55. package/esm2020/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.mjs +0 -2
  56. package/esm2020/src/nameserver-history-viewer/types/load-history-info-threads.types.mjs +0 -2
  57. package/esm2020/src/nameserver-history-viewer/types/load-history-info.types.mjs +0 -2
  58. package/esm2020/src/nameserver-history-viewer/types/port.types.mjs +0 -2
  59. package/esm2020/src/nameserver-history-viewer/types/scale-group.types.mjs +0 -17
  60. package/esm2020/src/nameserver-history-viewer/types/unit-category.types.mjs +0 -10
  61. package/esm2020/src/nameserver-history-viewer/types/unit.types.mjs +0 -14
  62. package/esm2020/src/nameserver-history-viewer/utils/chart-util.mjs +0 -25
  63. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.mjs +0 -2
  64. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.mjs +0 -56
  65. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.mjs +0 -139
  66. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/index.mjs +0 -41
  67. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.mjs +0 -106
  68. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.mjs +0 -167
  69. package/esm2020/src/nameserver-history-viewer/utils/chartjs-downsample/utils.mjs +0 -114
  70. package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.mjs +0 -527
  71. package/esm2020/src/nameserver-history-viewer/utils/chartjs-zoom/index.mjs +0 -2
  72. package/esm2020/src/nameserver-history-viewer/utils/file-util.mjs +0 -161
  73. package/esm2020/src/nameserver-history-viewer/utils/index.mjs +0 -5
  74. package/esm2020/src/nameserver-history-viewer/utils/time-util.mjs +0 -99
  75. package/esm2020/src/nameserver-history-viewer/utils/ui-util.mjs +0 -162
  76. package/fesm2015/ngx-hana-nameserver-history-viewer.mjs +0 -4098
  77. package/fesm2015/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
  78. package/fesm2020/ngx-hana-nameserver-history-viewer.mjs.map +0 -1
  79. package/ngx-hana-nameserver-history-viewer.d.ts +0 -5
  80. package/public-api.d.ts +0 -1
  81. package/src/nameserver-history-viewer/components/alert/alert.component.d.ts +0 -21
  82. package/src/nameserver-history-viewer/components/alert/alert.module.d.ts +0 -8
  83. package/src/nameserver-history-viewer/components/alert/index.d.ts +0 -2
  84. package/src/nameserver-history-viewer/components/file-drop-input/file-drop-input.component.d.ts +0 -16
  85. package/src/nameserver-history-viewer/components/file-drop-input/index.d.ts +0 -1
  86. package/src/nameserver-history-viewer/components/index.d.ts +0 -8
  87. package/src/nameserver-history-viewer/components/instruction/index.d.ts +0 -1
  88. package/src/nameserver-history-viewer/components/instruction/instruction.component.d.ts +0 -17
  89. package/src/nameserver-history-viewer/components/nameserver-history.component.d.ts +0 -262
  90. package/src/nameserver-history-viewer/components/port-selector/index.d.ts +0 -1
  91. package/src/nameserver-history-viewer/components/port-selector/port-selector.component.d.ts +0 -31
  92. package/src/nameserver-history-viewer/components/port-selector/port-selector.service.d.ts +0 -14
  93. package/src/nameserver-history-viewer/components/progress-bar/index.d.ts +0 -1
  94. package/src/nameserver-history-viewer/components/progress-bar/progress-bar.component.d.ts +0 -6
  95. package/src/nameserver-history-viewer/components/time-range-selector/index.d.ts +0 -1
  96. package/src/nameserver-history-viewer/components/time-range-selector/time-range-selector.component.d.ts +0 -19
  97. package/src/nameserver-history-viewer/components/timezone-selector/index.d.ts +0 -1
  98. package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.component.d.ts +0 -26
  99. package/src/nameserver-history-viewer/components/timezone-selector/timezone-selector.service.d.ts +0 -21
  100. package/src/nameserver-history-viewer/index.d.ts +0 -2
  101. package/src/nameserver-history-viewer/nameserver-history.module.d.ts +0 -19
  102. package/src/nameserver-history-viewer/services/chart.service.d.ts +0 -59
  103. package/src/nameserver-history-viewer/services/file.service.d.ts +0 -63
  104. package/src/nameserver-history-viewer/services/index.d.ts +0 -3
  105. package/src/nameserver-history-viewer/services/ui.service.d.ts +0 -88
  106. package/src/nameserver-history-viewer/types/abort.types.d.ts +0 -4
  107. package/src/nameserver-history-viewer/types/alert.types.d.ts +0 -6
  108. package/src/nameserver-history-viewer/types/chart-content-data-item.types.d.ts +0 -4
  109. package/src/nameserver-history-viewer/types/chart-content-data.types.d.ts +0 -4
  110. package/src/nameserver-history-viewer/types/chart-content-header.types.d.ts +0 -4
  111. package/src/nameserver-history-viewer/types/chart-content-time.types.d.ts +0 -3
  112. package/src/nameserver-history-viewer/types/chart-content.types.d.ts +0 -10
  113. package/src/nameserver-history-viewer/types/color-rgba.types.d.ts +0 -6
  114. package/src/nameserver-history-viewer/types/html-element.type.d.ts +0 -7
  115. package/src/nameserver-history-viewer/types/index.d.ts +0 -27
  116. package/src/nameserver-history-viewer/types/item.types.d.ts +0 -12
  117. package/src/nameserver-history-viewer/types/legend-color.types.d.ts +0 -4
  118. package/src/nameserver-history-viewer/types/load-history-info-backup.types.d.ts +0 -7
  119. package/src/nameserver-history-viewer/types/load-history-info-columnstore.types.d.ts +0 -7
  120. package/src/nameserver-history-viewer/types/load-history-info-host.types.d.ts +0 -15
  121. package/src/nameserver-history-viewer/types/load-history-info-item.types.d.ts +0 -13
  122. package/src/nameserver-history-viewer/types/load-history-info-persistence.types.d.ts +0 -11
  123. package/src/nameserver-history-viewer/types/load-history-info-rowstore.types.d.ts +0 -5
  124. package/src/nameserver-history-viewer/types/load-history-info-server.types.d.ts +0 -10
  125. package/src/nameserver-history-viewer/types/load-history-info-session-admission-control.types.d.ts +0 -10
  126. package/src/nameserver-history-viewer/types/load-history-info-sql.types.d.ts +0 -16
  127. package/src/nameserver-history-viewer/types/load-history-info-sync-primitives.types.d.ts +0 -5
  128. package/src/nameserver-history-viewer/types/load-history-info-threads.types.d.ts +0 -9
  129. package/src/nameserver-history-viewer/types/load-history-info.types.d.ts +0 -22
  130. package/src/nameserver-history-viewer/types/port.types.d.ts +0 -5
  131. package/src/nameserver-history-viewer/types/scale-group.types.d.ts +0 -15
  132. package/src/nameserver-history-viewer/types/unit-category.types.d.ts +0 -8
  133. package/src/nameserver-history-viewer/types/unit.types.d.ts +0 -12
  134. package/src/nameserver-history-viewer/utils/chart-util.d.ts +0 -14
  135. package/src/nameserver-history-viewer/utils/chartjs-downsample/chartjs_ext.d.ts +0 -89
  136. package/src/nameserver-history-viewer/utils/chartjs-downsample/data_culling.d.ts +0 -32
  137. package/src/nameserver-history-viewer/utils/chartjs-downsample/data_mipmap.d.ts +0 -78
  138. package/src/nameserver-history-viewer/utils/chartjs-downsample/index.d.ts +0 -1
  139. package/src/nameserver-history-viewer/utils/chartjs-downsample/lttb_data_mipmap.d.ts +0 -57
  140. package/src/nameserver-history-viewer/utils/chartjs-downsample/responsive_downsample_plugin.d.ts +0 -55
  141. package/src/nameserver-history-viewer/utils/chartjs-downsample/utils.d.ts +0 -64
  142. package/src/nameserver-history-viewer/utils/chartjs-zoom/chart.zoom.d.ts +0 -30
  143. package/src/nameserver-history-viewer/utils/chartjs-zoom/index.d.ts +0 -1
  144. package/src/nameserver-history-viewer/utils/file-util.d.ts +0 -68
  145. package/src/nameserver-history-viewer/utils/index.d.ts +0 -4
  146. package/src/nameserver-history-viewer/utils/time-util.d.ts +0 -23
  147. 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,4 +0,0 @@
1
- export declare enum Abort {
2
- maxLineNumReached = 0,
3
- maxTimeRangeReached = 1
4
- }
@@ -1,6 +0,0 @@
1
- export declare enum Alert {
2
- success = "success",
3
- error = "error",
4
- info = "info",
5
- warning = "warning"
6
- }
@@ -1,4 +0,0 @@
1
- export interface ChartContentDataItem {
2
- x: number;
3
- y: number;
4
- }
@@ -1,4 +0,0 @@
1
- import { ChartContentDataItem } from './chart-content-data-item.types';
2
- export interface ChartContentData {
3
- [index: string]: ChartContentDataItem[][];
4
- }
@@ -1,4 +0,0 @@
1
- export interface ChartContentHeader {
2
- key: string;
3
- text: string;
4
- }
@@ -1,3 +0,0 @@
1
- export interface ChartContentTime {
2
- [index: string]: Array<number>;
3
- }
@@ -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,6 +0,0 @@
1
- export interface ColorRgba {
2
- red: number;
3
- green: number;
4
- blue: number;
5
- alpha: number;
6
- }
@@ -1,7 +0,0 @@
1
- export declare enum HtmlElement {
2
- chartArea = 0,
3
- readFileProgress = 1,
4
- showChartButton = 2,
5
- loadPortsButton = 3,
6
- resetChartButton = 4
7
- }
@@ -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,12 +0,0 @@
1
- export declare enum Item {
2
- kpi = "KPI",
3
- yScale = "Y-Scale",
4
- yScaleGroup = "_YScaleGroup",
5
- unit = "Unit",
6
- max = "Max",
7
- average = "Average",
8
- sum = "Sum",
9
- last = "Last",
10
- description = "Description",
11
- header = "header"
12
- }
@@ -1,4 +0,0 @@
1
- import { ColorRgba } from './color-rgba.types';
2
- export interface LegendColor {
3
- [index: string]: ColorRgba;
4
- }
@@ -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,7 +0,0 @@
1
- import { LoadHistoryInfoItem } from './load-history-info-item.types';
2
- export interface LoadHistoryInfoColumnStore {
3
- searchCount: LoadHistoryInfoItem;
4
- indexingCount: LoadHistoryInfoItem;
5
- mergeCount: LoadHistoryInfoItem;
6
- unloadCount: 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,5 +0,0 @@
1
- import { LoadHistoryInfoItem } from './load-history-info-item.types';
2
- export interface LoadHistoryInfoRowStore {
3
- mvccNum: LoadHistoryInfoItem;
4
- acquiredRecordLocks: LoadHistoryInfoItem;
5
- }
@@ -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
- }
@@ -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,5 +0,0 @@
1
- import { LoadHistoryInfoItem } from './load-history-info-item.types';
2
- export interface LoadHistoryInfoSyncPrimitives {
3
- mutexCollisionCount: LoadHistoryInfoItem;
4
- readWriteLockCollisionCount: LoadHistoryInfoItem;
5
- }
@@ -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,5 +0,0 @@
1
- export interface Port {
2
- id: string;
3
- text: string;
4
- selected?: boolean;
5
- }
@@ -1,15 +0,0 @@
1
- export declare enum ScaleGroup {
2
- CPU = 0,
3
- Memory = 1,
4
- Disk = 2,
5
- Network = 3,
6
- Swap = 4,
7
- Time = 5,
8
- Req = 6,
9
- Stmt = 7,
10
- WRTime = 8,
11
- WRSize = 9,
12
- Conn = 10,
13
- Trans = 11,
14
- Unknown = 12
15
- }
@@ -1,8 +0,0 @@
1
- export declare enum UnitType {
2
- TypeEA = 0,
3
- TypeGB = 1,
4
- TypeMB = 2,
5
- TypeSecSec = 3,
6
- TypeMBSec = 4,
7
- TypeSec = 5
8
- }
@@ -1,12 +0,0 @@
1
- export declare enum Unit {
2
- PCT = "%",
3
- MS = "ms",
4
- Empty = "",
5
- GB = "GB",
6
- MB = "MB",
7
- MBPerSec = "MB/s",
8
- SecPerSec = "Sec/s",
9
- StmtPerSec = "stm/s",
10
- ReqPerSec = "req/s",
11
- ColPerSec = "col/s"
12
- }
@@ -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';