@yugabytedb/perf-advisor-ui 1.0.134 → 1.0.136
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 +23 -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 +30 -0
- package/dist/components/PrimaryDashboard/ProcessTopKData.d.ts +11 -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 +17 -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 +21 -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 +48571 -124378
- 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 +543 -0
- package/dist/helpers/dateUtils.d.ts +45 -0
- package/dist/helpers/downloadUtils.d.ts +72 -0
- package/dist/helpers/dtos.d.ts +862 -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 +34 -28
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/index.js.map +0 -1
- package/dist/types.d.ts +0 -1870
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { QueryPlanEntry } from './dtos';
|
|
2
|
+
export declare const BundleFormat: {
|
|
3
|
+
readonly MARKDOWN: "markdown";
|
|
4
|
+
readonly JSON: "json";
|
|
5
|
+
readonly CSV: "csv";
|
|
6
|
+
};
|
|
7
|
+
export type BundleFormat = typeof BundleFormat[keyof typeof BundleFormat];
|
|
8
|
+
export declare const SourceMode: {
|
|
9
|
+
readonly FILTERS: "filters";
|
|
10
|
+
readonly SELECTED: "selected";
|
|
11
|
+
};
|
|
12
|
+
export type SourceMode = typeof SourceMode[keyof typeof SourceMode];
|
|
13
|
+
export interface DownloadColumn {
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const getQuerySortLabel: (sortBy: string) => string;
|
|
18
|
+
export declare const buildTimestampedFilename: (base: string, ext: 'csv' | 'json' | 'md') => string;
|
|
19
|
+
export type BundleColumnKey = 'queryId' | 'query' | 'queryType' | 'namespaceName' | 'databaseId' | 'eps' | 'totalEpsRatio' | 'latencyAvg' | 'latencyP90' | 'latencyP99' | 'totalTime' | 'rps' | 'rowsAvg' | 'firstActive' | 'lastActive' | 'explainPlan';
|
|
20
|
+
export interface BundleColumn {
|
|
21
|
+
key: BundleColumnKey;
|
|
22
|
+
label: string;
|
|
23
|
+
group: 'query' | 'plan';
|
|
24
|
+
defaultOn: boolean;
|
|
25
|
+
locked?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const BUNDLE_COLUMNS: BundleColumn[];
|
|
28
|
+
export type BundleColumnSelection = Record<BundleColumnKey, boolean>;
|
|
29
|
+
export declare const defaultBundleColumnSelection: () => BundleColumnSelection;
|
|
30
|
+
export interface BundleQueryRow {
|
|
31
|
+
queryId: string;
|
|
32
|
+
databaseId?: string;
|
|
33
|
+
query?: string;
|
|
34
|
+
queryType?: string;
|
|
35
|
+
namespaceName?: string;
|
|
36
|
+
eps?: number;
|
|
37
|
+
totalEpsRatio?: number;
|
|
38
|
+
latencyAvg?: number;
|
|
39
|
+
latencyP90?: number;
|
|
40
|
+
latencyP99?: number;
|
|
41
|
+
totalTime?: number;
|
|
42
|
+
rps?: number;
|
|
43
|
+
rowsAvg?: number;
|
|
44
|
+
firstActive?: string;
|
|
45
|
+
lastActive?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface BundleMeta {
|
|
48
|
+
exportedAt: string;
|
|
49
|
+
timeRange?: {
|
|
50
|
+
start?: string | null;
|
|
51
|
+
end?: string | null;
|
|
52
|
+
};
|
|
53
|
+
source: SourceMode;
|
|
54
|
+
queryCountTotal: number;
|
|
55
|
+
}
|
|
56
|
+
export interface BuildExportBundleBlobParams {
|
|
57
|
+
queries: BundleQueryRow[];
|
|
58
|
+
plansByQueryId?: Record<string, QueryPlanEntry[]>;
|
|
59
|
+
columns: BundleColumnSelection;
|
|
60
|
+
format: BundleFormat;
|
|
61
|
+
meta: BundleMeta;
|
|
62
|
+
}
|
|
63
|
+
export declare const buildBundleMarkdown: (params: BuildExportBundleBlobParams) => string;
|
|
64
|
+
export declare const buildBundleJson: (params: BuildExportBundleBlobParams) => string;
|
|
65
|
+
export declare const buildBundleCsv: (params: BuildExportBundleBlobParams) => string;
|
|
66
|
+
export declare const buildExportBundleBlob: (params: BuildExportBundleBlobParams) => {
|
|
67
|
+
blob: Blob;
|
|
68
|
+
filename: string;
|
|
69
|
+
mime: string;
|
|
70
|
+
};
|
|
71
|
+
export declare const downloadBlob: (blob: Blob, filename: string) => void;
|
|
72
|
+
export declare const queryStatsToBundleRows: (entities: unknown[]) => BundleQueryRow[];
|