@yugabytedb/perf-advisor-ui 1.0.141 → 1.0.143
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/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 +11526 -11455
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/utils.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare class ApiService {
|
|
|
38
38
|
fetchAnomalies: (universeUuid: string, startTime?: Date | null, endTime?: Date | null, apiUrl?: string) => Promise<Anomaly[]>;
|
|
39
39
|
fetchAnomaliesPage: (universeUuid: string, pageno: number, apiUrl?: string, records_to_fetch?: number, startTime?: Date | null, endTime?: Date | null, category?: any, searchInput?: string) => Promise<import('axios').AxiosResponse<Anomaly[]>>;
|
|
40
40
|
fetchQueriesPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
41
|
-
fetchLoadDbStatsPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
41
|
+
fetchLoadDbStatsPage: (universeUuid: string, payload: any, getClusterDetails?: () => ClusterDetails) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
42
42
|
fetchTabletStatsPage: (universeUuid: string, payload: any, getClusterDetails: () => ClusterDetails) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
43
43
|
fetchNodeLoadStatsPage: (universeUuid: string, payload: any) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
44
44
|
fetchQueriesStatsPage: (universeUuid: string, payload: any, getClusterDetails: () => ClusterDetails, filteredLegends: string[], showSystemQueries?: boolean) => Promise<import('axios').AxiosResponse<GraphRequestParams[]>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppName, QueryPageParams, UniverseDatabaseStatsData } from '../../helpers/dtos';
|
|
1
|
+
import { AppName, ClusterDetails, QueryPageParams, UniverseDatabaseStatsData } from '../../helpers/dtos';
|
|
2
2
|
export interface DbLoadMetadataProps {
|
|
3
3
|
dbWaitEventType: string;
|
|
4
4
|
universeUuid: string;
|
|
@@ -8,6 +8,7 @@ export interface DbLoadMetadataProps {
|
|
|
8
8
|
endTime: string | null;
|
|
9
9
|
timezone?: string;
|
|
10
10
|
showTimezoneSelector?: boolean;
|
|
11
|
+
getClusterDetails?: () => ClusterDetails;
|
|
11
12
|
onSelectedQuery?: (queryId: string, params?: QueryPageParams) => void;
|
|
12
13
|
onNavigateToUrl?: (url: string) => void;
|
|
13
14
|
}
|
|
@@ -19,4 +20,4 @@ export interface DatabaseStatsPagedResponse {
|
|
|
19
20
|
totalCount: number;
|
|
20
21
|
};
|
|
21
22
|
}
|
|
22
|
-
export declare const DbLoadMetadata: ({ dbWaitEventType, universeUuid, apiUrl, appName, startTime, endTime, onSelectedQuery, onNavigateToUrl }: DbLoadMetadataProps) => JSX.Element;
|
|
23
|
+
export declare const DbLoadMetadata: ({ dbWaitEventType, universeUuid, apiUrl, appName, startTime, endTime, getClusterDetails, onSelectedQuery, onNavigateToUrl }: DbLoadMetadataProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import { SortDirection, UniverseDatabaseStatsData } from '../../../helpers/dtos';
|
|
2
|
+
import { ClusterDetails, SortDirection, UniverseDatabaseStatsData } from '../../../helpers/dtos';
|
|
3
3
|
export declare const defaultSortKeyMapper: (columnId: string) => string;
|
|
4
4
|
export interface UseDatabaseStatsTableArgs<TData = any> {
|
|
5
5
|
universeUuid: string;
|
|
@@ -19,8 +19,14 @@ export interface UseDatabaseStatsTableArgs<TData = any> {
|
|
|
19
19
|
epsColumnId?: string;
|
|
20
20
|
/** Pass `true` to filter out system DBs (e.g. system_platform, template0). Default `false`. */
|
|
21
21
|
excludeSystemDBs?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Optional cluster/region/zone/node filter source. When provided, the resolved topology is
|
|
24
|
+
* sent as query params on `/databases/stats/page` and folded into the react-query key so a
|
|
25
|
+
* filter change refetches. Callers without topology filters (e.g. CPU-by-Database) omit it.
|
|
26
|
+
*/
|
|
27
|
+
getClusterDetails?: () => ClusterDetails;
|
|
22
28
|
}
|
|
23
|
-
export declare const useDatabaseStatsTable: <TData = any>({ universeUuid, apiUrl, startTime, endTime, dbWaitEventTypeFilter, defaultSortBy, queryKeyDiscriminator, sortKeyMapper, transformData, epsColumnId, excludeSystemDBs }: UseDatabaseStatsTableArgs<TData>) => {
|
|
29
|
+
export declare const useDatabaseStatsTable: <TData = any>({ universeUuid, apiUrl, startTime, endTime, dbWaitEventTypeFilter, defaultSortBy, queryKeyDiscriminator, sortKeyMapper, transformData, epsColumnId, excludeSystemDBs, getClusterDetails }: UseDatabaseStatsTableArgs<TData>) => {
|
|
24
30
|
rows: TData[];
|
|
25
31
|
totalSize: number;
|
|
26
32
|
maxEPS: number;
|
|
@@ -39,6 +45,7 @@ export declare const useDatabaseStatsTable: <TData = any>({ universeUuid, apiUrl
|
|
|
39
45
|
sortBy: string;
|
|
40
46
|
sortDirection: SortDirection;
|
|
41
47
|
handleColumnSortChange: (updater: any) => void;
|
|
48
|
+
clusterFilterKey: string;
|
|
42
49
|
isFetching: boolean;
|
|
43
50
|
isError: boolean;
|
|
44
51
|
error: AxiosError<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppName, QueryPageParams, WaitEventClassification } from '../../../helpers/dtos';
|
|
1
|
+
import { AppName, ClusterDetails, QueryPageParams, WaitEventClassification } from '../../../helpers/dtos';
|
|
2
2
|
interface QueriesMetadataProps {
|
|
3
3
|
groupByOperation?: WaitEventClassification;
|
|
4
4
|
dbWaitEventType: string;
|
|
@@ -15,6 +15,7 @@ interface QueriesMetadataProps {
|
|
|
15
15
|
isDbLoadMetadata?: boolean;
|
|
16
16
|
isNodeLoadMetadata?: boolean;
|
|
17
17
|
isTabletLoadMetadata?: boolean;
|
|
18
|
+
getClusterDetails?: () => ClusterDetails;
|
|
18
19
|
}
|
|
19
|
-
export declare const QueriesMetadata: ({ dbWaitEventType, name, apiUrl, appName, startTime, endTime, universeUuid, withBorder, groupByOperation, isDbLoadMetadata, isNodeLoadMetadata, isTabletLoadMetadata, onSelectedQuery, onSetGroupByOperation, onNavigateToUrl }: QueriesMetadataProps) => JSX.Element;
|
|
20
|
+
export declare const QueriesMetadata: ({ dbWaitEventType, name, apiUrl, appName, startTime, endTime, universeUuid, withBorder, groupByOperation, isDbLoadMetadata, isNodeLoadMetadata, isTabletLoadMetadata, onSelectedQuery, onSetGroupByOperation, onNavigateToUrl, getClusterDetails: getClusterDetailsProp }: QueriesMetadataProps) => JSX.Element;
|
|
20
21
|
export {};
|