ydb-embedded-ui 5.2.1 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BasicNodeViewer/BasicNodeViewer.js +1 -1
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.d.ts +13 -0
- package/dist/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.js +32 -0
- package/dist/components/CellWithPopover/CellWithPopover.js +1 -11
- package/dist/components/ClipboardButton/ClipboardButton.js +1 -11
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/ComponentsProvider/componentsRegistry.d.ts +1 -1
- package/dist/components/ComponentsProvider/registry.d.ts +3 -3
- package/dist/components/ContentWithPopup/ContentWithPopup.js +1 -11
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +6 -4
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +32 -7
- package/dist/components/CriticalActionDialog/CriticalActionDialog.scss +8 -19
- package/dist/components/CriticalActionDialog/i18n/en.json +7 -0
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -0
- package/dist/components/CriticalActionDialog/i18n/index.js +4 -0
- package/dist/components/EnableFullscreenButton/EnableFullscreenButton.js +2 -2
- package/dist/components/EntityStatus/EntityStatus.d.ts +20 -37
- package/dist/components/EntityStatus/EntityStatus.js +17 -66
- package/dist/components/EntityStatus/EntityStatus.scss +1 -57
- package/dist/components/Errors/403/AccessDenied.js +1 -11
- package/dist/components/FormattedBytes/FormattedBytes.d.ts +1 -1
- package/dist/components/FormattedBytes/FormattedBytes.js +1 -11
- package/dist/components/FormattedBytes/utils.d.ts +1 -1
- package/dist/components/Fullscreen/Fullscreen.js +11 -11
- package/dist/components/Illustration/Illustration.js +1 -11
- package/dist/components/InfoViewer/InfoViewer.d.ts +2 -2
- package/dist/components/InfoViewer/InfoViewer.js +1 -1
- package/dist/components/InfoViewer/formatters/cdcStream.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/common.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/pqGroup.d.ts +3 -3
- package/dist/components/InfoViewer/formatters/schema.d.ts +1 -1
- package/dist/components/InfoViewer/formatters/table.d.ts +4 -4
- package/dist/components/InfoViewer/utils.d.ts +3 -3
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.d.ts +7 -0
- package/dist/components/InfoViewerSkeleton/InfoViewerSkeleton.js +7 -0
- package/dist/{containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss → components/InfoViewerSkeleton/InfoViewerSkeleton.scss} +1 -9
- package/dist/components/InternalLink/InternalLink.js +1 -11
- package/dist/components/LinkToSchemaObject/LinkToSchemaObject.js +1 -11
- package/dist/components/LinkWithIcon/LinkWithIcon.d.ts +8 -0
- package/dist/components/LinkWithIcon/LinkWithIcon.js +14 -0
- package/dist/components/{ExternalLinkWithIcon/ExternalLinkWithIcon.scss → LinkWithIcon/LinkWithIcon.scss} +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricChart/MetricChart.js +17 -7
- package/dist/components/MetricChart/colors.d.ts +2 -0
- package/dist/components/MetricChart/colors.js +21 -0
- package/dist/components/MetricChart/getChartData.d.ts +2 -1
- package/dist/components/MetricChart/getChartData.js +2 -2
- package/dist/components/MetricChart/getDefaultDataFormatter.d.ts +1 -1
- package/dist/components/MetricChart/getDefaultDataFormatter.js +9 -0
- package/dist/components/MetricChart/i18n/en.json +3 -0
- package/dist/components/MetricChart/i18n/index.d.ts +2 -0
- package/dist/components/MetricChart/i18n/index.js +4 -0
- package/dist/components/MetricChart/reducer.d.ts +1 -1
- package/dist/components/MetricChart/types.d.ts +10 -5
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.d.ts +11 -0
- package/dist/components/PDiskInfo/PDiskInfo.js +71 -0
- package/dist/components/PDiskInfo/PDiskInfo.scss +8 -0
- package/dist/components/PDiskInfo/i18n/en.json +14 -0
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -0
- package/dist/components/PDiskInfo/i18n/index.js +4 -0
- package/dist/components/PageMeta/PageMeta.d.ts +8 -0
- package/dist/components/PageMeta/PageMeta.js +7 -0
- package/dist/components/PageMeta/PageMeta.scss +10 -0
- package/dist/components/ProgressViewer/ProgressViewer.d.ts +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +2 -2
- package/dist/components/QueryResultTable/QueryResultTable.js +1 -11
- package/dist/components/ShortyString/ShortyString.d.ts +1 -1
- package/dist/components/StatusIcon/StatusIcon.d.ts +12 -0
- package/dist/components/StatusIcon/StatusIcon.js +23 -0
- package/dist/components/StatusIcon/StatusIcon.scss +69 -0
- package/dist/components/Tablet/Tablet.scss +1 -1
- package/dist/components/TabletsOverall/TabletsOverall.js +6 -6
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/UsageLabel/UsageLabel.js +1 -11
- package/dist/components/VirtualTable/TableHead.js +2 -2
- package/dist/components/VirtualTable/reducer.d.ts +2 -2
- package/dist/components/VirtualTable/types.d.ts +13 -13
- package/dist/components/slots/types.d.ts +1 -1
- package/dist/containers/App/App.d.ts +1 -1
- package/dist/containers/App/Content.js +10 -4
- package/dist/containers/App/Providers.d.ts +1 -1
- package/dist/containers/App/appSlots.d.ts +6 -0
- package/dist/containers/App/appSlots.js +1 -0
- package/dist/containers/AppWithClusters/AppWithClusters.d.ts +1 -1
- package/dist/containers/AppWithClusters/AppWithClusters.js +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -3
- package/dist/containers/Authentication/Authentication.js +2 -5
- package/dist/containers/Cluster/Cluster.js +4 -5
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +1 -1
- package/dist/containers/Cluster/utils.d.ts +2 -2
- package/dist/containers/Clusters/Clusters.js +2 -4
- package/dist/containers/Clusters/Clusters.scss +1 -1
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Clusters/useClustersList.js +2 -2
- package/dist/containers/Clusters/useSelectedColumns.d.ts +1 -1
- package/dist/containers/Header/Header.js +4 -5
- package/dist/containers/Header/breadcrumbs.js +28 -5
- package/dist/containers/Header/i18n/en.json +7 -0
- package/dist/containers/Header/i18n/index.d.ts +1 -0
- package/dist/containers/Header/i18n/index.js +4 -0
- package/dist/containers/Heatmap/Heatmap.js +3 -4
- package/dist/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.js +1 -1
- package/dist/containers/Node/Node.js +2 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.d.ts +0 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +2 -6
- package/dist/containers/Node/NodeStructure/Pdisk.js +9 -65
- package/dist/containers/Node/NodeStructure/Vdisk.d.ts +1 -1
- package/dist/containers/Node/NodeStructure/Vdisk.js +5 -3
- package/dist/containers/Nodes/Nodes.js +2 -3
- package/dist/containers/Nodes/NodesWrapper.js +1 -11
- package/dist/containers/Nodes/getNodes.js +1 -11
- package/dist/containers/Nodes/getNodesColumns.d.ts +1 -1
- package/dist/containers/PDisk/PDisk.d.ts +3 -0
- package/dist/containers/PDisk/PDisk.js +86 -0
- package/dist/containers/PDisk/PDisk.scss +42 -0
- package/dist/containers/PDisk/PDiskGroups.d.ts +10 -0
- package/dist/containers/PDisk/PDiskGroups.js +20 -0
- package/dist/containers/PDisk/i18n/en.json +8 -0
- package/dist/containers/PDisk/i18n/index.d.ts +1 -0
- package/dist/containers/PDisk/i18n/index.js +4 -0
- package/dist/containers/PDisk/shared.d.ts +10 -0
- package/dist/containers/PDisk/shared.js +2 -0
- package/dist/containers/ReduxTooltip/ReduxTooltip.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +3 -2
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.d.ts +1 -9
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.js +2 -12
- package/dist/containers/Storage/PDisk/PDisk.d.ts +3 -3
- package/dist/containers/Storage/PDisk/PDisk.js +6 -53
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.d.ts +3 -3
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.js +3 -14
- package/dist/containers/Storage/Storage.js +2 -3
- package/dist/containers/Storage/StorageGroups/getGroups.js +1 -11
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.d.ts +2 -1
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.js +22 -8
- package/dist/containers/Storage/StorageNodes/getNodes.js +1 -11
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js +1 -1
- package/dist/containers/Storage/StorageWrapper.js +1 -11
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +1 -1
- package/dist/containers/Storage/VDisk/VDisk.d.ts +2 -3
- package/dist/containers/Storage/VDisk/VDisk.js +4 -64
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.js +2 -12
- package/dist/containers/Storage/VirtualStorage.js +2 -3
- package/dist/containers/Storage/utils/index.d.ts +1 -3
- package/dist/containers/Storage/utils/index.js +0 -6
- package/dist/containers/Tablet/Tablet.js +4 -5
- package/dist/containers/Tablet/TabletControls/TabletControls.d.ts +3 -2
- package/dist/containers/Tablet/TabletControls/TabletControls.js +2 -49
- package/dist/containers/Tablet/TabletTable/TabletTable.js +1 -1
- package/dist/containers/Tablets/Tablets.js +2 -3
- package/dist/containers/TabletsFilters/TabletsFilters.d.ts +2 -2
- package/dist/containers/Tenant/Acl/Acl.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +3 -3
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +6 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Network/Network.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.js +7 -5
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +9 -5
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Partitions/columns/columns.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.d.ts +5 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/DefaultOverviewContent.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckDetails.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.js +3 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +3 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/cpuDashboardConfig.js +11 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.d.ts +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +6 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.js +1 -11
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/useHealthcheck.js +3 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +2 -5
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -3
- package/dist/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.js +1 -1
- package/dist/containers/Tenant/Info/ExternalTable/ExternalTable.js +3 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.d.ts +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +3 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +2 -3
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +2 -3
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +3 -3
- package/dist/containers/Tenant/Query/Issues/models.d.ts +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +2 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +2 -3
- package/dist/containers/Tenant/Query/Query.js +2 -3
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +3 -8
- package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +4 -0
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +17 -0
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +4 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +2 -2
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +5 -3
- package/dist/containers/Tenant/Tenant.js +24 -8
- package/dist/containers/Tenant/utils/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +12 -12
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenants/Tenants.js +3 -4
- package/dist/containers/UserSettings/Setting.d.ts +1 -1
- package/dist/containers/UserSettings/i18n/en.json +4 -0
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +4 -1
- package/dist/containers/UserSettings/settings.js +21 -6
- package/dist/containers/Versions/NodesTable/NodesTable.js +1 -1
- package/dist/containers/Versions/Versions.js +2 -3
- package/dist/reportWebVitals.d.ts +1 -1
- package/dist/routes.d.ts +5 -2
- package/dist/routes.js +6 -1
- package/dist/services/api.d.ts +9 -7
- package/dist/services/api.js +16 -13
- package/dist/services/settings.d.ts +1 -1
- package/dist/services/settings.js +2 -1
- package/dist/store/configureStore.d.ts +310 -0
- package/dist/store/configureStore.js +56 -0
- package/dist/store/defaultStore.d.ts +168 -0
- package/dist/store/defaultStore.js +2 -0
- package/dist/store/getUrlData.d.ts +3 -3
- package/dist/store/getUrlData.js +4 -4
- package/dist/store/index.d.ts +3 -97
- package/dist/store/index.js +2 -49
- package/dist/store/reducers/authentication/authentication.d.ts +247 -4
- package/dist/store/reducers/authentication/types.d.ts +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +83 -2
- package/dist/store/reducers/cluster/types.d.ts +3 -3
- package/dist/store/reducers/clusterNodes/clusterNodes.d.ts +83 -2
- package/dist/store/reducers/clusterNodes/types.d.ts +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +83 -2
- package/dist/store/reducers/clusters/selectors.d.ts +20 -6
- package/dist/store/reducers/clusters/selectors.js +1 -1
- package/dist/store/reducers/clusters/types.d.ts +1 -1
- package/dist/store/reducers/describe.d.ts +165 -3
- package/dist/store/reducers/describe.js +4 -3
- package/dist/store/reducers/executeQuery.d.ts +83 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +3 -3
- package/dist/store/reducers/executeTopQueries/types.d.ts +1 -1
- package/dist/store/reducers/explainQuery.d.ts +165 -3
- package/dist/store/reducers/header/header.d.ts +1 -1
- package/dist/store/reducers/header/types.d.ts +7 -4
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +101 -0
- package/dist/store/reducers/{healthcheckInfo.js → healthcheckInfo/healthcheckInfo.js} +2 -2
- package/dist/store/reducers/healthcheckInfo/types.d.ts +19 -0
- package/dist/store/reducers/healthcheckInfo/utils.d.ts +3 -0
- package/dist/store/reducers/healthcheckInfo/utils.js +11 -0
- package/dist/store/reducers/heatmap.d.ts +83 -2
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/host.d.ts +83 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +1 -1
- package/dist/store/reducers/hotKeys/types.d.ts +1 -1
- package/dist/store/reducers/index.d.ts +95 -45
- package/dist/store/reducers/index.js +4 -2
- package/dist/store/reducers/network/network.d.ts +83 -2
- package/dist/store/reducers/network/types.d.ts +1 -1
- package/dist/store/reducers/node/node.d.ts +165 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/node/selectors.js +5 -4
- package/dist/store/reducers/node/types.d.ts +6 -6
- package/dist/store/reducers/nodes/nodes.d.ts +165 -3
- package/dist/store/reducers/nodes/nodes.js +1 -11
- package/dist/store/reducers/nodes/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/selectors.js +1 -1
- package/dist/store/reducers/nodes/types.d.ts +4 -3
- package/dist/store/reducers/nodes/utils.d.ts +1 -1
- package/dist/store/reducers/nodesList.d.ts +83 -2
- package/dist/store/reducers/olapStats.d.ts +83 -2
- package/dist/store/reducers/overview/overview.d.ts +166 -4
- package/dist/store/reducers/overview/overview.js +3 -3
- package/dist/store/reducers/overview/types.d.ts +6 -5
- package/dist/store/reducers/partitions/partitions.d.ts +83 -2
- package/dist/store/reducers/partitions/types.d.ts +1 -1
- package/dist/store/reducers/partitions/utils.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +210 -0
- package/dist/store/reducers/pdisk/pdisk.js +64 -0
- package/dist/store/reducers/pdisk/types.d.ts +23 -0
- package/dist/store/reducers/pdisk/types.js +1 -0
- package/dist/store/reducers/pdisk/utils.d.ts +32 -0
- package/dist/store/reducers/pdisk/utils.js +32 -0
- package/dist/store/reducers/preview.d.ts +82 -1
- package/dist/store/reducers/saveQuery.d.ts +3 -3
- package/dist/store/reducers/schema/schema.d.ts +84 -4
- package/dist/store/reducers/schema/schema.js +4 -4
- package/dist/store/reducers/schema/types.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +83 -2
- package/dist/store/reducers/schemaAcl/types.d.ts +1 -1
- package/dist/store/reducers/settings/settings.d.ts +2 -2
- package/dist/store/reducers/settings/types.d.ts +3 -3
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +83 -2
- package/dist/store/reducers/shardsWorkload/types.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +1 -1
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +165 -3
- package/dist/store/reducers/storage/storage.js +1 -11
- package/dist/store/reducers/storage/types.d.ts +10 -10
- package/dist/store/reducers/storage/utils.d.ts +4 -2
- package/dist/store/reducers/storage/utils.js +21 -15
- package/dist/store/reducers/tablet.d.ts +165 -3
- package/dist/store/reducers/tablet.js +1 -1
- package/dist/store/reducers/tablets.d.ts +83 -2
- package/dist/store/reducers/tabletsFilters.d.ts +101 -2
- package/dist/store/reducers/tabletsFilters.js +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +83 -2
- package/dist/store/reducers/tenant/types.d.ts +6 -6
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/executeTopTables/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByCpu/topNodesByCpu.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByCpu/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByLoad/topNodesByLoad.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByLoad/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topNodesByMemory/topNodesByMemory.js +1 -11
- package/dist/store/reducers/tenantOverview/topNodesByMemory/types.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topQueries/tenantOverviewTopQueries.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topQueries/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topShards/types.d.ts +1 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +83 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +1 -11
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.js +1 -1
- package/dist/store/reducers/tenants/tenants.d.ts +83 -2
- package/dist/store/reducers/tenants/types.d.ts +2 -2
- package/dist/store/reducers/tenants/utils.d.ts +6 -6
- package/dist/store/reducers/tooltip.d.ts +4 -3
- package/dist/store/reducers/tooltip.js +2 -4
- package/dist/store/reducers/topic.d.ts +83 -3
- package/dist/store/reducers/topic.js +1 -1
- package/dist/store/state-url-mapping.d.ts +5 -3
- package/dist/store/state-url-mapping.js +9 -18
- package/dist/store/utils.d.ts +4 -4
- package/dist/types/additionalProps.d.ts +2 -2
- package/dist/types/api/enums.d.ts +1 -0
- package/dist/types/api/enums.js +1 -0
- package/dist/types/api/error.d.ts +1 -1
- package/dist/types/api/nodes.d.ts +1 -1
- package/dist/types/api/nodesList.d.ts +1 -1
- package/dist/types/api/query.d.ts +19 -19
- package/dist/types/api/render.d.ts +6 -3
- package/dist/types/api/storage.d.ts +1 -1
- package/dist/types/api/tablet.d.ts +1 -1
- package/dist/types/common.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/describe.d.ts +3 -3
- package/dist/types/store/executeQuery.d.ts +2 -2
- package/dist/types/store/explainQuery.d.ts +3 -3
- package/dist/types/store/heatmap.d.ts +3 -3
- package/dist/types/store/host.d.ts +1 -1
- package/dist/types/store/nodesList.d.ts +2 -2
- package/dist/types/store/olapStats.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -5
- package/dist/types/store/tablet.d.ts +3 -3
- package/dist/types/store/tablets.d.ts +2 -2
- package/dist/types/store/tooltip.d.ts +3 -5
- package/dist/types/store/topic.d.ts +1 -1
- package/dist/types/versions.d.ts +2 -2
- package/dist/utils/additionalProps.d.ts +1 -1
- package/dist/utils/additionalProps.js +1 -1
- package/dist/utils/bytesParsers/formatBytes.d.ts +2 -2
- package/dist/utils/bytesParsers/formatBytes.js +1 -11
- package/dist/utils/clusterVersionColors.d.ts +1 -1
- package/dist/utils/clusterVersionColors.js +2 -2
- package/dist/utils/constants.d.ts +2 -1
- package/dist/utils/constants.js +5 -4
- package/dist/utils/dataFormatters/dataFormatters.d.ts +12 -11
- package/dist/utils/developerUI/developerUI.d.ts +1 -1
- package/dist/utils/diagnostics.d.ts +2 -2
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculatePDiskSeverity.test.js +36 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.d.ts +1 -0
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +142 -0
- package/dist/utils/disks/calculatePDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculatePDiskSeverity.js +18 -0
- package/dist/utils/disks/calculateVDiskSeverity.d.ts +2 -0
- package/dist/utils/disks/calculateVDiskSeverity.js +36 -0
- package/dist/utils/disks/constants.d.ts +25 -0
- package/dist/utils/disks/constants.js +38 -0
- package/dist/utils/disks/getPDiskType.d.ts +7 -0
- package/dist/utils/{pdisk.js → disks/getPDiskType.js} +13 -15
- package/dist/utils/disks/helpers.d.ts +3 -0
- package/dist/utils/disks/helpers.js +10 -0
- package/dist/utils/disks/prepareDisks.d.ts +5 -0
- package/dist/utils/disks/prepareDisks.js +40 -0
- package/dist/utils/disks/types.d.ts +15 -0
- package/dist/utils/disks/types.js +1 -0
- package/dist/utils/hooks/index.d.ts +1 -0
- package/dist/utils/hooks/index.js +1 -0
- package/dist/utils/hooks/useSetting.js +2 -2
- package/dist/utils/hooks/useTableResize.d.ts +3 -3
- package/dist/utils/hooks/useTableSort.d.ts +1 -1
- package/dist/utils/hooks/useTypedDispatch.d.ts +2 -0
- package/dist/utils/hooks/useTypedDispatch.js +2 -0
- package/dist/utils/hooks/useTypedSelector.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/monaco.d.ts +1 -0
- package/dist/utils/monaco.js +14 -0
- package/dist/utils/monitoring.d.ts +3 -3
- package/dist/utils/nodes.d.ts +2 -2
- package/dist/utils/prepareBackend.d.ts +2 -2
- package/dist/utils/query.d.ts +2 -2
- package/dist/utils/query.js +1 -11
- package/dist/utils/storage.d.ts +1 -3
- package/dist/utils/storage.js +0 -1
- package/dist/utils/tablet.d.ts +1 -1
- package/dist/utils/timeframes.d.ts +1 -1
- package/dist/utils/typecheckers.d.ts +1 -0
- package/dist/utils/versions/getVersionsColors.d.ts +1 -1
- package/dist/utils/versions/getVersionsColors.js +2 -2
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/yqlSuggestions/constants.d.ts +7 -0
- package/dist/utils/yqlSuggestions/constants.js +696 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.d.ts +27 -0
- package/dist/utils/yqlSuggestions/generateSuggestions.js +252 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.d.ts +4 -0
- package/dist/utils/yqlSuggestions/yqlSuggestions.js +76 -0
- package/package.json +16 -11
- package/dist/assets/icons/flask.svg +0 -3
- package/dist/assets/icons/star.svg +0 -1
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.d.ts +0 -7
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.js +0 -9
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.d.ts +0 -7
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.js +0 -7
- package/dist/containers/Storage/utils/constants.d.ts +0 -2
- package/dist/containers/Storage/utils/constants.js +0 -2
- package/dist/store/reducers/healthcheckInfo.d.ts +0 -21
- package/dist/types/store/healthcheck.d.ts +0 -20
- package/dist/utils/pdisk.d.ts +0 -17
- /package/dist/{types/store/healthcheck.js → store/reducers/healthcheckInfo/types.js} +0 -0
@@ -1,21 +1,20 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
2
|
import type { IResponseError } from '../../../types/api/error';
|
3
3
|
import type { TSystemStateInfo } from '../../../types/api/nodes';
|
4
|
-
import type { TPDiskStateInfo } from '../../../types/api/pdisk';
|
5
4
|
import type { EVersion, TStorageGroupInfo } from '../../../types/api/storage';
|
6
|
-
import type {
|
5
|
+
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
7
6
|
import type { ValueOf } from '../../../types/common';
|
8
7
|
import type { NodesSortValue, NodesUptimeFilterValues } from '../../../utils/nodes';
|
9
8
|
import type { StorageSortValue } from '../../../utils/storage';
|
10
9
|
import type { ApiRequestAction } from '../../utils';
|
11
10
|
import { STORAGE_TYPES, VISIBLE_ENTITIES } from './constants';
|
12
11
|
import { FETCH_STORAGE, setDataWasNotLoaded, setGroupsSortParams, setInitialState, setNodesSortParams, setNodesUptimeFilter, setStorageTextFilter, setStorageType, setUsageFilter, setVisibleEntities } from './storage';
|
13
|
-
export
|
14
|
-
export
|
12
|
+
export type VisibleEntities = ValueOf<typeof VISIBLE_ENTITIES>;
|
13
|
+
export type StorageType = ValueOf<typeof STORAGE_TYPES>;
|
15
14
|
export interface PreparedStorageNode extends TSystemStateInfo {
|
16
15
|
NodeId: number;
|
17
|
-
PDisks
|
18
|
-
VDisks
|
16
|
+
PDisks?: PreparedPDisk[];
|
17
|
+
VDisks?: PreparedVDisk[];
|
19
18
|
DC?: string;
|
20
19
|
Rack?: string;
|
21
20
|
Missing: number;
|
@@ -29,8 +28,9 @@ export interface PreparedStorageGroup extends TStorageGroupInfo {
|
|
29
28
|
Used: number;
|
30
29
|
Limit: number;
|
31
30
|
Degraded: number;
|
32
|
-
Kind
|
31
|
+
Kind?: string;
|
33
32
|
UsedSpaceFlag: number;
|
33
|
+
VDisks?: PreparedVDisk[];
|
34
34
|
}
|
35
35
|
export interface UsageFilter {
|
36
36
|
threshold: number;
|
@@ -47,7 +47,7 @@ export interface StorageSortAndFilterParams extends StorageSortParams {
|
|
47
47
|
}
|
48
48
|
export interface StorageApiRequestParams extends StorageSortAndFilterParams {
|
49
49
|
tenant?: string;
|
50
|
-
nodeId?: string;
|
50
|
+
nodeId?: string | number;
|
51
51
|
visibleEntities?: VisibleEntities;
|
52
52
|
version?: EVersion;
|
53
53
|
}
|
@@ -75,8 +75,8 @@ export interface PreparedStorageResponse {
|
|
75
75
|
found: number | undefined;
|
76
76
|
total: number | undefined;
|
77
77
|
}
|
78
|
-
|
79
|
-
export
|
78
|
+
type GetStorageInfoApiRequestAction = ApiRequestAction<typeof FETCH_STORAGE, PreparedStorageResponse, IResponseError>;
|
79
|
+
export type StorageAction = GetStorageInfoApiRequestAction | ReturnType<typeof setInitialState> | ReturnType<typeof setStorageType> | ReturnType<typeof setStorageTextFilter> | ReturnType<typeof setUsageFilter> | ReturnType<typeof setVisibleEntities> | ReturnType<typeof setNodesUptimeFilter> | ReturnType<typeof setDataWasNotLoaded> | ReturnType<typeof setNodesSortParams> | ReturnType<typeof setGroupsSortParams>;
|
80
80
|
export interface StorageStateSlice {
|
81
81
|
storage: StorageState;
|
82
82
|
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import type { TNodesInfo } from '../../../types/api/nodes';
|
2
|
-
import type { TStorageGroupInfoV2, TStorageInfo, TStoragePoolInfo } from '../../../types/api/storage';
|
2
|
+
import type { TStorageGroupInfo, TStorageGroupInfoV2, TStorageInfo, TStoragePoolInfo } from '../../../types/api/storage';
|
3
3
|
import type { PreparedStorageGroup, PreparedStorageResponse } from './types';
|
4
|
-
export declare const
|
4
|
+
export declare const prepareStorageGroupData: (group: TStorageGroupInfo, poolName?: string) => PreparedStorageGroup;
|
5
|
+
export declare const prepareStorageGroupDataV2: (group: TStorageGroupInfoV2) => PreparedStorageGroup;
|
6
|
+
export declare const prepareStorageGroups: (StorageGroups?: TStorageGroupInfoV2[], StoragePools?: TStoragePoolInfo[]) => PreparedStorageGroup[];
|
5
7
|
export declare const prepareStorageNodesResponse: (data: TNodesInfo) => PreparedStorageResponse;
|
6
8
|
export declare const prepareStorageGroupsResponse: (data: TStorageInfo) => PreparedStorageResponse;
|
@@ -1,11 +1,14 @@
|
|
1
1
|
import { EVDiskState } from '../../../types/api/vdisk';
|
2
2
|
import { TPDiskState } from '../../../types/api/pdisk';
|
3
3
|
import { EFlag } from '../../../types/api/enums';
|
4
|
-
import {
|
4
|
+
import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
|
5
5
|
import { getUsage } from '../../../utils/storage';
|
6
6
|
import { prepareNodeSystemState } from '../../../utils/nodes';
|
7
7
|
// ==== Constants ====
|
8
|
+
// Do not count Grey and Blue statuses in used space severity calculations
|
8
9
|
const FLAGS_POINTS = {
|
10
|
+
[EFlag.Grey]: 0,
|
11
|
+
[EFlag.Blue]: 0,
|
9
12
|
[EFlag.Green]: 1,
|
10
13
|
[EFlag.Yellow]: 100,
|
11
14
|
[EFlag.Orange]: 10000,
|
@@ -14,10 +17,11 @@ const FLAGS_POINTS = {
|
|
14
17
|
// ==== Prepare groups ====
|
15
18
|
const prepareVDisk = (vDisk, poolName) => {
|
16
19
|
var _a;
|
20
|
+
const preparedVDisk = prepareVDiskData(vDisk);
|
17
21
|
// VDisk doesn't have its own StoragePoolName when located inside StoragePool data
|
18
|
-
return Object.assign(Object.assign({},
|
22
|
+
return Object.assign(Object.assign({}, preparedVDisk), { StoragePoolName: poolName, Donors: (_a = preparedVDisk === null || preparedVDisk === void 0 ? void 0 : preparedVDisk.Donors) === null || _a === void 0 ? void 0 : _a.map((donor) => (Object.assign(Object.assign({}, donor), { StoragePoolName: poolName }))) });
|
19
23
|
};
|
20
|
-
const prepareStorageGroupData = (group, poolName) => {
|
24
|
+
export const prepareStorageGroupData = (group, poolName) => {
|
21
25
|
var _a;
|
22
26
|
let missing = 0;
|
23
27
|
let usedSpaceFlag = 0;
|
@@ -29,32 +33,28 @@ const prepareStorageGroupData = (group, poolName) => {
|
|
29
33
|
if (group.VDisks) {
|
30
34
|
for (const vDisk of group.VDisks) {
|
31
35
|
const { Replicated, VDiskState, AvailableSize, AllocatedSize, PDisk, DiskSpace, ReadThroughput, WriteThroughput, } = vDisk;
|
32
|
-
|
33
|
-
|
34
|
-
VDiskState !== EVDiskState.OK) {
|
36
|
+
const { Type: PDiskType, State: PDiskState, AvailableSize: PDiskAvailableSize, } = preparePDiskData(PDisk);
|
37
|
+
if (!Replicated || PDiskState !== TPDiskState.Normal || VDiskState !== EVDiskState.OK) {
|
35
38
|
missing += 1;
|
36
39
|
}
|
37
|
-
if (DiskSpace
|
40
|
+
if (DiskSpace) {
|
38
41
|
usedSpaceFlag += FLAGS_POINTS[DiskSpace];
|
39
42
|
}
|
40
|
-
const available = Number(AvailableSize !== null && AvailableSize !== void 0 ? AvailableSize :
|
43
|
+
const available = Number(AvailableSize !== null && AvailableSize !== void 0 ? AvailableSize : PDiskAvailableSize) || 0;
|
41
44
|
const allocated = Number(AllocatedSize) || 0;
|
42
45
|
usedSpaceBytes += allocated;
|
43
46
|
limitSizeBytes += available + allocated;
|
44
47
|
readSpeedBytesPerSec += Number(ReadThroughput) || 0;
|
45
48
|
writeSpeedBytesPerSec += Number(WriteThroughput) || 0;
|
46
|
-
const currentType = getPDiskType(PDisk || {});
|
47
49
|
mediaType =
|
48
|
-
|
49
|
-
? currentType
|
50
|
-
: 'Mixed';
|
50
|
+
PDiskType && (PDiskType === mediaType || mediaType === '') ? PDiskType : 'Mixed';
|
51
51
|
}
|
52
52
|
}
|
53
53
|
const vDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.map((vdisk) => prepareVDisk(vdisk, poolName));
|
54
54
|
const usage = getUsage({ Used: usedSpaceBytes, Limit: limitSizeBytes }, 5);
|
55
55
|
return Object.assign(Object.assign({}, group), { VDisks: vDisks, Usage: usage, Read: readSpeedBytesPerSec, Write: writeSpeedBytesPerSec, PoolName: poolName, Used: usedSpaceBytes, Limit: limitSizeBytes, Degraded: missing, UsedSpaceFlag: usedSpaceFlag, Kind: mediaType || undefined });
|
56
56
|
};
|
57
|
-
const prepareStorageGroupDataV2 = (group) => {
|
57
|
+
export const prepareStorageGroupDataV2 = (group) => {
|
58
58
|
const { VDisks = [], PoolName, Usage = 0, Read = 0, Write = 0, Used = 0, Limit = 0, Degraded = 0, Kind, } = group;
|
59
59
|
const UsedSpaceFlag = VDisks.reduce((acc, { DiskSpace }) => {
|
60
60
|
if (DiskSpace && DiskSpace !== EFlag.Grey) {
|
@@ -85,11 +85,17 @@ export const prepareStorageGroups = (StorageGroups, StoragePools) => {
|
|
85
85
|
};
|
86
86
|
// ==== Prepare nodes ====
|
87
87
|
const prepareStorageNodeData = (node) => {
|
88
|
-
var _a;
|
88
|
+
var _a, _b, _c;
|
89
89
|
const missing = ((_a = node.PDisks) === null || _a === void 0 ? void 0 : _a.filter((pDisk) => {
|
90
90
|
return pDisk.State !== TPDiskState.Normal;
|
91
91
|
}).length) || 0;
|
92
|
-
|
92
|
+
const pDisks = (_b = node.PDisks) === null || _b === void 0 ? void 0 : _b.map((pDisk) => {
|
93
|
+
return Object.assign(Object.assign({}, preparePDiskData(pDisk)), { NodeId: node.NodeId });
|
94
|
+
});
|
95
|
+
const vDisks = (_c = node.VDisks) === null || _c === void 0 ? void 0 : _c.map((vDisk) => {
|
96
|
+
return Object.assign(Object.assign({}, prepareVDiskData(vDisk)), { NodeId: node.NodeId });
|
97
|
+
});
|
98
|
+
return Object.assign(Object.assign({}, prepareNodeSystemState(node.SystemState)), { NodeId: node.NodeId, PDisks: pDisks, VDisks: vDisks, Missing: missing });
|
93
99
|
};
|
94
100
|
// ==== Prepare responses ====
|
95
101
|
export const prepareStorageNodesResponse = (data) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Reducer } from '
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { TDomainKey } from '../../types/api/tablet';
|
3
3
|
import type { ITabletAction, ITabletDescribeHandledResponse, ITabletHandledResponse, ITabletState } from '../../types/store/tablet';
|
4
4
|
export declare const FETCH_TABLET: {
|
@@ -12,8 +12,170 @@ export declare const FETCH_TABLET_DESCRIBE: {
|
|
12
12
|
readonly FAILURE: "TABLET/FETCH_TABLET_DESCRIBE_FAILURE";
|
13
13
|
};
|
14
14
|
declare const tablet: Reducer<ITabletState, ITabletAction>;
|
15
|
-
export declare const getTablet: (id: string) => (dispatch: import("redux").Dispatch<import("redux").
|
16
|
-
|
15
|
+
export declare const getTablet: (id: string) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
16
|
+
singleClusterMode: boolean;
|
17
|
+
nodes: import("./nodes/types").NodesState;
|
18
|
+
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
19
|
+
topNodesByCpu: import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
20
|
+
topNodesByMemory: import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
21
|
+
cluster: import("./cluster/types").ClusterState;
|
22
|
+
clusterNodes: import("./clusterNodes/types").ClusterNodesState;
|
23
|
+
tenant: import("./tenant/types").TenantState;
|
24
|
+
storage: import("./storage/types").StorageState;
|
25
|
+
topStorageGroups: import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
26
|
+
node: import("./node/types").NodeState;
|
27
|
+
tooltip: import("../../types/store/tooltip").ITooltipState;
|
28
|
+
tablets: import("../../types/store/tablets").ITabletsState;
|
29
|
+
schema: import("./schema/types").SchemaState;
|
30
|
+
overview: import("./overview/types").OverviewState;
|
31
|
+
olapStats: import("../../types/store/olapStats").OlapStatsState;
|
32
|
+
host: import("../../types/store/host").IHostState;
|
33
|
+
network: import("./network/types").NetworkState;
|
34
|
+
tenants: import("./tenants/types").TenantsState;
|
35
|
+
tablet: ITabletState;
|
36
|
+
topic: import("../../types/store/topic").ITopicState;
|
37
|
+
partitions: import("./partitions/types").PartitionsState;
|
38
|
+
pDisk: import("./pdisk/types").PDiskState;
|
39
|
+
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
40
|
+
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
41
|
+
tabletsFilters: {
|
42
|
+
loading: boolean;
|
43
|
+
requestTime: number;
|
44
|
+
data: undefined;
|
45
|
+
wasLoaded: boolean;
|
46
|
+
stateFilter: never[];
|
47
|
+
typeFilter: never[];
|
48
|
+
} | {
|
49
|
+
tabletsData: any;
|
50
|
+
nodes: any;
|
51
|
+
loading: boolean;
|
52
|
+
wasLoaded: boolean;
|
53
|
+
timeoutForRequest: number;
|
54
|
+
error: undefined;
|
55
|
+
data: undefined;
|
56
|
+
stateFilter: never[];
|
57
|
+
typeFilter: never[];
|
58
|
+
} | {
|
59
|
+
error: any;
|
60
|
+
loading: boolean;
|
61
|
+
data: undefined;
|
62
|
+
wasLoaded: boolean;
|
63
|
+
stateFilter: never[];
|
64
|
+
typeFilter: never[];
|
65
|
+
} | {
|
66
|
+
stateFilter: any;
|
67
|
+
data: undefined;
|
68
|
+
loading: boolean;
|
69
|
+
wasLoaded: boolean;
|
70
|
+
typeFilter: never[];
|
71
|
+
} | {
|
72
|
+
typeFilter: any;
|
73
|
+
data: undefined;
|
74
|
+
loading: boolean;
|
75
|
+
wasLoaded: boolean;
|
76
|
+
stateFilter: never[];
|
77
|
+
};
|
78
|
+
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
79
|
+
settings: import("./settings/types").SettingsState;
|
80
|
+
preview: any;
|
81
|
+
nodesList: import("../../types/store/nodesList").NodesListState;
|
82
|
+
describe: import("../../types/store/describe").IDescribeState;
|
83
|
+
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
84
|
+
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
85
|
+
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
86
|
+
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
87
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
88
|
+
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
89
|
+
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
90
|
+
hotKeys: import("./hotKeys/types").HotKeysState;
|
91
|
+
authentication: import("./authentication/types").AuthenticationState;
|
92
|
+
header: import("./header/types").HeaderState;
|
93
|
+
saveQuery: string | null;
|
94
|
+
fullscreen: boolean;
|
95
|
+
clusters: import("./clusters/types").ClustersState;
|
96
|
+
}) => Promise<ITabletHandledResponse | undefined>;
|
97
|
+
export declare const getTabletDescribe: (tenantId?: TDomainKey) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
98
|
+
singleClusterMode: boolean;
|
99
|
+
nodes: import("./nodes/types").NodesState;
|
100
|
+
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
101
|
+
topNodesByCpu: import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
102
|
+
topNodesByMemory: import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
103
|
+
cluster: import("./cluster/types").ClusterState;
|
104
|
+
clusterNodes: import("./clusterNodes/types").ClusterNodesState;
|
105
|
+
tenant: import("./tenant/types").TenantState;
|
106
|
+
storage: import("./storage/types").StorageState;
|
107
|
+
topStorageGroups: import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
108
|
+
node: import("./node/types").NodeState;
|
109
|
+
tooltip: import("../../types/store/tooltip").ITooltipState;
|
110
|
+
tablets: import("../../types/store/tablets").ITabletsState;
|
111
|
+
schema: import("./schema/types").SchemaState;
|
112
|
+
overview: import("./overview/types").OverviewState;
|
113
|
+
olapStats: import("../../types/store/olapStats").OlapStatsState;
|
114
|
+
host: import("../../types/store/host").IHostState;
|
115
|
+
network: import("./network/types").NetworkState;
|
116
|
+
tenants: import("./tenants/types").TenantsState;
|
117
|
+
tablet: ITabletState;
|
118
|
+
topic: import("../../types/store/topic").ITopicState;
|
119
|
+
partitions: import("./partitions/types").PartitionsState;
|
120
|
+
pDisk: import("./pdisk/types").PDiskState;
|
121
|
+
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
122
|
+
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
123
|
+
tabletsFilters: {
|
124
|
+
loading: boolean;
|
125
|
+
requestTime: number;
|
126
|
+
data: undefined;
|
127
|
+
wasLoaded: boolean;
|
128
|
+
stateFilter: never[];
|
129
|
+
typeFilter: never[];
|
130
|
+
} | {
|
131
|
+
tabletsData: any;
|
132
|
+
nodes: any;
|
133
|
+
loading: boolean;
|
134
|
+
wasLoaded: boolean;
|
135
|
+
timeoutForRequest: number;
|
136
|
+
error: undefined;
|
137
|
+
data: undefined;
|
138
|
+
stateFilter: never[];
|
139
|
+
typeFilter: never[];
|
140
|
+
} | {
|
141
|
+
error: any;
|
142
|
+
loading: boolean;
|
143
|
+
data: undefined;
|
144
|
+
wasLoaded: boolean;
|
145
|
+
stateFilter: never[];
|
146
|
+
typeFilter: never[];
|
147
|
+
} | {
|
148
|
+
stateFilter: any;
|
149
|
+
data: undefined;
|
150
|
+
loading: boolean;
|
151
|
+
wasLoaded: boolean;
|
152
|
+
typeFilter: never[];
|
153
|
+
} | {
|
154
|
+
typeFilter: any;
|
155
|
+
data: undefined;
|
156
|
+
loading: boolean;
|
157
|
+
wasLoaded: boolean;
|
158
|
+
stateFilter: never[];
|
159
|
+
};
|
160
|
+
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
161
|
+
settings: import("./settings/types").SettingsState;
|
162
|
+
preview: any;
|
163
|
+
nodesList: import("../../types/store/nodesList").NodesListState;
|
164
|
+
describe: import("../../types/store/describe").IDescribeState;
|
165
|
+
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
166
|
+
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
167
|
+
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
168
|
+
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
169
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
170
|
+
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
171
|
+
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
172
|
+
hotKeys: import("./hotKeys/types").HotKeysState;
|
173
|
+
authentication: import("./authentication/types").AuthenticationState;
|
174
|
+
header: import("./header/types").HeaderState;
|
175
|
+
saveQuery: string | null;
|
176
|
+
fullscreen: boolean;
|
177
|
+
clusters: import("./clusters/types").ClustersState;
|
178
|
+
}) => Promise<ITabletDescribeHandledResponse | undefined>;
|
17
179
|
export declare const clearTabletData: () => {
|
18
180
|
readonly type: "tablet/CLEAR_TABLET_DATA";
|
19
181
|
};
|
@@ -72,7 +72,7 @@ export const getTabletDescribe = (tenantId = {}) => {
|
|
72
72
|
actions: FETCH_TABLET_DESCRIBE,
|
73
73
|
dataHandler: (tabletDescribe) => {
|
74
74
|
const { SchemeShard, PathId } = tenantId;
|
75
|
-
const tenantPath = tabletDescribe.Path || `${SchemeShard}:${PathId}`;
|
75
|
+
const tenantPath = (tabletDescribe === null || tabletDescribe === void 0 ? void 0 : tabletDescribe.Path) || `${SchemeShard}:${PathId}`;
|
76
76
|
return { tenantPath };
|
77
77
|
},
|
78
78
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Reducer } from '
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { ETabletState, EType } from '../../types/api/tablet';
|
3
3
|
import type { ITabletsAction, ITabletsApiRequestParams, ITabletsState } from '../../types/store/tablets';
|
4
4
|
export declare const FETCH_TABLETS: {
|
@@ -18,5 +18,86 @@ export declare const setTypeFilter: (typeFilter: EType[]) => {
|
|
18
18
|
export declare const clearWasLoadingFlag: () => {
|
19
19
|
readonly type: "tablets/CLEAR_WAS_LOADING_TABLETS";
|
20
20
|
};
|
21
|
-
export declare function getTabletsInfo(data: ITabletsApiRequestParams): (dispatch: import("redux").Dispatch<import("redux").
|
21
|
+
export declare function getTabletsInfo(data: ITabletsApiRequestParams): (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
22
|
+
singleClusterMode: boolean;
|
23
|
+
nodes: import("./nodes/types").NodesState;
|
24
|
+
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
25
|
+
topNodesByCpu: import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
26
|
+
topNodesByMemory: import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
27
|
+
cluster: import("./cluster/types").ClusterState;
|
28
|
+
clusterNodes: import("./clusterNodes/types").ClusterNodesState;
|
29
|
+
tenant: import("./tenant/types").TenantState;
|
30
|
+
storage: import("./storage/types").StorageState;
|
31
|
+
topStorageGroups: import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
32
|
+
node: import("./node/types").NodeState;
|
33
|
+
tooltip: import("../../types/store/tooltip").ITooltipState;
|
34
|
+
tablets: ITabletsState;
|
35
|
+
schema: import("./schema/types").SchemaState;
|
36
|
+
overview: import("./overview/types").OverviewState;
|
37
|
+
olapStats: import("../../types/store/olapStats").OlapStatsState;
|
38
|
+
host: import("../../types/store/host").IHostState;
|
39
|
+
network: import("./network/types").NetworkState;
|
40
|
+
tenants: import("./tenants/types").TenantsState;
|
41
|
+
tablet: import("../../types/store/tablet").ITabletState;
|
42
|
+
topic: import("../../types/store/topic").ITopicState;
|
43
|
+
partitions: import("./partitions/types").PartitionsState;
|
44
|
+
pDisk: import("./pdisk/types").PDiskState;
|
45
|
+
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
46
|
+
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
47
|
+
tabletsFilters: {
|
48
|
+
loading: boolean;
|
49
|
+
requestTime: number;
|
50
|
+
data: undefined;
|
51
|
+
wasLoaded: boolean;
|
52
|
+
stateFilter: never[];
|
53
|
+
typeFilter: never[];
|
54
|
+
} | {
|
55
|
+
tabletsData: any;
|
56
|
+
nodes: any;
|
57
|
+
loading: boolean;
|
58
|
+
wasLoaded: boolean;
|
59
|
+
timeoutForRequest: number;
|
60
|
+
error: undefined;
|
61
|
+
data: undefined;
|
62
|
+
stateFilter: never[];
|
63
|
+
typeFilter: never[];
|
64
|
+
} | {
|
65
|
+
error: any;
|
66
|
+
loading: boolean;
|
67
|
+
data: undefined;
|
68
|
+
wasLoaded: boolean;
|
69
|
+
stateFilter: never[];
|
70
|
+
typeFilter: never[];
|
71
|
+
} | {
|
72
|
+
stateFilter: any;
|
73
|
+
data: undefined;
|
74
|
+
loading: boolean;
|
75
|
+
wasLoaded: boolean;
|
76
|
+
typeFilter: never[];
|
77
|
+
} | {
|
78
|
+
typeFilter: any;
|
79
|
+
data: undefined;
|
80
|
+
loading: boolean;
|
81
|
+
wasLoaded: boolean;
|
82
|
+
stateFilter: never[];
|
83
|
+
};
|
84
|
+
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
85
|
+
settings: import("./settings/types").SettingsState;
|
86
|
+
preview: any;
|
87
|
+
nodesList: import("../../types/store/nodesList").NodesListState;
|
88
|
+
describe: import("../../types/store/describe").IDescribeState;
|
89
|
+
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
90
|
+
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
91
|
+
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
92
|
+
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
93
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
94
|
+
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
95
|
+
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
96
|
+
hotKeys: import("./hotKeys/types").HotKeysState;
|
97
|
+
authentication: import("./authentication/types").AuthenticationState;
|
98
|
+
header: import("./header/types").HeaderState;
|
99
|
+
saveQuery: string | null;
|
100
|
+
fullscreen: boolean;
|
101
|
+
clusters: import("./clusters/types").ClustersState;
|
102
|
+
}) => Promise<unknown>;
|
22
103
|
export default tablets;
|
@@ -1,4 +1,85 @@
|
|
1
|
-
export function getTabletsInfo(data: any): (dispatch: import("redux").Dispatch<import("redux").
|
1
|
+
export function getTabletsInfo(data: any): (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
2
|
+
singleClusterMode: boolean;
|
3
|
+
nodes: import("./nodes/types").NodesState;
|
4
|
+
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
5
|
+
topNodesByCpu: import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
6
|
+
topNodesByMemory: import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
7
|
+
cluster: import("./cluster/types").ClusterState;
|
8
|
+
clusterNodes: import("./clusterNodes/types").ClusterNodesState;
|
9
|
+
tenant: import("./tenant/types").TenantState;
|
10
|
+
storage: import("./storage/types").StorageState;
|
11
|
+
topStorageGroups: import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
12
|
+
node: import("./node/types").NodeState;
|
13
|
+
tooltip: import("../../types/store/tooltip").ITooltipState;
|
14
|
+
tablets: import("../../types/store/tablets").ITabletsState;
|
15
|
+
schema: import("./schema/types").SchemaState;
|
16
|
+
overview: import("./overview/types").OverviewState;
|
17
|
+
olapStats: import("../../types/store/olapStats").OlapStatsState;
|
18
|
+
host: import("../../types/store/host").IHostState;
|
19
|
+
network: import("./network/types").NetworkState;
|
20
|
+
tenants: import("./tenants/types").TenantsState;
|
21
|
+
tablet: import("../../types/store/tablet").ITabletState;
|
22
|
+
topic: import("../../types/store/topic").ITopicState;
|
23
|
+
partitions: import("./partitions/types").PartitionsState;
|
24
|
+
pDisk: import("./pdisk/types").PDiskState;
|
25
|
+
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
26
|
+
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
27
|
+
tabletsFilters: {
|
28
|
+
loading: boolean;
|
29
|
+
requestTime: number;
|
30
|
+
data: undefined;
|
31
|
+
wasLoaded: boolean;
|
32
|
+
stateFilter: never[];
|
33
|
+
typeFilter: never[];
|
34
|
+
} | {
|
35
|
+
tabletsData: any;
|
36
|
+
nodes: any;
|
37
|
+
loading: boolean;
|
38
|
+
wasLoaded: boolean;
|
39
|
+
timeoutForRequest: number;
|
40
|
+
error: undefined;
|
41
|
+
data: undefined;
|
42
|
+
stateFilter: never[];
|
43
|
+
typeFilter: never[];
|
44
|
+
} | {
|
45
|
+
error: any;
|
46
|
+
loading: boolean;
|
47
|
+
data: undefined;
|
48
|
+
wasLoaded: boolean;
|
49
|
+
stateFilter: never[];
|
50
|
+
typeFilter: never[];
|
51
|
+
} | {
|
52
|
+
stateFilter: any;
|
53
|
+
data: undefined;
|
54
|
+
loading: boolean;
|
55
|
+
wasLoaded: boolean;
|
56
|
+
typeFilter: never[];
|
57
|
+
} | {
|
58
|
+
typeFilter: any;
|
59
|
+
data: undefined;
|
60
|
+
loading: boolean;
|
61
|
+
wasLoaded: boolean;
|
62
|
+
stateFilter: never[];
|
63
|
+
};
|
64
|
+
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
65
|
+
settings: import("./settings/types").SettingsState;
|
66
|
+
preview: any;
|
67
|
+
nodesList: import("../../types/store/nodesList").NodesListState;
|
68
|
+
describe: import("../../types/store/describe").IDescribeState;
|
69
|
+
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
70
|
+
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
71
|
+
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
72
|
+
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
73
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
74
|
+
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
75
|
+
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
76
|
+
hotKeys: import("./hotKeys/types").HotKeysState;
|
77
|
+
authentication: import("./authentication/types").AuthenticationState;
|
78
|
+
header: import("./header/types").HeaderState;
|
79
|
+
saveQuery: string | null;
|
80
|
+
fullscreen: boolean;
|
81
|
+
clusters: import("./clusters/types").ClustersState;
|
82
|
+
}) => Promise<any>;
|
2
83
|
export function clearWasLoadingFlag(): {
|
3
84
|
type: string;
|
4
85
|
};
|
@@ -11,8 +92,26 @@ export function setTypeFilter(typeFilter: any): {
|
|
11
92
|
data: any;
|
12
93
|
};
|
13
94
|
export function getTablets(state: any): any;
|
14
|
-
export const getFilteredTablets: ((state:
|
95
|
+
export const getFilteredTablets: ((state: any) => any) & {
|
15
96
|
clearCache: () => void;
|
97
|
+
resultsCount: () => number;
|
98
|
+
resetResultsCount: () => void;
|
99
|
+
} & {
|
100
|
+
resultFunc: (resultFuncArgs_0: any, resultFuncArgs_1: any, resultFuncArgs_2: any) => any;
|
101
|
+
memoizedResultFunc: ((resultFuncArgs_0: any, resultFuncArgs_1: any, resultFuncArgs_2: any) => any) & {
|
102
|
+
clearCache: () => void;
|
103
|
+
resultsCount: () => number;
|
104
|
+
resetResultsCount: () => void;
|
105
|
+
};
|
106
|
+
lastResult: () => any;
|
107
|
+
dependencies: [(state: any) => any, (state: any) => any, (state: any) => any];
|
108
|
+
recomputations: () => number;
|
109
|
+
resetRecomputations: () => void;
|
110
|
+
dependencyRecomputations: () => number;
|
111
|
+
resetDependencyRecomputations: () => void;
|
112
|
+
} & {
|
113
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
114
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
16
115
|
};
|
17
116
|
export default tabletsFilters;
|
18
117
|
declare function tabletsFilters(state: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createSelector } from '
|
1
|
+
import { createSelector } from '@reduxjs/toolkit';
|
2
2
|
import { createRequestActionTypes, createApiRequest } from '../utils';
|
3
3
|
import { AUTO_RELOAD_INTERVAL } from '../../utils/constants';
|
4
4
|
const FETCH_TABLETS_FILTERS = createRequestActionTypes('tabletsFilters', 'FETCH_TABLETS_FILTERS');
|