@yugabytedb/perf-advisor-ui 1.0.164 → 1.0.166
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 +7 -8
- package/dist/api.d.ts +8 -1
- package/dist/components/ExportConfigs/DeleteExportConfig.d.ts +14 -0
- package/dist/components/ExportConfigs/ExportConfigs.d.ts +11 -0
- package/dist/components/ExportConfigs/UpdateExportConfig.d.ts +14 -0
- package/dist/components/ExportConfigs/exportConfigColumns.d.ts +45 -0
- package/dist/components/SecondaryDashboard/DrilldownView/BindVariablesSection.d.ts +3 -2
- package/dist/components/SecondaryDashboard/Metadata/AnomalyTabletNotice.d.ts +11 -0
- package/dist/components/SecondaryDashboard/Metadata/TabletLevelQueryMetadata.d.ts +7 -2
- package/dist/components/SecondaryDashboard/Metadata/types.d.ts +20 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/esm/index.js +14039 -13617
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/bindVariablesText.d.ts +4 -2
- package/dist/helpers/constants.d.ts +6 -2
- package/dist/helpers/dtos.d.ts +27 -10
- package/dist/helpers/errorHandlingUtils.d.ts +1 -0
- package/package.json +5 -5
- package/dist/helpers/gflagUtils.d.ts +0 -4
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AppName } from './dtos';
|
|
2
2
|
export declare const getEntityLabel: (appName: AppName) => string;
|
|
3
|
-
export
|
|
3
|
+
export declare const MIN_BIND_VARIABLES_DB_VERSION = "2025.2.4.0-b0";
|
|
4
|
+
export interface BindVariablesDisabledReason {
|
|
4
5
|
title: string;
|
|
5
6
|
instruction: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const getBindVariablesText: (appName: AppName) => {
|
|
8
9
|
sectionTitle: string;
|
|
9
10
|
toggleLabel: string;
|
|
11
|
+
collectionOffTitle: string;
|
|
10
12
|
collectionOff: string;
|
|
11
13
|
noValueYet: string;
|
|
12
14
|
valueCaveat: string;
|
|
@@ -23,4 +25,4 @@ export declare const getBindVariablesText: (appName: AppName) => {
|
|
|
23
25
|
warning: string;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
|
-
export declare const
|
|
28
|
+
export declare const getBindVariablesDisabledReason: (bindVariablesSupported: boolean, bindVariablesEnabled: boolean, appName: AppName) => BindVariablesDisabledReason | null;
|
|
@@ -111,8 +111,6 @@ export declare const RUNTIME_CONFIG_KEYS: {
|
|
|
111
111
|
SHOW_TIMEZONE_SELECTOR: string;
|
|
112
112
|
QUERY_PLANS_STORE_BIND_VARIABLES: string;
|
|
113
113
|
};
|
|
114
|
-
export declare const YB_PG_STAT_PLANS_SHOW_MAX_EXEC_PARAMS = "yb_pg_stat_plans_show_max_exec_params";
|
|
115
|
-
export declare const YSQL_PG_CONF_CSV_GFLAG = "ysql_pg_conf_csv";
|
|
116
114
|
export declare const ANOMALY_TYPE_TO_NAME_MAP: Record<string, string>;
|
|
117
115
|
export declare const MORE = "MORE";
|
|
118
116
|
export declare const ELLIPSIS = "...";
|
|
@@ -525,6 +523,12 @@ export declare const DEFAULT_ERROR_MESSAGES: {
|
|
|
525
523
|
QUERY_STATS_FETCH_ERROR: string;
|
|
526
524
|
DB_STATS_FETCH_ERROR: string;
|
|
527
525
|
};
|
|
526
|
+
export declare const ANOMALY_TABLET_UNRESOLVED_MESSAGES: {
|
|
527
|
+
NOT_FOUND: string;
|
|
528
|
+
NOT_LOADED: string;
|
|
529
|
+
TABLE_NOT_FOUND: string;
|
|
530
|
+
TABLE_NOT_LOADED: string;
|
|
531
|
+
};
|
|
528
532
|
export declare const VISIBLE_QUERY_METADATA_COLUMNS = "visibleQueryMetadataColumns";
|
|
529
533
|
export declare const VISIBLE_DB_LOAD_METADATA_COLUMNS = "visibleDbLoadMetadataColumns";
|
|
530
534
|
export declare const VISIBLE_DB_CPU_METADATA_COLUMNS = "visibleDbCPUMetadataColumns";
|
package/dist/helpers/dtos.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface Universe {
|
|
|
9
9
|
qpmEnabled?: boolean;
|
|
10
10
|
qpmSupported?: boolean;
|
|
11
11
|
qpmBindVariablesEnabled?: boolean;
|
|
12
|
+
qpmBindVariablesSupported?: boolean;
|
|
12
13
|
kubernetes?: boolean;
|
|
13
14
|
resources: Resources;
|
|
14
15
|
universeConfig: UniverseConfig;
|
|
@@ -34,13 +35,6 @@ export declare enum NodeState {
|
|
|
34
35
|
BeingDecommissioned = "BeingDecommissioned",
|
|
35
36
|
Decommissioned = "Decommissioned"
|
|
36
37
|
}
|
|
37
|
-
export interface NodeDetails {
|
|
38
|
-
nodeIdx: number;
|
|
39
|
-
nodeName: string | null;
|
|
40
|
-
nodeUuid: string | null;
|
|
41
|
-
placementUuid: string;
|
|
42
|
-
state: NodeState;
|
|
43
|
-
}
|
|
44
38
|
export interface NodeDataCloudInfo {
|
|
45
39
|
region: string;
|
|
46
40
|
zone: string;
|
|
@@ -595,6 +589,29 @@ export declare enum AnomalyDetectionStatusText {
|
|
|
595
589
|
SUCCESS = "SUCCESS",
|
|
596
590
|
FAILURE = "FAILURE"
|
|
597
591
|
}
|
|
592
|
+
export declare enum ExportMetricsType {
|
|
593
|
+
OTLP_HTTP = "otlphttp",
|
|
594
|
+
REMOTE_WRITE = "remotewrite"
|
|
595
|
+
}
|
|
596
|
+
export declare enum ExportAuthType {
|
|
597
|
+
NONE = "none",
|
|
598
|
+
BASIC = "basic"
|
|
599
|
+
}
|
|
600
|
+
export interface ExportAuth {
|
|
601
|
+
type: ExportAuthType;
|
|
602
|
+
username?: string;
|
|
603
|
+
password?: string;
|
|
604
|
+
}
|
|
605
|
+
export interface ExportConfigData {
|
|
606
|
+
id?: string;
|
|
607
|
+
name: string;
|
|
608
|
+
metricsEndpoint: string;
|
|
609
|
+
metricsType: ExportMetricsType;
|
|
610
|
+
metricsAuth?: ExportAuth | null;
|
|
611
|
+
collectionEndpoint: string;
|
|
612
|
+
collectionAuth?: ExportAuth | null;
|
|
613
|
+
includeGlobalPaMetrics: boolean;
|
|
614
|
+
}
|
|
598
615
|
export interface RuntimeConfigData {
|
|
599
616
|
description: string;
|
|
600
617
|
overriden: boolean;
|
|
@@ -631,7 +648,7 @@ export interface IndexAnomalyDetails {
|
|
|
631
648
|
otherIndexName?: string;
|
|
632
649
|
otherIndexDefinition?: string;
|
|
633
650
|
}
|
|
634
|
-
export interface
|
|
651
|
+
export interface AnomalyTypeDetails {
|
|
635
652
|
indexDetails?: IndexAnomalyDetails;
|
|
636
653
|
}
|
|
637
654
|
export interface AnomalyInstance {
|
|
@@ -660,7 +677,7 @@ export interface AnomalyInstance {
|
|
|
660
677
|
rcaGuidelines: RCAGuideline[];
|
|
661
678
|
isResolved?: boolean;
|
|
662
679
|
wastedAASRatio?: number;
|
|
663
|
-
anomalyDetails?:
|
|
680
|
+
anomalyDetails?: AnomalyTypeDetails;
|
|
664
681
|
}
|
|
665
682
|
export interface Interval {
|
|
666
683
|
startTime: string;
|
|
@@ -944,7 +961,7 @@ export interface AnomalyPossibleCauseData {
|
|
|
944
961
|
summary: string;
|
|
945
962
|
observation: string;
|
|
946
963
|
possibleCauses: AnomalyPossibleCauseItem[];
|
|
947
|
-
anomalyDetails?:
|
|
964
|
+
anomalyDetails?: AnomalyTypeDetails;
|
|
948
965
|
}
|
|
949
966
|
export interface AnomalyPossibleCauseItem {
|
|
950
967
|
possibleCause: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yugabytedb/perf-advisor-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.166",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"eslint": "7.32.0",
|
|
40
40
|
"eslint-config-prettier": "8.3.0",
|
|
41
41
|
"eslint-plugin-import": "2.23.4",
|
|
42
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
42
43
|
"prettier": "2.1.0",
|
|
43
44
|
"rollup-plugin-visualizer": "5.14.0",
|
|
44
|
-
"standard-version": "9.5.0",
|
|
45
45
|
"typescript": "5.3.3",
|
|
46
46
|
"vite": "8.0.14",
|
|
47
47
|
"vite-plugin-dts": "4.5.4"
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"lint:fix": "eslint src --ext .ts,.tsx,.js,.jsx --fix",
|
|
97
97
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
98
98
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
|
|
99
|
-
"
|
|
100
|
-
"release": "npm
|
|
101
|
-
"publish:yalc": "npm run build:dev && npx yalc publish --push"
|
|
99
|
+
"prepublishOnly": "npm run typecheck && npm run lint && npm run build",
|
|
100
|
+
"release": "npm ci && npm publish",
|
|
101
|
+
"publish:yalc": "npm run build:dev && npx yalc publish --push --no-scripts"
|
|
102
102
|
},
|
|
103
103
|
"sideEffects": [
|
|
104
104
|
"**/*.css"
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Universe } from './dtos';
|
|
2
|
-
export declare const getTserverGFlagValue: (universe: Universe | undefined, flagName: string) => string | undefined;
|
|
3
|
-
export declare const parseYsqlPgConfCsvBool: (csv: string | undefined, paramName: string) => boolean | undefined;
|
|
4
|
-
export declare const isBindVariablesGflagEnabled: (universe: Universe | undefined) => boolean;
|