@yugabytedb/perf-advisor-ui 1.0.141 → 1.0.142
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/dist/api.d.ts +1 -1
- package/dist/components/Header/GenericHeader.d.ts +4 -1
- package/dist/components/PrimaryDashboard/DbLoadMetadata.d.ts +3 -2
- package/dist/components/PrimaryDashboard/DbStatsTable/useDatabaseStatsTable.d.ts +9 -2
- package/dist/components/SecondaryDashboard/Metadata/QueriesMetadata.d.ts +3 -2
- package/dist/esm/index.js +12893 -12746
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/utils.d.ts +23 -3
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/helpers/utils.d.ts
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Anomaly, AnomalyCategory, AppName, ClusterLoadOverallTabs, ClusterLoadSubTabs, GraphFilters, InsightsTabs, WaitEventClassification, GraphRequestParams, GraphType, MetricMeasure, QueryPageParams, AnomalyGroup, TransformedData, TransformedDbLoadData, TransformedNodeLoadData, TransformedTabletsData, BackgroundTasksResponse, TransformedBackgroundTasksResponse, AnomalyPossibleCauseData, UniverseNodeDetails, QueryPlanEntry, ClusterDetails, NodeType } from './dtos';
|
|
2
2
|
export declare const formatData: (data: any) => any;
|
|
3
|
+
export interface ZoneNodeInfo {
|
|
4
|
+
name: string;
|
|
5
|
+
master: boolean;
|
|
6
|
+
tserver: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ZoneMapEntry {
|
|
9
|
+
zoneName: string;
|
|
10
|
+
nodes: ZoneNodeInfo[];
|
|
11
|
+
isReadReplica: boolean;
|
|
12
|
+
regionName: string;
|
|
13
|
+
}
|
|
3
14
|
export declare const formatUniverseNodeDetails: (universeNodesDetails: UniverseNodeDetails) => {
|
|
4
|
-
primaryZoneMapping:
|
|
5
|
-
asyncZoneMapping:
|
|
15
|
+
primaryZoneMapping: Map<string, ZoneMapEntry>;
|
|
16
|
+
asyncZoneMapping: Map<string, ZoneMapEntry>;
|
|
6
17
|
primaryClusterMapping: any;
|
|
7
18
|
asyncClusterMapping: any;
|
|
8
19
|
nodeIPMapping: any;
|
|
@@ -37,6 +48,7 @@ export declare const formatUniverseDetails: (universeData: any) => {
|
|
|
37
48
|
export declare const getNodesBasedOnZones: (nodeDetailsData: any, zoneName: string, uuid: string) => string[];
|
|
38
49
|
export declare const getRegionsBasedOnCluster: (nodeDetailsData: any, isReadReplica: boolean) => string[];
|
|
39
50
|
export declare const getFilteredItems: (zoneToNodesMap: any, isRegionChanged: boolean, isPrimaryCluster: boolean, filterParam: string) => Map<any, any>;
|
|
51
|
+
export declare const filterZoneMapByNodeType: (zoneToNodesMap: Map<string, ZoneMapEntry>, nodeType: NodeType) => Map<string, ZoneMapEntry>;
|
|
40
52
|
export declare const getPrimaryCluster: (clusters: any) => any;
|
|
41
53
|
export declare function getReadOnlyCluster(clusters: any): any;
|
|
42
54
|
export declare const getAnomalyMainGraphRequestParams: (anomalyData: AnomalyGroup) => any[];
|
|
@@ -56,13 +68,21 @@ export declare const getOperations: (metricMeasure: string, metricData: any, gra
|
|
|
56
68
|
export declare const calculateDateDifference: (startDate: Date, endDate: Date) => number;
|
|
57
69
|
export declare const applyClusterFilters: (filters: GraphFilters, details: Pick<ClusterDetails, 'cluster' | 'region' | 'zone' | 'node' | 'nodeType'>) => void;
|
|
58
70
|
export declare const buildClusterUrlParams: (details: Pick<ClusterDetails, 'cluster' | 'region' | 'zone' | 'node' | 'nodeType'>) => URLSearchParams;
|
|
71
|
+
export declare const getApiErrorMessage: (error: unknown, fallback: string) => string;
|
|
59
72
|
export type MetricTabResource = {
|
|
60
73
|
readonly title: string;
|
|
61
74
|
readonly name: string;
|
|
62
75
|
readonly metrics: readonly string[];
|
|
63
76
|
};
|
|
64
77
|
export declare const filterMetricResourcesByNodeType: (resources: readonly MetricTabResource[], nodeType?: NodeType) => readonly MetricTabResource[];
|
|
65
|
-
export declare const
|
|
78
|
+
export declare const deriveEffectiveNodeType: ({ nodeType, zone, node, primaryZoneToNodesMap, asyncZoneToNodesMap }: {
|
|
79
|
+
nodeType?: NodeType | undefined;
|
|
80
|
+
zone?: string | undefined;
|
|
81
|
+
node?: string | undefined;
|
|
82
|
+
primaryZoneToNodesMap?: Map<string, ZoneMapEntry> | undefined;
|
|
83
|
+
asyncZoneToNodesMap?: Map<string, ZoneMapEntry> | undefined;
|
|
84
|
+
}) => NodeType;
|
|
85
|
+
export declare const buildTopKMetricParams: (clusterDetails: ClusterDetails, metricsTabNumber: number, isK8sUniverse?: boolean, effectiveNodeType?: NodeType) => GraphRequestParams[] | undefined;
|
|
66
86
|
export declare const buildAnomalyGraphParams: (clusterDetails: ClusterDetails, graphParamsCopy: GraphRequestParams[]) => GraphRequestParams[];
|
|
67
87
|
export declare const buildHistoricalQueryParams: (clusterDetails: ClusterDetails, urlParams: QueryPageParams | null, graphNames: readonly string[], anomalyData?: AnomalyGroup | null, ashGroupBy?: WaitEventClassification) => GraphRequestParams[];
|
|
68
88
|
export declare const getStepSeconds: (startTime: string | null, endTime: string | null) => number;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export * from './common';
|
|
|
3
3
|
export * from './helpers/config';
|
|
4
4
|
export * from './helpers/constants';
|
|
5
5
|
export * from './helpers/objectUtils';
|
|
6
|
-
export { buildQueryDrilldownUrl } from './helpers/utils';
|
|
6
|
+
export { buildQueryDrilldownUrl, getApiErrorMessage } from './helpers/utils';
|
|
7
7
|
export type { BuildQueryDrilldownUrlParams } from './helpers/utils';
|
|
8
8
|
export * from './providers/YBThemeWrapper';
|