@yugabytedb/perf-advisor-ui 1.0.133 → 1.0.135
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 +22 -1
- package/dist/api.d.ts +96 -0
- package/dist/common/ChartCard/ChartCard.d.ts +20 -0
- package/dist/common/ChartCard/ChartCard.styles.d.ts +1 -0
- package/dist/common/ChartCard/ChartTypeSelector.d.ts +8 -0
- package/dist/common/ChartCard/WaitEventTypeSelector.d.ts +8 -0
- package/dist/common/ChartCard/buildOptions.d.ts +3 -0
- package/dist/common/ChartCard/defaults.d.ts +9 -0
- package/dist/common/ChartCard/helpers/anomalyOverlay.d.ts +2 -0
- package/dist/common/ChartCard/helpers/axes.d.ts +43 -0
- package/dist/common/ChartCard/helpers/index.d.ts +11 -0
- package/dist/common/ChartCard/helpers/interactions.d.ts +6 -0
- package/dist/common/ChartCard/helpers/legend.d.ts +41 -0
- package/dist/common/ChartCard/helpers/series.d.ts +9 -0
- package/dist/common/ChartCard/helpers/tooltip.d.ts +27 -0
- package/dist/common/ChartCard/index.d.ts +8 -0
- package/dist/common/ChartCard/types.d.ts +171 -0
- package/dist/common/CopyToClipboardButton/CopyToClipboardButton.d.ts +8 -0
- package/dist/common/PAHeader/MetricSplitSelector.d.ts +8 -0
- package/dist/common/PAHeader/OutlierSelector.d.ts +13 -0
- package/dist/common/PAHeader/QueryTypeSelector.d.ts +8 -0
- package/dist/common/PAHeader/YBClusterRegionSelector.d.ts +9 -0
- package/dist/common/PAHeader/YBZoneNodeSelector.d.ts +11 -0
- package/dist/common/PerfAdvisorCodeBlock/PerfAdvisorCodeBlock.d.ts +23 -0
- package/dist/common/YBCheckbox/YBCheckboxField.d.ts +6 -0
- package/dist/common/YBCodeBlock/codeBlock.d.ts +1 -0
- package/dist/common/YBErrorIndicator/YBErrorIndicator.d.ts +8 -0
- package/dist/common/YBInput/YBInputField.d.ts +7 -0
- package/dist/common/YBPagination/YBInfinitePagination.d.ts +16 -0
- package/dist/common/YBPanelItem/YBPanelItem.d.ts +11 -0
- package/dist/common/YBTable/AnomaliesTableFooter.d.ts +4 -0
- package/dist/common/YBTable/TableHelper.d.ts +9 -0
- package/dist/common/YBToggle/YBToggleField.d.ts +6 -0
- package/dist/common/index.d.ts +14 -0
- package/dist/components/ConfigureUniverse/ConfigureUniverseMetadata.d.ts +8 -0
- package/dist/components/ConfigureUniverse/RemoveUniverseMetadata.d.ts +10 -0
- package/dist/components/ConfigureUniverse/UniverseListMetadata.d.ts +14 -0
- package/dist/components/GanttChart/GanttChart.d.ts +3 -0
- package/dist/components/GanttChart/adapters/anomalyAdapter.d.ts +5 -0
- package/dist/components/GanttChart/adapters/backgroundJobsAdapter.d.ts +3 -0
- package/dist/components/GanttChart/adapters/qpmAdapter.d.ts +4 -0
- package/dist/components/GanttChart/adapters/showMoreAnomalyAdapter.d.ts +3 -0
- package/dist/components/GanttChart/adapters/singleLevelAnomalyAdapter.d.ts +3 -0
- package/dist/components/GanttChart/components/Bar.d.ts +11 -0
- package/dist/components/GanttChart/components/ColumnHeader.d.ts +9 -0
- package/dist/components/GanttChart/components/GanttRefetchProgress.d.ts +2 -0
- package/dist/components/GanttChart/components/GroupPanel.d.ts +15 -0
- package/dist/components/GanttChart/components/GroupRow.d.ts +17 -0
- package/dist/components/GanttChart/components/TimeAxis.d.ts +12 -0
- package/dist/components/GanttChart/components/TimelinePanel.d.ts +24 -0
- package/dist/components/GanttChart/config.d.ts +36 -0
- package/dist/components/GanttChart/hooks/useGanttRows.d.ts +9 -0
- package/dist/components/GanttChart/hooks/useTimeScale.d.ts +12 -0
- package/dist/components/GanttChart/index.d.ts +9 -0
- package/dist/components/GanttChart/types.d.ts +111 -0
- package/dist/components/GanttChart/utils/mergeIntervals.d.ts +10 -0
- package/dist/components/GanttChart/utils/severity.d.ts +19 -0
- package/dist/components/GanttChart/utils/timeFormatters.d.ts +12 -0
- package/dist/components/GanttChart/utils/truncateLabel.d.ts +16 -0
- package/dist/components/Header/BreadCrumbsHeader.d.ts +16 -0
- package/dist/components/Header/DateSelectorHeader.d.ts +21 -0
- package/dist/components/Header/DbLoadHeader.d.ts +14 -0
- package/dist/components/Header/GenericHeader.d.ts +30 -0
- package/dist/components/Header/MetadataHeader.d.ts +16 -0
- package/dist/components/Header/TimezoneSelector.d.ts +9 -0
- package/dist/components/Header/metadata/AnomalyMetadataFields.d.ts +12 -0
- package/dist/components/Header/metadata/MetadataField.d.ts +22 -0
- package/dist/components/Header/metadata/index.d.ts +4 -0
- package/dist/components/Header/metadata/sqlMetadataFields.d.ts +4 -0
- package/dist/components/PrimaryDashboard/AshGate.d.ts +7 -0
- package/dist/components/PrimaryDashboard/BackgroundJobs.d.ts +15 -0
- package/dist/components/PrimaryDashboard/ClusterOverallLoadChart.d.ts +22 -0
- package/dist/components/PrimaryDashboard/ColumnSelectorDrawer.d.ts +10 -0
- package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseChart.d.ts +21 -0
- package/dist/components/PrimaryDashboard/DbCPUActivity/CPUByDatabaseMetadata.d.ts +13 -0
- package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityDashboard.d.ts +13 -0
- package/dist/components/PrimaryDashboard/DbCPUActivity/DbCPUActivityView.d.ts +13 -0
- package/dist/components/PrimaryDashboard/DbLoadMetadata.d.ts +22 -0
- package/dist/components/PrimaryDashboard/DbNodeLoadChart.d.ts +22 -0
- package/dist/components/PrimaryDashboard/DbStatsTable/databaseStatsColumns.d.ts +51 -0
- package/dist/components/PrimaryDashboard/DbStatsTable/useDatabaseStatsTable.d.ts +62 -0
- package/dist/components/PrimaryDashboard/DetectedAnomalies.d.ts +19 -0
- package/dist/components/PrimaryDashboard/EChartsOptionsGenerator.d.ts +208 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleColumnsPicker.d.ts +9 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/BundleDetailsPanel.d.ts +6 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/ExportFormTab.d.ts +15 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/RecentExportsTab.d.ts +10 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/constants.d.ts +12 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/helpers.d.ts +9 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/index.d.ts +2 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/recentExportColumns.d.ts +16 -0
- package/dist/components/PrimaryDashboard/ExportQueriesModal/types.d.ts +43 -0
- package/dist/components/PrimaryDashboard/HistoricalQueryData.d.ts +25 -0
- package/dist/components/PrimaryDashboard/PerfAdvisorBanner.d.ts +8 -0
- package/dist/components/PrimaryDashboard/PerfAdvisorEntry.d.ts +14 -0
- package/dist/components/PrimaryDashboard/PerfAdvisorTabs.d.ts +29 -0
- package/dist/components/PrimaryDashboard/ProcessTopKData.d.ts +10 -0
- package/dist/components/PrimaryDashboard/QueryEventsChart.d.ts +7 -0
- package/dist/components/PrimaryDashboard/QueryExportDropdown.d.ts +13 -0
- package/dist/components/PrimaryDashboard/ShowMoreAnomalies.d.ts +22 -0
- package/dist/components/PrimaryDashboard/chartConfigs/clusterLoadConfig.d.ts +8 -0
- package/dist/components/PrimaryDashboard/chartConfigs/cpuByDatabaseConfig.d.ts +9 -0
- package/dist/components/PrimaryDashboard/chartConfigs/dbNodeLoadConfig.d.ts +9 -0
- package/dist/components/PrimaryDashboard/chartConfigs/index.d.ts +7 -0
- package/dist/components/PrimaryDashboard/chartConfigs/shared.d.ts +8 -0
- package/dist/components/PrimaryDashboard/chartTitles.d.ts +2 -0
- package/dist/components/PrimaryDashboard/useChartData.d.ts +29 -0
- package/dist/components/RuntimeConfigs/ResetRuntimeConfig.d.ts +14 -0
- package/dist/components/RuntimeConfigs/RuntimeConfigs.d.ts +11 -0
- package/dist/components/RuntimeConfigs/UpdateRuntimeConfig.d.ts +14 -0
- package/dist/components/SecondaryDashboard/AnomalyPossibleCause.d.ts +7 -0
- package/dist/components/SecondaryDashboard/AnomalyRouter.d.ts +30 -0
- package/dist/components/SecondaryDashboard/DrilldownView/CpuSaturationDrilldown.d.ts +17 -0
- package/dist/components/SecondaryDashboard/DrilldownView/HistoricalQueryMetricGraphGrid.d.ts +22 -0
- package/dist/components/SecondaryDashboard/DrilldownView/NodeDrilldown.d.ts +23 -0
- package/dist/components/SecondaryDashboard/DrilldownView/OtherDrilldown.d.ts +20 -0
- package/dist/components/SecondaryDashboard/DrilldownView/QPMExportButton.d.ts +8 -0
- package/dist/components/SecondaryDashboard/DrilldownView/QPMPlanSelector.d.ts +9 -0
- package/dist/components/SecondaryDashboard/DrilldownView/QueryPlanManagement.d.ts +16 -0
- package/dist/components/SecondaryDashboard/DrilldownView/SqlDrilldown.d.ts +20 -0
- package/dist/components/SecondaryDashboard/DrilldownView/TabletDrilldown.d.ts +15 -0
- package/dist/components/SecondaryDashboard/GraphView.d.ts +39 -0
- package/dist/components/SecondaryDashboard/Metadata/AnomalyRCAGraphs.d.ts +25 -0
- package/dist/components/SecondaryDashboard/Metadata/NodeLoadMetadata.d.ts +13 -0
- package/dist/components/SecondaryDashboard/Metadata/QueriesMetadata.d.ts +20 -0
- package/dist/components/SecondaryDashboard/Metadata/QueryLevelTabletMetadata.d.ts +14 -0
- package/dist/components/SecondaryDashboard/Metadata/SizeBarChart.d.ts +6 -0
- package/dist/components/SecondaryDashboard/Metadata/TabletLevelQueryMetadata.d.ts +14 -0
- package/dist/components/SecondaryDashboard/Metadata/TabletMetadata.d.ts +18 -0
- package/dist/components/SecondaryDashboard/MetricsAnalysisEntry.d.ts +13 -0
- package/dist/components/SecondaryDashboard/MetricsSelectorDrawer.d.ts +16 -0
- package/dist/components/SecondaryDashboard/ProcessGraphData.d.ts +21 -0
- package/dist/components/SecondaryDashboard/QPMGanttChart.d.ts +14 -0
- package/dist/components/SecondaryDashboard/TopKMetricsView.d.ts +20 -0
- package/dist/components/hooks/useClusterFilterState.d.ts +27 -0
- package/dist/components/hooks/usePrevious.d.ts +1 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/styles.d.ts +1 -0
- package/dist/contexts/ExportBundlesContext.d.ts +19 -0
- package/dist/esm/index.js +48536 -123936
- package/dist/esm/index.js.map +1 -1
- package/dist/helpers/anomalyRecommendationRenderer.d.ts +2 -0
- package/dist/helpers/columnPreferences.d.ts +11 -0
- package/dist/helpers/config.d.ts +2 -0
- package/dist/helpers/constants.d.ts +507 -0
- package/dist/helpers/dateUtils.d.ts +45 -0
- package/dist/helpers/downloadUtils.d.ts +72 -0
- package/dist/helpers/dtos.d.ts +861 -0
- package/dist/helpers/errorHandlingUtils.d.ts +1 -0
- package/dist/helpers/exportBundlesStorage.d.ts +47 -0
- package/dist/helpers/objectUtils.d.ts +11 -0
- package/dist/helpers/qpmStatus.d.ts +7 -0
- package/dist/helpers/utils.d.ts +240 -0
- package/dist/index.d.ts +8 -0
- package/dist/providers/YBThemeWrapper.d.ts +12 -0
- package/dist/theme/mainTheme.d.ts +14 -0
- package/dist/theme/variables.d.ts +50 -0
- package/package.json +33 -28
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/index.js.map +0 -1
- package/dist/types.d.ts +0 -1865
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { QueryPlanData } from '../../../helpers/dtos';
|
|
2
|
+
import { MetadataFieldConfig } from './MetadataField';
|
|
3
|
+
/** Builds the shared SQL metadata trio (DATABASE / QUERY TYPE / QUERY ID). */
|
|
4
|
+
export declare const buildSqlMetadataFields: (query: QueryPlanData | undefined, variant: 'anomaly' | 'historical') => MetadataFieldConfig[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AppName, PAUrlParams, InsightsTabs } from '../../helpers/dtos';
|
|
2
|
+
interface BackgroundJobsProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
universeUuid: string;
|
|
5
|
+
startTime: string | null;
|
|
6
|
+
endTime: string | null;
|
|
7
|
+
appName: AppName;
|
|
8
|
+
currentTab?: InsightsTabs;
|
|
9
|
+
onClickShowMoreAnomalies?: (category: string) => void;
|
|
10
|
+
backgroundTasksMappingFunc?: (value: string) => string;
|
|
11
|
+
onSelectedIssue?: (troubleshootUuid: string, params?: PAUrlParams) => void;
|
|
12
|
+
onTimeRangeSelect?: (start: number, end: number) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const BackgroundJobs: ({ apiUrl, endTime, appName, startTime, currentTab, universeUuid, onSelectedIssue, onClickShowMoreAnomalies, backgroundTasksMappingFunc, onTimeRangeSelect }: BackgroundJobsProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AnomalyGroup, AppName, ClusterDetails, WaitEventClassification } from '../../helpers/dtos';
|
|
2
|
+
interface ClusterOverallLoadChartProps {
|
|
3
|
+
anomalyData?: AnomalyGroup | null;
|
|
4
|
+
appName: AppName;
|
|
5
|
+
metricKey?: string;
|
|
6
|
+
shouldAbbreviateTraceName?: boolean;
|
|
7
|
+
groupByOperation: WaitEventClassification;
|
|
8
|
+
timezone?: string;
|
|
9
|
+
startTime: string | null;
|
|
10
|
+
endTime: string | null;
|
|
11
|
+
universeUuid: string;
|
|
12
|
+
isAshEnabled: boolean;
|
|
13
|
+
isAshSupported: boolean;
|
|
14
|
+
apiUrl: string;
|
|
15
|
+
dbWaitEventType: string;
|
|
16
|
+
onEChartsDateSelect: (start: number, end: number) => void;
|
|
17
|
+
onFilterBarData: (data: string[]) => void;
|
|
18
|
+
onSetGroupByOperation: (operation: WaitEventClassification) => void;
|
|
19
|
+
getClusterDetails: () => ClusterDetails;
|
|
20
|
+
}
|
|
21
|
+
export declare const ClusterOverallLoadChart: ({ anomalyData, appName, metricKey, shouldAbbreviateTraceName, groupByOperation, timezone, startTime, endTime, universeUuid, isAshEnabled, isAshSupported, apiUrl, dbWaitEventType, onEChartsDateSelect, onFilterBarData, onSetGroupByOperation, getClusterDetails }: ClusterOverallLoadChartProps) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Column } from '../../helpers/dtos';
|
|
2
|
+
interface ColumnSelectorDrawerProps {
|
|
3
|
+
hiddenColumns: string[];
|
|
4
|
+
close: () => void;
|
|
5
|
+
columns: Column[];
|
|
6
|
+
onApply: (visibility: Record<string, boolean>) => void;
|
|
7
|
+
visibleStorageKey: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ColumnSelectorDrawer: ({ columns, hiddenColumns, visibleStorageKey, onApply, close }: ColumnSelectorDrawerProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ChartConfig } from '../../../common/ChartCard';
|
|
2
|
+
import { CPU_THROTTLED_BY_DATABASE, CPU_USAGE_BY_DATABASE } from '../../../helpers/constants';
|
|
3
|
+
import { AppName, SplitMode } from '../../../helpers/dtos';
|
|
4
|
+
export type CPUByDatabaseMetric = typeof CPU_USAGE_BY_DATABASE | typeof CPU_THROTTLED_BY_DATABASE;
|
|
5
|
+
export interface CPUByDatabaseChartProps {
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
universeUuid: string;
|
|
8
|
+
appName: AppName;
|
|
9
|
+
startTime: string | null;
|
|
10
|
+
endTime: string | null;
|
|
11
|
+
timezone?: string;
|
|
12
|
+
metric: CPUByDatabaseMetric;
|
|
13
|
+
splitMode: SplitMode;
|
|
14
|
+
splitCount: number;
|
|
15
|
+
shouldAbbreviateTraceName?: boolean;
|
|
16
|
+
metricKey?: string;
|
|
17
|
+
configOverride?: Partial<ChartConfig>;
|
|
18
|
+
onEChartsDateSelect?: (start: number, end: number) => void;
|
|
19
|
+
onFilterBarData?: (data: string[]) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const CPUByDatabaseChart: ({ apiUrl, universeUuid, appName, startTime, endTime, timezone, metric, splitMode, splitCount, shouldAbbreviateTraceName, metricKey, configOverride, onEChartsDateSelect, onFilterBarData }: CPUByDatabaseChartProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppName, QueryPageParams } from '../../../helpers/dtos';
|
|
2
|
+
export interface CPUByDatabaseMetadataProps {
|
|
3
|
+
universeUuid: string;
|
|
4
|
+
apiUrl: string;
|
|
5
|
+
appName: AppName;
|
|
6
|
+
startTime: string | null;
|
|
7
|
+
endTime: string | null;
|
|
8
|
+
timezone?: string;
|
|
9
|
+
showTimezoneSelector?: boolean;
|
|
10
|
+
onSelectedQuery?: (queryId: string, params?: QueryPageParams) => void;
|
|
11
|
+
onNavigateToUrl?: (url: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const CPUByDatabaseMetadata: ({ universeUuid, apiUrl, appName, startTime, endTime, onSelectedQuery, onNavigateToUrl }: CPUByDatabaseMetadataProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppName, QueryPageParams } from '../../../helpers/dtos';
|
|
2
|
+
export interface DbCPUActivityDashboardProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
universeUuid: string;
|
|
5
|
+
appName: AppName;
|
|
6
|
+
initialFilterDuration?: string;
|
|
7
|
+
initialStartTime?: string;
|
|
8
|
+
initialEndTime?: string;
|
|
9
|
+
showTimezoneSelector?: boolean;
|
|
10
|
+
onSelectedQuery?: (queryId: string, params?: QueryPageParams) => void;
|
|
11
|
+
onNavigateToUrl?: (url: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const DbCPUActivityDashboard: ({ apiUrl, universeUuid, appName, initialFilterDuration, initialStartTime, initialEndTime, showTimezoneSelector, onSelectedQuery, onNavigateToUrl }: DbCPUActivityDashboardProps) => JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppName, QueryPageParams } from '../../../helpers/dtos';
|
|
2
|
+
export interface DbCPUActivityViewProps {
|
|
3
|
+
apiUrl: string;
|
|
4
|
+
universeUuid: string;
|
|
5
|
+
appName: AppName;
|
|
6
|
+
startTime: string | null;
|
|
7
|
+
endTime: string | null;
|
|
8
|
+
timezone?: string;
|
|
9
|
+
onEChartsDateSelect?: (start: number, end: number) => void;
|
|
10
|
+
onSelectedQuery?: (queryId: string, params?: QueryPageParams) => void;
|
|
11
|
+
onNavigateToUrl?: (url: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const DbCPUActivityView: ({ apiUrl, universeUuid, appName, startTime, endTime, timezone, onEChartsDateSelect, onSelectedQuery, onNavigateToUrl }: DbCPUActivityViewProps) => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppName, QueryPageParams, UniverseDatabaseStatsData } from '../../helpers/dtos';
|
|
2
|
+
export interface DbLoadMetadataProps {
|
|
3
|
+
dbWaitEventType: string;
|
|
4
|
+
universeUuid: string;
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
appName: AppName;
|
|
7
|
+
startTime: string | null;
|
|
8
|
+
endTime: string | null;
|
|
9
|
+
timezone?: string;
|
|
10
|
+
showTimezoneSelector?: boolean;
|
|
11
|
+
onSelectedQuery?: (queryId: string, params?: QueryPageParams) => void;
|
|
12
|
+
onNavigateToUrl?: (url: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export interface DatabaseStatsPagedResponse {
|
|
15
|
+
data: {
|
|
16
|
+
entities: UniverseDatabaseStatsData[];
|
|
17
|
+
hasNext: boolean;
|
|
18
|
+
hasPrev: boolean;
|
|
19
|
+
totalCount: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const DbLoadMetadata: ({ dbWaitEventType, universeUuid, apiUrl, appName, startTime, endTime, onSelectedQuery, onNavigateToUrl }: DbLoadMetadataProps) => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DbNodeLoadView } from './chartConfigs';
|
|
2
|
+
import { AnomalyGroup, AppName, ClusterDetails } from '../../helpers/dtos';
|
|
3
|
+
export type { DbNodeLoadView };
|
|
4
|
+
export interface DbNodeLoadChartProps {
|
|
5
|
+
view: DbNodeLoadView;
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
universeUuid: string;
|
|
8
|
+
appName: AppName;
|
|
9
|
+
startTime: string | null;
|
|
10
|
+
endTime: string | null;
|
|
11
|
+
isAshEnabled: boolean;
|
|
12
|
+
isAshSupported: boolean;
|
|
13
|
+
timezone?: string;
|
|
14
|
+
dbWaitEventType: string;
|
|
15
|
+
shouldAbbreviateTraceName?: boolean;
|
|
16
|
+
metricKey?: string;
|
|
17
|
+
anomalyData?: AnomalyGroup | null;
|
|
18
|
+
onEChartsDateSelect: (start: number, end: number) => void;
|
|
19
|
+
onFilterBarData?: (data: string[]) => void;
|
|
20
|
+
getClusterDetails: () => ClusterDetails;
|
|
21
|
+
}
|
|
22
|
+
export declare const DbNodeLoadChart: ({ view, apiUrl, universeUuid, appName, startTime, endTime, isAshEnabled, isAshSupported, timezone, dbWaitEventType, shouldAbbreviateTraceName, metricKey, anomalyData, onEChartsDateSelect, onFilterBarData, getClusterDetails }: DbNodeLoadChartProps) => JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { AppName, Column } from '../../../helpers/dtos';
|
|
2
|
+
export declare const formatPercentFromRatio: (value: unknown) => string;
|
|
3
|
+
export declare const formatSizeGB: (value: unknown) => string;
|
|
4
|
+
export declare const formatMs: (value: unknown) => string;
|
|
5
|
+
interface ColumnBaseCtx {
|
|
6
|
+
appName: AppName;
|
|
7
|
+
helperClasses: Record<string, string>;
|
|
8
|
+
display: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const makeUniverseIdColumn: () => Column;
|
|
11
|
+
export declare const makeDatabaseNameColumn: ({ appName, helperClasses, display, minWidth, maxWidth }: ColumnBaseCtx & {
|
|
12
|
+
minWidth?: string | undefined;
|
|
13
|
+
maxWidth?: string | undefined;
|
|
14
|
+
}) => Column;
|
|
15
|
+
export declare const makeConnectionsColumn: ({ appName, helperClasses, display, width, maxWidth }: ColumnBaseCtx & {
|
|
16
|
+
width?: string | undefined;
|
|
17
|
+
maxWidth?: string | undefined;
|
|
18
|
+
}) => Column;
|
|
19
|
+
export declare const makeWaitEventsColumn: ({ appName, helperClasses, display, maxEPS, label, width, maxWidth }: ColumnBaseCtx & {
|
|
20
|
+
maxEPS: number;
|
|
21
|
+
label?: string | undefined;
|
|
22
|
+
width?: string | undefined;
|
|
23
|
+
maxWidth?: string | undefined;
|
|
24
|
+
}) => Column;
|
|
25
|
+
export declare const makeTypeColumn: ({ appName, helperClasses, display }: ColumnBaseCtx) => Column;
|
|
26
|
+
export declare const makeCPURatioColumn: ({ appName, helperClasses, display }: ColumnBaseCtx) => Column;
|
|
27
|
+
export declare const makeCallsPerSecColumn: ({ appName, helperClasses, display, width }: ColumnBaseCtx & {
|
|
28
|
+
width?: string | undefined;
|
|
29
|
+
}) => Column;
|
|
30
|
+
export declare const makeEpsColumn: ({ appName, helperClasses, display }: ColumnBaseCtx) => Column;
|
|
31
|
+
export declare const makeAvgCPUColumn: ({ appName, helperClasses, display, width }: ColumnBaseCtx & {
|
|
32
|
+
width?: string | undefined;
|
|
33
|
+
}) => Column;
|
|
34
|
+
export declare const makePeakCPUColumn: ({ appName, helperClasses, display, width }: ColumnBaseCtx & {
|
|
35
|
+
width?: string | undefined;
|
|
36
|
+
}) => Column;
|
|
37
|
+
export declare const makeCPUThrottledColumn: ({ appName, helperClasses, display, width }: ColumnBaseCtx & {
|
|
38
|
+
width?: string | undefined;
|
|
39
|
+
}) => Column;
|
|
40
|
+
export declare const makeSizeColumn: ({ appName, helperClasses, display, width }: ColumnBaseCtx & {
|
|
41
|
+
width?: string | undefined;
|
|
42
|
+
}) => Column;
|
|
43
|
+
interface BuildColumnsCtx {
|
|
44
|
+
appName: AppName;
|
|
45
|
+
helperClasses: Record<string, string>;
|
|
46
|
+
}
|
|
47
|
+
export declare const buildDbLoadColumns: ({ appName, helperClasses }: BuildColumnsCtx, maxEPS: number) => Column[];
|
|
48
|
+
export declare const buildCpuByDatabaseColumns: ({ appName, helperClasses }: BuildColumnsCtx, maxEPS: number) => Column[];
|
|
49
|
+
export declare const patchEventsColumnMaxEPS: (columns: Column[], maxEPS: number) => Column[];
|
|
50
|
+
export declare const applyVisibilityPrefs: (columns: Column[], storageKey: string) => Column[];
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
import { SortDirection, UniverseDatabaseStatsData } from '../../../helpers/dtos';
|
|
3
|
+
export declare const defaultSortKeyMapper: (columnId: string) => string;
|
|
4
|
+
export interface UseDatabaseStatsTableArgs<TData = any> {
|
|
5
|
+
universeUuid: string;
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
startTime: string | null;
|
|
8
|
+
endTime: string | null;
|
|
9
|
+
/** Already-resolved wait-event-type filter. `[]` means no filter. */
|
|
10
|
+
dbWaitEventTypeFilter: string[];
|
|
11
|
+
defaultSortBy: string;
|
|
12
|
+
/** Discriminator added to the react-query key so two callers don't share a cache. */
|
|
13
|
+
queryKeyDiscriminator: string;
|
|
14
|
+
/** Maps a FE column id to the backend sortBy enum value. Defaults to {@link defaultSortKeyMapper}. */
|
|
15
|
+
sortKeyMapper?: (columnId: string) => string;
|
|
16
|
+
/** Optional projection over entities before they hit the table. */
|
|
17
|
+
transformData?: (entities: UniverseDatabaseStatsData[]) => TData[];
|
|
18
|
+
/** Column id whose top-of-page-zero value should drive maxEPS (defaults to 'eps'). */
|
|
19
|
+
epsColumnId?: string;
|
|
20
|
+
/** Pass `true` to filter out system DBs (e.g. system_platform, template0). Default `false`. */
|
|
21
|
+
excludeSystemDBs?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const useDatabaseStatsTable: <TData = any>({ universeUuid, apiUrl, startTime, endTime, dbWaitEventTypeFilter, defaultSortBy, queryKeyDiscriminator, sortKeyMapper, transformData, epsColumnId, excludeSystemDBs }: UseDatabaseStatsTableArgs<TData>) => {
|
|
24
|
+
rows: TData[];
|
|
25
|
+
totalSize: number;
|
|
26
|
+
maxEPS: number;
|
|
27
|
+
databaseList: string[];
|
|
28
|
+
database: string;
|
|
29
|
+
onDatabaseChange: (next: string | null) => void;
|
|
30
|
+
searchInputValue: string;
|
|
31
|
+
onSearchInputChange: (value: string) => void;
|
|
32
|
+
onSearchInputClear: () => void;
|
|
33
|
+
pageSize: number;
|
|
34
|
+
setPageSize: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
35
|
+
currentTablePage: number;
|
|
36
|
+
setCurrentTablePage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
37
|
+
fetchNextPage: (options?: import('react-query').FetchNextPageOptions | undefined) => Promise<import('react-query').InfiniteQueryObserverResult<import('axios').AxiosResponse<import('../../../helpers/dtos').GraphRequestParams[]>, unknown>>;
|
|
38
|
+
hasNextPage: boolean | undefined;
|
|
39
|
+
sortBy: string;
|
|
40
|
+
sortDirection: SortDirection;
|
|
41
|
+
handleColumnSortChange: (updater: any) => void;
|
|
42
|
+
isFetching: boolean;
|
|
43
|
+
isError: boolean;
|
|
44
|
+
error: AxiosError<{
|
|
45
|
+
error?: string | undefined;
|
|
46
|
+
}> | null;
|
|
47
|
+
isDatabaseListError: boolean;
|
|
48
|
+
isCallLoading: boolean;
|
|
49
|
+
customFooter: import('../../../common/YBTable/AnomaliesTableFooter').CustomFooterFunction | undefined;
|
|
50
|
+
tableState: {
|
|
51
|
+
sorting: {
|
|
52
|
+
id: string;
|
|
53
|
+
desc: boolean;
|
|
54
|
+
}[];
|
|
55
|
+
pagination: {
|
|
56
|
+
pageIndex: number;
|
|
57
|
+
pageSize: number;
|
|
58
|
+
};
|
|
59
|
+
isLoading: boolean;
|
|
60
|
+
showProgressBars: boolean;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { UseQueryResult } from 'react-query';
|
|
3
|
+
import { AppName, PAUrlParams, InsightsTabs, AnomalyResponse } from '../../helpers/dtos';
|
|
4
|
+
export interface IDetectedAnomalies {
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
appName: AppName;
|
|
7
|
+
endTime: Date | null;
|
|
8
|
+
universeUuid: string;
|
|
9
|
+
startTime: Date | null;
|
|
10
|
+
currentTab?: InsightsTabs;
|
|
11
|
+
anomalyGroupsFetchError?: string;
|
|
12
|
+
anomalyGroups: AnomalyResponse | null;
|
|
13
|
+
onClickShowMoreAnomalies: (category: string) => void;
|
|
14
|
+
fetchAnomalyGroups: UseQueryResult<AnomalyResponse, unknown>;
|
|
15
|
+
onSelectedIssue?: (troubleshootUuid: string, params?: PAUrlParams) => void;
|
|
16
|
+
onNavigateToUrl?: (url: string) => void;
|
|
17
|
+
onTimeRangeSelect?: (start: number, end: number) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const DetectedAnomalies: FC<IDetectedAnomalies>;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { AnomalyGroup, AppName, ChartType, WaitEventClassification } from '../../helpers/dtos';
|
|
2
|
+
interface PlotGraphParams {
|
|
3
|
+
shouldAbbreviateTraceName: boolean;
|
|
4
|
+
appName: AppName;
|
|
5
|
+
timezone?: string;
|
|
6
|
+
metricKey: string;
|
|
7
|
+
groupByOperation: WaitEventClassification;
|
|
8
|
+
}
|
|
9
|
+
export declare const generateEChartsOptions: (overallMetrics: any[] | null, dbWaitEventType: string, isDbClusterLoadView: boolean, isNodeClusterLoadView: boolean, chartType: ChartType, params: PlotGraphParams, anomalyData?: AnomalyGroup | null) => {
|
|
10
|
+
options: {
|
|
11
|
+
series: {
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
data: number[][];
|
|
15
|
+
showSymbol: boolean;
|
|
16
|
+
lineStyle: {
|
|
17
|
+
color: string;
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
xAxis: {
|
|
22
|
+
min: number;
|
|
23
|
+
max: number;
|
|
24
|
+
};
|
|
25
|
+
yAxis: {
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
};
|
|
29
|
+
title: {
|
|
30
|
+
text: string;
|
|
31
|
+
left: number;
|
|
32
|
+
top: number;
|
|
33
|
+
textStyle: {
|
|
34
|
+
fontWeight: number;
|
|
35
|
+
fontFamily: string;
|
|
36
|
+
fontSize: number;
|
|
37
|
+
color: string;
|
|
38
|
+
};
|
|
39
|
+
legend: {
|
|
40
|
+
data: never[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
graphic: {
|
|
44
|
+
type: string;
|
|
45
|
+
left: string;
|
|
46
|
+
top: string;
|
|
47
|
+
style: {
|
|
48
|
+
text: string;
|
|
49
|
+
fontSize: number;
|
|
50
|
+
fontWeight: number;
|
|
51
|
+
fill: string;
|
|
52
|
+
};
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
nameMapping: Record<string, string>;
|
|
56
|
+
} | {
|
|
57
|
+
options: {
|
|
58
|
+
title: {
|
|
59
|
+
text: string;
|
|
60
|
+
left: number;
|
|
61
|
+
top: number;
|
|
62
|
+
textStyle: {
|
|
63
|
+
fontWeight: number;
|
|
64
|
+
fontFamily: string;
|
|
65
|
+
fontSize: number;
|
|
66
|
+
color: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
tooltip: {
|
|
70
|
+
trigger: string;
|
|
71
|
+
appendToBody: boolean;
|
|
72
|
+
confine: boolean;
|
|
73
|
+
axisPointer: {
|
|
74
|
+
type: string;
|
|
75
|
+
shadowStyle: {
|
|
76
|
+
color: string;
|
|
77
|
+
};
|
|
78
|
+
lineStyle: {
|
|
79
|
+
color: string;
|
|
80
|
+
width: number;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
textStyle: {
|
|
84
|
+
fontFamily: string;
|
|
85
|
+
fontSize: number;
|
|
86
|
+
lineHeight: number;
|
|
87
|
+
color: string;
|
|
88
|
+
fontWeight: number;
|
|
89
|
+
};
|
|
90
|
+
extraCssText: string;
|
|
91
|
+
z: number;
|
|
92
|
+
formatter: (params: any) => string;
|
|
93
|
+
};
|
|
94
|
+
legend: {
|
|
95
|
+
textStyle: {
|
|
96
|
+
fontSize: string;
|
|
97
|
+
fontWeight: string;
|
|
98
|
+
color: string;
|
|
99
|
+
fontFamily: string;
|
|
100
|
+
rich: {
|
|
101
|
+
dashedLine: {
|
|
102
|
+
backgroundColor: {
|
|
103
|
+
image: string;
|
|
104
|
+
};
|
|
105
|
+
width: number;
|
|
106
|
+
height: number;
|
|
107
|
+
padding: number[];
|
|
108
|
+
lineHeight: number;
|
|
109
|
+
};
|
|
110
|
+
thickLine: {
|
|
111
|
+
backgroundColor: string;
|
|
112
|
+
width: number;
|
|
113
|
+
height: number;
|
|
114
|
+
borderWidth: number;
|
|
115
|
+
borderColor: string;
|
|
116
|
+
borderType: string;
|
|
117
|
+
padding: number[];
|
|
118
|
+
lineHeight: number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
data: any;
|
|
123
|
+
formatter: (name: string) => string;
|
|
124
|
+
symbolSize: number;
|
|
125
|
+
itemStyle: {
|
|
126
|
+
borderColor: string;
|
|
127
|
+
borderWidth: number;
|
|
128
|
+
};
|
|
129
|
+
itemGap: number;
|
|
130
|
+
left?: string | undefined;
|
|
131
|
+
top?: string | undefined;
|
|
132
|
+
width?: string | undefined;
|
|
133
|
+
height?: string | undefined;
|
|
134
|
+
type: string;
|
|
135
|
+
tooltip: {
|
|
136
|
+
show: boolean;
|
|
137
|
+
formatter: (params: {
|
|
138
|
+
name: string;
|
|
139
|
+
}) => string | null;
|
|
140
|
+
};
|
|
141
|
+
orient: string;
|
|
142
|
+
bottom: string | number;
|
|
143
|
+
};
|
|
144
|
+
grid: {
|
|
145
|
+
left: string;
|
|
146
|
+
right: string;
|
|
147
|
+
top: string;
|
|
148
|
+
bottom: string;
|
|
149
|
+
containLabel: boolean;
|
|
150
|
+
};
|
|
151
|
+
xAxis: {
|
|
152
|
+
type: string;
|
|
153
|
+
axisLabel: {
|
|
154
|
+
color: string;
|
|
155
|
+
textStyle: {
|
|
156
|
+
fontFamily: string;
|
|
157
|
+
fontSize: number;
|
|
158
|
+
};
|
|
159
|
+
formatter: (value: number) => string;
|
|
160
|
+
};
|
|
161
|
+
axisLine: {
|
|
162
|
+
lineStyle: {
|
|
163
|
+
color: string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
yAxis: {
|
|
168
|
+
type: string;
|
|
169
|
+
name: string;
|
|
170
|
+
nameLocation: string;
|
|
171
|
+
nameGap: number;
|
|
172
|
+
nameTextStyle: {
|
|
173
|
+
fontWeight: string;
|
|
174
|
+
fontFamily: string;
|
|
175
|
+
fontSize: number;
|
|
176
|
+
color: string;
|
|
177
|
+
rotate: number;
|
|
178
|
+
align: string;
|
|
179
|
+
};
|
|
180
|
+
axisLine: {
|
|
181
|
+
lineStyle: {
|
|
182
|
+
color: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
axisLabel: {
|
|
186
|
+
color: string;
|
|
187
|
+
textStyle: {
|
|
188
|
+
fontFamily: string;
|
|
189
|
+
fontSize: number;
|
|
190
|
+
};
|
|
191
|
+
precision: number;
|
|
192
|
+
};
|
|
193
|
+
splitNumber: number;
|
|
194
|
+
max: number;
|
|
195
|
+
};
|
|
196
|
+
series: any;
|
|
197
|
+
toolbox: {
|
|
198
|
+
show: boolean;
|
|
199
|
+
};
|
|
200
|
+
brush: {
|
|
201
|
+
toolbox: string[];
|
|
202
|
+
xAxisIndex: number;
|
|
203
|
+
yAxisIndex: number;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
nameMapping: Record<string, string>;
|
|
207
|
+
};
|
|
208
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BundleColumnKey, BundleColumnSelection } from '../../../helpers/downloadUtils';
|
|
2
|
+
import { QpmDisabledReason } from '../../../helpers/qpmStatus';
|
|
3
|
+
interface BundleColumnsPickerProps {
|
|
4
|
+
columns: BundleColumnSelection;
|
|
5
|
+
onToggle: (key: BundleColumnKey, checked: boolean) => void;
|
|
6
|
+
qpmDisabledReason: QpmDisabledReason | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const BundleColumnsPicker: ({ columns, onToggle, qpmDisabledReason }: BundleColumnsPickerProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { FormState } from './types';
|
|
3
|
+
import { QpmDisabledReason } from '../../../helpers/qpmStatus';
|
|
4
|
+
interface ExportFormTabProps {
|
|
5
|
+
form: FormState;
|
|
6
|
+
setForm: Dispatch<SetStateAction<FormState>>;
|
|
7
|
+
totalCount: number;
|
|
8
|
+
databaseList?: string[];
|
|
9
|
+
selectedQueryKeys: string[];
|
|
10
|
+
onClearSelection?: () => void;
|
|
11
|
+
isInvalid: boolean;
|
|
12
|
+
qpmDisabledReason: QpmDisabledReason | null;
|
|
13
|
+
}
|
|
14
|
+
export declare const ExportFormTab: ({ form, setForm, totalCount, databaseList, selectedQueryKeys, onClearSelection, isInvalid, qpmDisabledReason }: ExportFormTabProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ExportBundle } from '../../../contexts/ExportBundlesContext';
|
|
2
|
+
interface RecentExportsTabProps {
|
|
3
|
+
bundles: ExportBundle[];
|
|
4
|
+
onSave: (id: string) => void;
|
|
5
|
+
onCancel: (id: string) => void;
|
|
6
|
+
onRetry: (id: string) => void;
|
|
7
|
+
onRemove: (id: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const RecentExportsTab: ({ bundles, onSave, onCancel, onRetry, onRemove }: RecentExportsTabProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const MAX_TOPN = 500;
|
|
2
|
+
export declare const DEFAULT_TOPN = 10;
|
|
3
|
+
export declare const ALL_DATABASES = "All";
|
|
4
|
+
export declare const ALL_QUERY_TYPES = "ALL";
|
|
5
|
+
export declare const QUERY_TYPE_OPTIONS: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const SORT_BY_OPTIONS: {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BundleStatus } from '../../../helpers/exportBundlesStorage';
|
|
2
|
+
export interface StatusChipStyle {
|
|
3
|
+
bg: string;
|
|
4
|
+
fg: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const statusChipStyle: (status: BundleStatus) => StatusChipStyle;
|
|
8
|
+
export declare const formatCreatedAt: (ts: number) => string;
|
|
9
|
+
export declare const formatRange: (start: string | null, end: string | null) => string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ExportQueriesModalProps } from './types';
|
|
2
|
+
export declare const ExportQueriesModal: ({ open, onClose, totalCount, currentSortBy, currentSortDirection, universeUuid, apiUrl, appName, startTime, endTime, searchInput, database, databaseList, queryType, showSystemQueries, selectedQueryKeys, onClearSelection, qpmSupported, qpmEnabled }: ExportQueriesModalProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { YBTableColumn } from '@yugabyte-ui-library/core';
|
|
2
|
+
import { ExportBundle } from '../../../contexts/ExportBundlesContext';
|
|
3
|
+
interface ColumnHeaderClasses {
|
|
4
|
+
headerBox: string;
|
|
5
|
+
headerText: string;
|
|
6
|
+
}
|
|
7
|
+
interface ColumnCallbacks {
|
|
8
|
+
bundles: ExportBundle[];
|
|
9
|
+
helperClasses: ColumnHeaderClasses;
|
|
10
|
+
onSave: (id: string) => void;
|
|
11
|
+
onCancel: (id: string) => void;
|
|
12
|
+
onRetry: (id: string) => void;
|
|
13
|
+
onRemove: (id: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const recentExportColumns: (cb: ColumnCallbacks) => YBTableColumn[];
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AppName, SortDirection } from '../../../helpers/dtos';
|
|
2
|
+
import { BundleColumnSelection, BundleFormat, SourceMode } from '../../../helpers/downloadUtils';
|
|
3
|
+
export declare const TabKey: {
|
|
4
|
+
readonly NEW: "new";
|
|
5
|
+
readonly RECENT: "recent";
|
|
6
|
+
};
|
|
7
|
+
export type TabKey = typeof TabKey[keyof typeof TabKey];
|
|
8
|
+
export interface FormState {
|
|
9
|
+
topN: number;
|
|
10
|
+
topNText: string;
|
|
11
|
+
format: BundleFormat;
|
|
12
|
+
columns: BundleColumnSelection;
|
|
13
|
+
source: SourceMode;
|
|
14
|
+
localStartTime: string | null;
|
|
15
|
+
localEndTime: string | null;
|
|
16
|
+
localSearch: string;
|
|
17
|
+
localDatabase: string;
|
|
18
|
+
localQueryType: string;
|
|
19
|
+
localSortBy: string;
|
|
20
|
+
localSortDirection: SortDirection;
|
|
21
|
+
localShowSystemQueries: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ExportQueriesModalProps {
|
|
24
|
+
open: boolean;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
totalCount: number;
|
|
27
|
+
currentSortBy: string;
|
|
28
|
+
currentSortDirection: SortDirection;
|
|
29
|
+
universeUuid: string;
|
|
30
|
+
apiUrl: string;
|
|
31
|
+
appName: AppName;
|
|
32
|
+
startTime: string | null;
|
|
33
|
+
endTime: string | null;
|
|
34
|
+
searchInput: string;
|
|
35
|
+
database: string;
|
|
36
|
+
databaseList?: string[];
|
|
37
|
+
queryType: string | null;
|
|
38
|
+
showSystemQueries: boolean;
|
|
39
|
+
selectedQueryKeys: string[];
|
|
40
|
+
onClearSelection?: () => void;
|
|
41
|
+
qpmSupported: boolean;
|
|
42
|
+
qpmEnabled: boolean;
|
|
43
|
+
}
|