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
@@ -2,16 +2,17 @@ import type { ApiRequestAction } from '../../utils';
|
|
2
2
|
import type { IResponseError } from '../../../types/api/error';
|
3
3
|
import type { TEvDescribeSchemeResult } from '../../../types/api/schema';
|
4
4
|
import { FETCH_OVERVIEW, setDataWasNotLoaded, setCurrentOverviewPath } from './overview';
|
5
|
+
import { Nullable } from '../../../utils/typecheckers';
|
5
6
|
export interface OverviewState {
|
6
7
|
loading: boolean;
|
7
8
|
wasLoaded: boolean;
|
8
9
|
currentOverviewPath?: string;
|
9
|
-
data?: TEvDescribeSchemeResult
|
10
|
-
additionalData?: TEvDescribeSchemeResult[];
|
10
|
+
data?: Nullable<TEvDescribeSchemeResult>;
|
11
|
+
additionalData?: Nullable<TEvDescribeSchemeResult>[];
|
11
12
|
error?: IResponseError;
|
12
13
|
}
|
13
14
|
export interface OverviewHandledResponse {
|
14
|
-
data: TEvDescribeSchemeResult
|
15
|
-
additionalData?: TEvDescribeSchemeResult[];
|
15
|
+
data: Nullable<TEvDescribeSchemeResult>;
|
16
|
+
additionalData?: Nullable<TEvDescribeSchemeResult>[];
|
16
17
|
}
|
17
|
-
export
|
18
|
+
export type OverviewAction = ApiRequestAction<typeof FETCH_OVERVIEW, OverviewHandledResponse, IResponseError> | ReturnType<typeof setCurrentOverviewPath> | ReturnType<typeof setDataWasNotLoaded>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Reducer } from '
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
2
|
import type { PartitionsAction, PartitionsState } from './types';
|
3
3
|
export declare const FETCH_PARTITIONS: {
|
4
4
|
readonly REQUEST: "partitions/FETCH_PARTITIONS_REQUEST";
|
@@ -13,5 +13,86 @@ export declare const setSelectedConsumer: (value: string) => {
|
|
13
13
|
export declare const setDataWasNotLoaded: () => {
|
14
14
|
readonly type: "partitions/SET_DATA_WAS_NOT_LOADED";
|
15
15
|
};
|
16
|
-
export declare function getPartitions(path: string, consumerName?: string): (dispatch: import("redux").Dispatch<import("redux").
|
16
|
+
export declare function getPartitions(path: string, consumerName?: string): (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
17
|
+
singleClusterMode: boolean;
|
18
|
+
nodes: import("../nodes/types").NodesState;
|
19
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
20
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
21
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
22
|
+
cluster: import("../cluster/types").ClusterState;
|
23
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
24
|
+
tenant: import("../tenant/types").TenantState;
|
25
|
+
storage: import("../storage/types").StorageState;
|
26
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
27
|
+
node: import("../node/types").NodeState;
|
28
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
29
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
30
|
+
schema: import("../schema/types").SchemaState;
|
31
|
+
overview: import("../overview/types").OverviewState;
|
32
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
33
|
+
host: import("../../../types/store/host").IHostState;
|
34
|
+
network: import("../network/types").NetworkState;
|
35
|
+
tenants: import("../tenants/types").TenantsState;
|
36
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
37
|
+
topic: import("../../../types/store/topic").ITopicState;
|
38
|
+
partitions: PartitionsState;
|
39
|
+
pDisk: import("../pdisk/types").PDiskState;
|
40
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
41
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
42
|
+
tabletsFilters: {
|
43
|
+
loading: boolean;
|
44
|
+
requestTime: number;
|
45
|
+
data: undefined;
|
46
|
+
wasLoaded: boolean;
|
47
|
+
stateFilter: never[];
|
48
|
+
typeFilter: never[];
|
49
|
+
} | {
|
50
|
+
tabletsData: any;
|
51
|
+
nodes: any;
|
52
|
+
loading: boolean;
|
53
|
+
wasLoaded: boolean;
|
54
|
+
timeoutForRequest: number;
|
55
|
+
error: undefined;
|
56
|
+
data: undefined;
|
57
|
+
stateFilter: never[];
|
58
|
+
typeFilter: never[];
|
59
|
+
} | {
|
60
|
+
error: any;
|
61
|
+
loading: boolean;
|
62
|
+
data: undefined;
|
63
|
+
wasLoaded: boolean;
|
64
|
+
stateFilter: never[];
|
65
|
+
typeFilter: never[];
|
66
|
+
} | {
|
67
|
+
stateFilter: any;
|
68
|
+
data: undefined;
|
69
|
+
loading: boolean;
|
70
|
+
wasLoaded: boolean;
|
71
|
+
typeFilter: never[];
|
72
|
+
} | {
|
73
|
+
typeFilter: any;
|
74
|
+
data: undefined;
|
75
|
+
loading: boolean;
|
76
|
+
wasLoaded: boolean;
|
77
|
+
stateFilter: never[];
|
78
|
+
};
|
79
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
80
|
+
settings: import("../settings/types").SettingsState;
|
81
|
+
preview: any;
|
82
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
83
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
84
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
85
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
86
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
87
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
88
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
89
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
90
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
91
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
92
|
+
authentication: import("../authentication/types").AuthenticationState;
|
93
|
+
header: import("../header/types").HeaderState;
|
94
|
+
saveQuery: string | null;
|
95
|
+
fullscreen: boolean;
|
96
|
+
clusters: import("../clusters/types").ClustersState;
|
97
|
+
}) => Promise<import("./types").PreparedPartitionData[] | undefined>;
|
17
98
|
export default partitions;
|
@@ -29,4 +29,4 @@ export interface PartitionsState {
|
|
29
29
|
partitions?: PreparedPartitionData[];
|
30
30
|
error?: IResponseError;
|
31
31
|
}
|
32
|
-
export
|
32
|
+
export type PartitionsAction = ApiRequestAction<typeof FETCH_PARTITIONS, PreparedPartitionData[], IResponseError> | ReturnType<typeof setDataWasNotLoaded> | ReturnType<typeof setSelectedConsumer>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { PartitionInfo as ConsumerPartitionInfo } from '../../../types/api/consumer';
|
2
2
|
import type { PartitionInfo as TopicPartitionInfo } from '../../../types/api/topic';
|
3
3
|
import { PreparedPartitionData } from './types';
|
4
|
-
export declare const prepareTopicPartitions: (partitions?: TopicPartitionInfo[]
|
5
|
-
export declare const prepareConsumerPartitions: (partitions?: ConsumerPartitionInfo[]
|
4
|
+
export declare const prepareTopicPartitions: (partitions?: TopicPartitionInfo[]) => PreparedPartitionData[] | undefined;
|
5
|
+
export declare const prepareConsumerPartitions: (partitions?: ConsumerPartitionInfo[]) => PreparedPartitionData[] | undefined;
|
@@ -0,0 +1,210 @@
|
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
|
+
import type { PDiskAction, PDiskState } from './types';
|
3
|
+
export declare const FETCH_PDISK: {
|
4
|
+
readonly REQUEST: "pdisk/FETCH_PDISK_REQUEST";
|
5
|
+
readonly SUCCESS: "pdisk/FETCH_PDISK_SUCCESS";
|
6
|
+
readonly FAILURE: "pdisk/FETCH_PDISK_FAILURE";
|
7
|
+
};
|
8
|
+
export declare const FETCH_PDISK_GROUPS: {
|
9
|
+
readonly REQUEST: "pdisk/FETCH_PDISK_GROUPS_REQUEST";
|
10
|
+
readonly SUCCESS: "pdisk/FETCH_PDISK_GROUPS_SUCCESS";
|
11
|
+
readonly FAILURE: "pdisk/FETCH_PDISK_GROUPS_FAILURE";
|
12
|
+
};
|
13
|
+
declare const pdisk: Reducer<PDiskState, PDiskAction>;
|
14
|
+
export declare const setPDiskDataWasNotLoaded: () => {
|
15
|
+
readonly type: "pdisk/SET_PDISK_DATA_WAS_NOT_LOADED";
|
16
|
+
};
|
17
|
+
export declare const getPDiskData: ({ nodeId, pDiskId, }: {
|
18
|
+
nodeId: number | string;
|
19
|
+
pDiskId: number | string;
|
20
|
+
}) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
21
|
+
singleClusterMode: boolean;
|
22
|
+
nodes: import("../nodes/types").NodesState;
|
23
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
24
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
25
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
26
|
+
cluster: import("../cluster/types").ClusterState;
|
27
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
28
|
+
tenant: import("../tenant/types").TenantState;
|
29
|
+
storage: import("../storage/types").StorageState;
|
30
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
31
|
+
node: import("../node/types").NodeState;
|
32
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
33
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
34
|
+
schema: import("../schema/types").SchemaState;
|
35
|
+
overview: import("../overview/types").OverviewState;
|
36
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
37
|
+
host: import("../../../types/store/host").IHostState;
|
38
|
+
network: import("../network/types").NetworkState;
|
39
|
+
tenants: import("../tenants/types").TenantsState;
|
40
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
41
|
+
topic: import("../../../types/store/topic").ITopicState;
|
42
|
+
partitions: import("../partitions/types").PartitionsState;
|
43
|
+
pDisk: PDiskState;
|
44
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
45
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
46
|
+
tabletsFilters: {
|
47
|
+
loading: boolean;
|
48
|
+
requestTime: number;
|
49
|
+
data: undefined;
|
50
|
+
wasLoaded: boolean;
|
51
|
+
stateFilter: never[];
|
52
|
+
typeFilter: never[];
|
53
|
+
} | {
|
54
|
+
tabletsData: any;
|
55
|
+
nodes: any;
|
56
|
+
loading: boolean;
|
57
|
+
wasLoaded: boolean;
|
58
|
+
timeoutForRequest: number;
|
59
|
+
error: undefined;
|
60
|
+
data: undefined;
|
61
|
+
stateFilter: never[];
|
62
|
+
typeFilter: never[];
|
63
|
+
} | {
|
64
|
+
error: any;
|
65
|
+
loading: boolean;
|
66
|
+
data: undefined;
|
67
|
+
wasLoaded: boolean;
|
68
|
+
stateFilter: never[];
|
69
|
+
typeFilter: never[];
|
70
|
+
} | {
|
71
|
+
stateFilter: any;
|
72
|
+
data: undefined;
|
73
|
+
loading: boolean;
|
74
|
+
wasLoaded: boolean;
|
75
|
+
typeFilter: never[];
|
76
|
+
} | {
|
77
|
+
typeFilter: any;
|
78
|
+
data: undefined;
|
79
|
+
loading: boolean;
|
80
|
+
wasLoaded: boolean;
|
81
|
+
stateFilter: never[];
|
82
|
+
};
|
83
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
84
|
+
settings: import("../settings/types").SettingsState;
|
85
|
+
preview: any;
|
86
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
87
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
88
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
89
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
90
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
91
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
92
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
93
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
94
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
95
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
96
|
+
authentication: import("../authentication/types").AuthenticationState;
|
97
|
+
header: import("../header/types").HeaderState;
|
98
|
+
saveQuery: string | null;
|
99
|
+
fullscreen: boolean;
|
100
|
+
clusters: import("../clusters/types").ClustersState;
|
101
|
+
}) => Promise<{
|
102
|
+
NodeId: number | undefined;
|
103
|
+
NodeHost: string | undefined;
|
104
|
+
NodeType: string | undefined;
|
105
|
+
NodeDC: string | undefined;
|
106
|
+
Type?: string | undefined;
|
107
|
+
AllocatedPercent?: number | undefined;
|
108
|
+
Severity?: number | undefined;
|
109
|
+
PDiskId?: number | undefined;
|
110
|
+
CreateTime?: string | undefined;
|
111
|
+
ChangeTime?: string | undefined;
|
112
|
+
Path?: string | undefined;
|
113
|
+
Guid?: string | undefined;
|
114
|
+
Category?: string | undefined;
|
115
|
+
AvailableSize?: string | undefined;
|
116
|
+
TotalSize?: string | undefined;
|
117
|
+
State?: import("../../../types/api/pdisk").TPDiskState | undefined;
|
118
|
+
Count?: number | undefined;
|
119
|
+
Device?: import("../../../types/api/enums").EFlag | undefined;
|
120
|
+
Realtime?: import("../../../types/api/enums").EFlag | undefined;
|
121
|
+
StateFlag?: import("../../../types/api/enums").EFlag | undefined;
|
122
|
+
Overall?: import("../../../types/api/enums").EFlag | undefined;
|
123
|
+
SerialNumber?: string | undefined;
|
124
|
+
} | undefined>;
|
125
|
+
export declare const getPDiskStorage: ({ nodeId, pDiskId, }: {
|
126
|
+
nodeId: number | string;
|
127
|
+
pDiskId: number | string;
|
128
|
+
}) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
129
|
+
singleClusterMode: boolean;
|
130
|
+
nodes: import("../nodes/types").NodesState;
|
131
|
+
topNodesByLoad: import("../tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
132
|
+
topNodesByCpu: import("../tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
133
|
+
topNodesByMemory: import("../tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
134
|
+
cluster: import("../cluster/types").ClusterState;
|
135
|
+
clusterNodes: import("../clusterNodes/types").ClusterNodesState;
|
136
|
+
tenant: import("../tenant/types").TenantState;
|
137
|
+
storage: import("../storage/types").StorageState;
|
138
|
+
topStorageGroups: import("../tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
139
|
+
node: import("../node/types").NodeState;
|
140
|
+
tooltip: import("../../../types/store/tooltip").ITooltipState;
|
141
|
+
tablets: import("../../../types/store/tablets").ITabletsState;
|
142
|
+
schema: import("../schema/types").SchemaState;
|
143
|
+
overview: import("../overview/types").OverviewState;
|
144
|
+
olapStats: import("../../../types/store/olapStats").OlapStatsState;
|
145
|
+
host: import("../../../types/store/host").IHostState;
|
146
|
+
network: import("../network/types").NetworkState;
|
147
|
+
tenants: import("../tenants/types").TenantsState;
|
148
|
+
tablet: import("../../../types/store/tablet").ITabletState;
|
149
|
+
topic: import("../../../types/store/topic").ITopicState;
|
150
|
+
partitions: import("../partitions/types").PartitionsState;
|
151
|
+
pDisk: PDiskState;
|
152
|
+
executeQuery: import("../../../types/store/executeQuery").ExecuteQueryState;
|
153
|
+
explainQuery: import("../../../types/store/explainQuery").ExplainQueryState;
|
154
|
+
tabletsFilters: {
|
155
|
+
loading: boolean;
|
156
|
+
requestTime: number;
|
157
|
+
data: undefined;
|
158
|
+
wasLoaded: boolean;
|
159
|
+
stateFilter: never[];
|
160
|
+
typeFilter: never[];
|
161
|
+
} | {
|
162
|
+
tabletsData: any;
|
163
|
+
nodes: any;
|
164
|
+
loading: boolean;
|
165
|
+
wasLoaded: boolean;
|
166
|
+
timeoutForRequest: number;
|
167
|
+
error: undefined;
|
168
|
+
data: undefined;
|
169
|
+
stateFilter: never[];
|
170
|
+
typeFilter: never[];
|
171
|
+
} | {
|
172
|
+
error: any;
|
173
|
+
loading: boolean;
|
174
|
+
data: undefined;
|
175
|
+
wasLoaded: boolean;
|
176
|
+
stateFilter: never[];
|
177
|
+
typeFilter: never[];
|
178
|
+
} | {
|
179
|
+
stateFilter: any;
|
180
|
+
data: undefined;
|
181
|
+
loading: boolean;
|
182
|
+
wasLoaded: boolean;
|
183
|
+
typeFilter: never[];
|
184
|
+
} | {
|
185
|
+
typeFilter: any;
|
186
|
+
data: undefined;
|
187
|
+
loading: boolean;
|
188
|
+
wasLoaded: boolean;
|
189
|
+
stateFilter: never[];
|
190
|
+
};
|
191
|
+
heatmap: import("../../../types/store/heatmap").IHeatmapState;
|
192
|
+
settings: import("../settings/types").SettingsState;
|
193
|
+
preview: any;
|
194
|
+
nodesList: import("../../../types/store/nodesList").NodesListState;
|
195
|
+
describe: import("../../../types/store/describe").IDescribeState;
|
196
|
+
schemaAcl: import("../schemaAcl/types").SchemaAclState;
|
197
|
+
executeTopQueries: import("../executeTopQueries/types").ITopQueriesState;
|
198
|
+
executeTopTables: import("../tenantOverview/executeTopTables/types").TopTablesState;
|
199
|
+
tenantOverviewTopQueries: import("../tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
200
|
+
healthcheckInfo: import("../healthcheckInfo/types").HealthcheckInfoState;
|
201
|
+
shardsWorkload: import("../shardsWorkload/types").IShardsWorkloadState;
|
202
|
+
tenantOverviewTopShards: import("../tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
203
|
+
hotKeys: import("../hotKeys/types").HotKeysState;
|
204
|
+
authentication: import("../authentication/types").AuthenticationState;
|
205
|
+
header: import("../header/types").HeaderState;
|
206
|
+
saveQuery: string | null;
|
207
|
+
fullscreen: boolean;
|
208
|
+
clusters: import("../clusters/types").ClustersState;
|
209
|
+
}) => Promise<import("../storage/types").PreparedStorageGroup[] | undefined>;
|
210
|
+
export default pdisk;
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { EVersion } from '../../../types/api/storage';
|
2
|
+
import { createRequestActionTypes, createApiRequest } from '../../utils';
|
3
|
+
import { preparePDiksDataResponse, preparePDiskStorageResponse } from './utils';
|
4
|
+
export const FETCH_PDISK = createRequestActionTypes('pdisk', 'FETCH_PDISK');
|
5
|
+
export const FETCH_PDISK_GROUPS = createRequestActionTypes('pdisk', 'FETCH_PDISK_GROUPS');
|
6
|
+
const SET_PDISK_DATA_WAS_NOT_LOADED = 'pdisk/SET_PDISK_DATA_WAS_NOT_LOADED';
|
7
|
+
const initialState = {
|
8
|
+
pDiskLoading: false,
|
9
|
+
pDiskWasLoaded: false,
|
10
|
+
pDiskData: {},
|
11
|
+
groupsLoading: false,
|
12
|
+
groupsWasLoaded: false,
|
13
|
+
groupsData: [],
|
14
|
+
};
|
15
|
+
const pdisk = (state = initialState, action) => {
|
16
|
+
switch (action.type) {
|
17
|
+
case FETCH_PDISK.REQUEST: {
|
18
|
+
return Object.assign(Object.assign({}, state), { pDiskLoading: true });
|
19
|
+
}
|
20
|
+
case FETCH_PDISK.SUCCESS: {
|
21
|
+
return Object.assign(Object.assign({}, state), { pDiskData: action.data, pDiskLoading: false, pDiskWasLoaded: true, pDiskError: undefined });
|
22
|
+
}
|
23
|
+
case FETCH_PDISK.FAILURE: {
|
24
|
+
return Object.assign(Object.assign({}, state), { pDiskError: action.error, pDiskLoading: false });
|
25
|
+
}
|
26
|
+
case FETCH_PDISK_GROUPS.REQUEST: {
|
27
|
+
return Object.assign(Object.assign({}, state), { groupsLoading: true });
|
28
|
+
}
|
29
|
+
case FETCH_PDISK_GROUPS.SUCCESS: {
|
30
|
+
return Object.assign(Object.assign({}, state), { groupsData: action.data, groupsLoading: false, groupsWasLoaded: true, groupsError: undefined });
|
31
|
+
}
|
32
|
+
case FETCH_PDISK_GROUPS.FAILURE: {
|
33
|
+
return Object.assign(Object.assign({}, state), { groupsError: action.error, groupsLoading: false });
|
34
|
+
}
|
35
|
+
case SET_PDISK_DATA_WAS_NOT_LOADED: {
|
36
|
+
return Object.assign(Object.assign({}, state), { pDiskWasLoaded: false, groupsWasLoaded: false });
|
37
|
+
}
|
38
|
+
default:
|
39
|
+
return state;
|
40
|
+
}
|
41
|
+
};
|
42
|
+
export const setPDiskDataWasNotLoaded = () => {
|
43
|
+
return {
|
44
|
+
type: SET_PDISK_DATA_WAS_NOT_LOADED,
|
45
|
+
};
|
46
|
+
};
|
47
|
+
export const getPDiskData = ({ nodeId, pDiskId, }) => {
|
48
|
+
return createApiRequest({
|
49
|
+
request: Promise.all([
|
50
|
+
window.api.getPdiskInfo(nodeId, pDiskId),
|
51
|
+
window.api.getNodeInfo(nodeId),
|
52
|
+
]),
|
53
|
+
actions: FETCH_PDISK,
|
54
|
+
dataHandler: preparePDiksDataResponse,
|
55
|
+
});
|
56
|
+
};
|
57
|
+
export const getPDiskStorage = ({ nodeId, pDiskId, }) => {
|
58
|
+
return createApiRequest({
|
59
|
+
request: window.api.getStorageInfo({ nodeId, version: EVersion.v1 }),
|
60
|
+
actions: FETCH_PDISK_GROUPS,
|
61
|
+
dataHandler: (data) => preparePDiskStorageResponse(data, pDiskId, nodeId),
|
62
|
+
});
|
63
|
+
};
|
64
|
+
export default pdisk;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { IResponseError } from '../../../types/api/error';
|
2
|
+
import type { PreparedPDisk } from '../../../utils/disks/types';
|
3
|
+
import type { ApiRequestAction } from '../../utils';
|
4
|
+
import type { PreparedStorageGroup } from '../storage/types';
|
5
|
+
import type { FETCH_PDISK, FETCH_PDISK_GROUPS, setPDiskDataWasNotLoaded } from './pdisk';
|
6
|
+
interface PDiskData extends PreparedPDisk {
|
7
|
+
NodeId?: number;
|
8
|
+
NodeHost?: string;
|
9
|
+
NodeType?: string;
|
10
|
+
NodeDC?: string;
|
11
|
+
}
|
12
|
+
export interface PDiskState {
|
13
|
+
pDiskLoading: boolean;
|
14
|
+
pDiskWasLoaded: boolean;
|
15
|
+
pDiskData: PDiskData;
|
16
|
+
pDiskError?: IResponseError;
|
17
|
+
groupsLoading: boolean;
|
18
|
+
groupsWasLoaded: boolean;
|
19
|
+
groupsData: PreparedStorageGroup[];
|
20
|
+
groupsError?: IResponseError;
|
21
|
+
}
|
22
|
+
export type PDiskAction = ApiRequestAction<typeof FETCH_PDISK, PDiskData, IResponseError> | ApiRequestAction<typeof FETCH_PDISK_GROUPS, PreparedStorageGroup[], IResponseError> | ReturnType<typeof setPDiskDataWasNotLoaded>;
|
23
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { TEvPDiskStateResponse } from '../../../types/api/pdisk';
|
2
|
+
import type { TStorageInfo } from '../../../types/api/storage';
|
3
|
+
import type { TEvSystemStateResponse } from '../../../types/api/systemState';
|
4
|
+
import type { PreparedStorageGroup } from '../storage/types';
|
5
|
+
export declare function preparePDiksDataResponse([pdiskResponse, nodeResponse]: [
|
6
|
+
TEvPDiskStateResponse,
|
7
|
+
TEvSystemStateResponse
|
8
|
+
]): {
|
9
|
+
NodeId: number | undefined;
|
10
|
+
NodeHost: string | undefined;
|
11
|
+
NodeType: string | undefined;
|
12
|
+
NodeDC: string | undefined;
|
13
|
+
Type?: string | undefined;
|
14
|
+
AllocatedPercent?: number | undefined;
|
15
|
+
Severity?: number | undefined;
|
16
|
+
PDiskId?: number | undefined;
|
17
|
+
CreateTime?: string | undefined;
|
18
|
+
ChangeTime?: string | undefined;
|
19
|
+
Path?: string | undefined;
|
20
|
+
Guid?: string | undefined;
|
21
|
+
Category?: string | undefined;
|
22
|
+
AvailableSize?: string | undefined;
|
23
|
+
TotalSize?: string | undefined;
|
24
|
+
State?: import("../../../types/api/pdisk").TPDiskState | undefined;
|
25
|
+
Count?: number | undefined;
|
26
|
+
Device?: import("../../../types/api/enums").EFlag | undefined;
|
27
|
+
Realtime?: import("../../../types/api/enums").EFlag | undefined;
|
28
|
+
StateFlag?: import("../../../types/api/enums").EFlag | undefined;
|
29
|
+
Overall?: import("../../../types/api/enums").EFlag | undefined;
|
30
|
+
SerialNumber?: string | undefined;
|
31
|
+
};
|
32
|
+
export declare function preparePDiskStorageResponse(data: TStorageInfo, pDiskId: number | string, nodeId: number | string): PreparedStorageGroup[];
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { preparePDiskData } from '../../../utils/disks/prepareDisks';
|
2
|
+
import { prepareNodeSystemState } from '../../../utils/nodes';
|
3
|
+
import { prepareStorageGroupData } from '../storage/utils';
|
4
|
+
export function preparePDiksDataResponse([pdiskResponse, nodeResponse]) {
|
5
|
+
var _a, _b, _c, _d;
|
6
|
+
const rawPDisk = (_a = pdiskResponse.PDiskStateInfo) === null || _a === void 0 ? void 0 : _a[0];
|
7
|
+
const preparedPDisk = preparePDiskData(rawPDisk);
|
8
|
+
const rawNode = (_b = nodeResponse.SystemStateInfo) === null || _b === void 0 ? void 0 : _b[0];
|
9
|
+
const preparedNode = prepareNodeSystemState(rawNode);
|
10
|
+
return Object.assign(Object.assign({}, preparedPDisk), { NodeId: (_c = preparedPDisk.NodeId) !== null && _c !== void 0 ? _c : preparedNode.NodeId, NodeHost: preparedNode.Host, NodeType: (_d = preparedNode.Roles) === null || _d === void 0 ? void 0 : _d[0], NodeDC: preparedNode.DC });
|
11
|
+
}
|
12
|
+
export function preparePDiskStorageResponse(data, pDiskId, nodeId) {
|
13
|
+
var _a;
|
14
|
+
const preparedGroups = [];
|
15
|
+
(_a = data.StoragePools) === null || _a === void 0 ? void 0 : _a.forEach((pool) => {
|
16
|
+
var _a;
|
17
|
+
return (_a = pool.Groups) === null || _a === void 0 ? void 0 : _a.forEach((group) => {
|
18
|
+
var _a;
|
19
|
+
const groupHasPDiskVDisks = (_a = group.VDisks) === null || _a === void 0 ? void 0 : _a.some((vdisk) => {
|
20
|
+
var _a, _b, _c, _d;
|
21
|
+
// If VDisk has PDisk inside, PDiskId and NodeId fields could be only inside PDisk and vice versa
|
22
|
+
const groupPDiskId = (_a = vdisk.PDiskId) !== null && _a !== void 0 ? _a : (_b = vdisk.PDisk) === null || _b === void 0 ? void 0 : _b.PDiskId;
|
23
|
+
const groupNodeId = (_c = vdisk.NodeId) !== null && _c !== void 0 ? _c : (_d = vdisk.PDisk) === null || _d === void 0 ? void 0 : _d.NodeId;
|
24
|
+
return groupPDiskId === Number(pDiskId) && groupNodeId === Number(nodeId);
|
25
|
+
});
|
26
|
+
if (groupHasPDiskVDisks) {
|
27
|
+
preparedGroups.push(prepareStorageGroupData(group, pool.Name));
|
28
|
+
}
|
29
|
+
});
|
30
|
+
});
|
31
|
+
return preparedGroups;
|
32
|
+
}
|
@@ -15,7 +15,88 @@ interface SendQueryParams {
|
|
15
15
|
database?: string;
|
16
16
|
action?: ExecuteActions;
|
17
17
|
}
|
18
|
-
export declare const sendQuery: ({ query, database, action }: SendQueryParams) => (dispatch: import("redux").Dispatch<import("redux").
|
18
|
+
export declare const sendQuery: ({ query, database, action }: SendQueryParams) => (dispatch: import("redux").Dispatch<import("redux").UnknownAction>, getState: () => {
|
19
|
+
singleClusterMode: boolean;
|
20
|
+
nodes: import("./nodes/types").NodesState;
|
21
|
+
topNodesByLoad: import("./tenantOverview/topNodesByLoad/types").TopNodesByLoadState;
|
22
|
+
topNodesByCpu: import("./tenantOverview/topNodesByCpu/types").TopNodesByCpuState;
|
23
|
+
topNodesByMemory: import("./tenantOverview/topNodesByMemory/types").TopNodesByMemoryState;
|
24
|
+
cluster: import("./cluster/types").ClusterState;
|
25
|
+
clusterNodes: import("./clusterNodes/types").ClusterNodesState;
|
26
|
+
tenant: import("./tenant/types").TenantState;
|
27
|
+
storage: import("./storage/types").StorageState;
|
28
|
+
topStorageGroups: import("./tenantOverview/topStorageGroups/types").TopStorageGroupsState;
|
29
|
+
node: import("./node/types").NodeState;
|
30
|
+
tooltip: import("../../types/store/tooltip").ITooltipState;
|
31
|
+
tablets: import("../../types/store/tablets").ITabletsState;
|
32
|
+
schema: import("./schema/types").SchemaState;
|
33
|
+
overview: import("./overview/types").OverviewState;
|
34
|
+
olapStats: import("../../types/store/olapStats").OlapStatsState;
|
35
|
+
host: import("../../types/store/host").IHostState;
|
36
|
+
network: import("./network/types").NetworkState;
|
37
|
+
tenants: import("./tenants/types").TenantsState;
|
38
|
+
tablet: import("../../types/store/tablet").ITabletState;
|
39
|
+
topic: import("../../types/store/topic").ITopicState;
|
40
|
+
partitions: import("./partitions/types").PartitionsState;
|
41
|
+
pDisk: import("./pdisk/types").PDiskState;
|
42
|
+
executeQuery: import("../../types/store/executeQuery").ExecuteQueryState;
|
43
|
+
explainQuery: import("../../types/store/explainQuery").ExplainQueryState;
|
44
|
+
tabletsFilters: {
|
45
|
+
loading: boolean;
|
46
|
+
requestTime: number;
|
47
|
+
data: undefined;
|
48
|
+
wasLoaded: boolean;
|
49
|
+
stateFilter: never[];
|
50
|
+
typeFilter: never[];
|
51
|
+
} | {
|
52
|
+
tabletsData: any;
|
53
|
+
nodes: any;
|
54
|
+
loading: boolean;
|
55
|
+
wasLoaded: boolean;
|
56
|
+
timeoutForRequest: number;
|
57
|
+
error: undefined;
|
58
|
+
data: undefined;
|
59
|
+
stateFilter: never[];
|
60
|
+
typeFilter: never[];
|
61
|
+
} | {
|
62
|
+
error: any;
|
63
|
+
loading: boolean;
|
64
|
+
data: undefined;
|
65
|
+
wasLoaded: boolean;
|
66
|
+
stateFilter: never[];
|
67
|
+
typeFilter: never[];
|
68
|
+
} | {
|
69
|
+
stateFilter: any;
|
70
|
+
data: undefined;
|
71
|
+
loading: boolean;
|
72
|
+
wasLoaded: boolean;
|
73
|
+
typeFilter: never[];
|
74
|
+
} | {
|
75
|
+
typeFilter: any;
|
76
|
+
data: undefined;
|
77
|
+
loading: boolean;
|
78
|
+
wasLoaded: boolean;
|
79
|
+
stateFilter: never[];
|
80
|
+
};
|
81
|
+
heatmap: import("../../types/store/heatmap").IHeatmapState;
|
82
|
+
settings: import("./settings/types").SettingsState;
|
83
|
+
preview: any;
|
84
|
+
nodesList: import("../../types/store/nodesList").NodesListState;
|
85
|
+
describe: import("../../types/store/describe").IDescribeState;
|
86
|
+
schemaAcl: import("./schemaAcl/types").SchemaAclState;
|
87
|
+
executeTopQueries: import("./executeTopQueries/types").ITopQueriesState;
|
88
|
+
executeTopTables: import("./tenantOverview/executeTopTables/types").TopTablesState;
|
89
|
+
tenantOverviewTopQueries: import("./tenantOverview/topQueries/types").TenantOverviewTopQueriesState;
|
90
|
+
healthcheckInfo: import("./healthcheckInfo/types").HealthcheckInfoState;
|
91
|
+
shardsWorkload: import("./shardsWorkload/types").IShardsWorkloadState;
|
92
|
+
tenantOverviewTopShards: import("./tenantOverview/topShards/types").TenantOverviewTopShardsState;
|
93
|
+
hotKeys: import("./hotKeys/types").HotKeysState;
|
94
|
+
authentication: import("./authentication/types").AuthenticationState;
|
95
|
+
header: import("./header/types").HeaderState;
|
96
|
+
saveQuery: string | null;
|
97
|
+
fullscreen: boolean;
|
98
|
+
clusters: import("./clusters/types").ClustersState;
|
99
|
+
}) => Promise<IQueryResult | undefined>;
|
19
100
|
export declare function setQueryOptions(options: any): {
|
20
101
|
readonly type: "preview/SET_QUERY_OPTIONS";
|
21
102
|
readonly data: any;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { Reducer } from '
|
2
|
-
|
3
|
-
|
1
|
+
import type { Reducer } from '@reduxjs/toolkit';
|
2
|
+
type IAction = ReturnType<typeof setQueryNameToEdit> | ReturnType<typeof clearQueryNameToEdit>;
|
3
|
+
type ISaveQueryState = string | null;
|
4
4
|
declare const saveQuery: Reducer<ISaveQueryState, IAction>;
|
5
5
|
export declare function setQueryNameToEdit(name: string): {
|
6
6
|
readonly type: "SET_QUERY_NAME_TO_EDIT";
|