ydb-embedded-ui 6.21.0 → 6.23.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AutoRefreshControl/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.d.ts +2 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.js.map +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +4 -0
- package/dist/components/GroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskInfo/PDiskInfo.js +1 -3
- package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.d.ts +2 -4
- package/dist/components/PDiskPopup/PDiskPopup.js +10 -5
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +2 -1
- package/dist/components/PaginatedTable/PaginatedTable.js +9 -7
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +2 -1
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/QueryResultTable/Cell/Cell.js +1 -4
- package/dist/components/QueryResultTable/Cell/Cell.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.js +11 -16
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/utils/getColumnWidth.d.ts +7 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js +16 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.js.map +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.d.ts +1 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js +32 -0
- package/dist/components/QueryResultTable/utils/getColumnWidth.test.js.map +1 -0
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js +7 -7
- package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -1
- package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.d.ts +2 -1
- package/dist/components/TableSkeleton/TableSkeleton.js +5 -1
- package/dist/components/TableSkeleton/TableSkeleton.js.map +1 -1
- package/dist/components/TableSkeleton/TableSkeleton.scss +7 -1
- package/dist/components/VDisk/VDisk.d.ts +2 -3
- package/dist/components/VDisk/VDisk.js +2 -2
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDiskInfo/VDiskInfo.js +1 -3
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +1 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +7 -2
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/containers/App/App.scss +1 -1
- package/dist/containers/Cluster/Cluster.js +1 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +2 -3
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/Clusters.js +3 -3
- package/dist/containers/Clusters/Clusters.js.map +1 -1
- package/dist/containers/Clusters/columns.js +2 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Clusters/constants.d.ts +4 -4
- package/dist/containers/Clusters/constants.js +3 -3
- package/dist/containers/Clusters/constants.js.map +1 -1
- package/dist/containers/Header/breadcrumbs.js +2 -3
- package/dist/containers/Header/breadcrumbs.js.map +1 -1
- package/dist/containers/Node/Node.js +14 -4
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +4 -5
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +10 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.js +10 -11
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/{getNodesColumns.d.ts → columns/columns.d.ts} +3 -10
- package/dist/containers/Nodes/{getNodesColumns.js → columns/columns.js} +37 -39
- package/dist/containers/Nodes/columns/columns.js.map +1 -0
- package/dist/containers/Nodes/columns/constants.d.ts +41 -0
- package/dist/containers/Nodes/columns/constants.js +83 -0
- package/dist/containers/Nodes/columns/constants.js.map +1 -0
- package/dist/containers/Nodes/columns/hooks.d.ts +6 -0
- package/dist/containers/Nodes/columns/hooks.js +11 -0
- package/dist/containers/Nodes/columns/hooks.js.map +1 -0
- package/dist/containers/Nodes/columns/i18n/en.json +17 -0
- package/dist/containers/Nodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Nodes/columns/i18n/index.js +5 -0
- package/dist/containers/Nodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Nodes/columns/types.d.ts +9 -0
- package/dist/containers/Nodes/columns/types.js +2 -0
- package/dist/containers/Nodes/columns/types.js.map +1 -0
- package/dist/containers/Nodes/getNodes.d.ts +3 -2
- package/dist/containers/Nodes/getNodes.js +6 -3
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +12 -10
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +14 -14
- package/dist/containers/PDiskPage/i18n/en.json +1 -1
- package/dist/containers/PDiskPage/i18n/index.d.ts +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +7 -7
- package/dist/containers/ReduxTooltip/ReduxTooltip.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +3 -3
- package/dist/containers/Storage/Disks/Disks.js +6 -7
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +5 -4
- package/dist/containers/Storage/PDisk/PDisk.js +3 -2
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.scss +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +5 -6
- package/dist/containers/Storage/PaginatedStorage.js +9 -54
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js +84 -0
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -0
- package/dist/containers/Storage/PaginatedStorageNodes.d.ts +3 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js +98 -0
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -0
- package/dist/containers/Storage/Storage.d.ts +4 -4
- package/dist/containers/Storage/Storage.js +46 -67
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/Storage.scss +4 -0
- package/dist/containers/Storage/StorageControls/StorageControls.d.ts +6 -16
- package/dist/containers/Storage/StorageControls/StorageControls.js +18 -9
- package/dist/containers/Storage/StorageControls/StorageControls.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +22 -0
- package/dist/containers/Storage/StorageGroups/{PaginatedStorageGroups.js → PaginatedStorageGroupsTable.js} +24 -8
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +14 -0
- package/dist/containers/Storage/StorageGroups/{StorageGroups.js → StorageGroupsTable.js} +5 -6
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/columns.d.ts +4 -0
- package/dist/containers/Storage/StorageGroups/columns/{getStorageGroupsColumns.js → columns.js} +66 -89
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.d.ts +54 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js +120 -0
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +7 -3
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +21 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +5 -7
- package/dist/containers/Storage/StorageGroups/getGroups.js +10 -6
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +23 -0
- package/dist/containers/Storage/StorageNodes/{PaginatedStorageNodes.js → PaginatedStorageNodesTable.js} +24 -9
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/StorageNodes.scss +1 -27
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +16 -0
- package/dist/containers/Storage/StorageNodes/{StorageNodes.js → StorageNodesTable.js} +9 -9
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/StorageNodesColumns.scss +24 -0
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +39 -0
- package/dist/containers/Storage/StorageNodes/{getStorageNodesColumns.js → columns/columns.js} +20 -31
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +34 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js +74 -0
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +43 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +18 -0
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +11 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js +5 -0
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +11 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js +2 -0
- package/dist/containers/Storage/StorageNodes/columns/types.js.map +1 -0
- package/dist/containers/Storage/StorageNodes/getNodes.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/getNodes.js +13 -9
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js +1 -1
- package/dist/containers/Storage/StorageNodes/shared.js.map +1 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -2
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/TableGroup/TableGroup.d.ts +12 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js +21 -0
- package/dist/containers/Storage/TableGroup/TableGroup.js.map +1 -0
- package/dist/containers/Storage/TableGroup/TableGroup.scss +49 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.d.ts +5 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js +28 -0
- package/dist/containers/Storage/TableGroup/useExpandedTableGroups.js.map +1 -0
- package/dist/containers/Storage/i18n/en.json +4 -1
- package/dist/containers/Storage/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/i18n/index.js +1 -2
- package/dist/containers/Storage/i18n/index.js.map +1 -1
- package/dist/containers/Storage/shared.d.ts +2 -0
- package/dist/containers/Storage/shared.js +9 -0
- package/dist/containers/Storage/shared.js.map +1 -1
- package/dist/containers/Storage/useStorageQueryParams.d.ts +18 -0
- package/dist/containers/Storage/useStorageQueryParams.js +64 -0
- package/dist/containers/Storage/useStorageQueryParams.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +6 -2
- package/dist/containers/Storage/utils/index.js +17 -11
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +14 -57
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +14 -17
- package/dist/containers/StorageGroupPage/i18n/en.json +1 -2
- package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +17 -3
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +6 -3
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +4 -4
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +10 -3
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js +2 -3
- package/dist/containers/Tenant/Diagnostics/Overview/Overview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.d.ts +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js +5 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/utils/index.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +12 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +13 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js +8 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.d.ts +1 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +32 -37
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +33 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +26 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +7 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js +1 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js +71 -62
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +6 -7
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.d.ts +6 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js +25 -0
- package/dist/containers/Tenant/ObjectSummary/ObjectTree.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js +18 -0
- package/dist/containers/Tenant/ObjectSummary/SchemaActions.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js +27 -3
- package/dist/containers/Tenant/ObjectSummary/__test__/transformPath.test.js.map +1 -1
- package/dist/containers/Tenant/ObjectSummary/i18n/en.json +21 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js +5 -0
- package/dist/containers/Tenant/ObjectSummary/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.d.ts +1 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js +3 -0
- package/dist/containers/Tenant/ObjectSummary/shared.js.map +1 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.d.ts +2 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js +10 -0
- package/dist/containers/Tenant/ObjectSummary/transformPath.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +14 -12
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +8 -0
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +3 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.d.ts +1 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js +135 -0
- package/dist/containers/Tenant/Query/NewSQL/NewSQL.js.map +1 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/en.json +32 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js +5 -0
- package/dist/containers/Tenant/Query/NewSQL/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +2 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +1 -0
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js +3 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +5 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js +5 -3
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +6 -10
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js +11 -2
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.d.ts +1 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +3 -0
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +3 -0
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +10 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +2 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/Tenant.js +7 -3
- package/dist/containers/Tenant/Tenant.js.map +1 -1
- package/dist/containers/Tenant/utils/newSQLQueryActions.d.ts +27 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js +35 -0
- package/dist/containers/Tenant/utils/newSQLQueryActions.js.map +1 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.d.ts +24 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js +228 -0
- package/dist/containers/Tenant/utils/newSQLQueryTemplates.js.map +1 -0
- package/dist/containers/Tenant/utils/schema.js +1 -0
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/Tenant/utils/schemaActions.d.ts +1 -1
- package/dist/containers/Tenant/utils/schemaActions.js +8 -6
- package/dist/containers/Tenant/utils/schemaActions.js.map +1 -1
- package/dist/containers/Tenant/utils/{queryTemplates.js → schemaQueryTemplates.js} +1 -1
- package/dist/containers/Tenant/utils/schemaQueryTemplates.js.map +1 -0
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +0 -3
- package/dist/containers/VDiskPage/VDiskPage.js +9 -33
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +10 -19
- package/dist/containers/VDiskPage/i18n/en.json +1 -1
- package/dist/containers/VDiskPage/i18n/index.d.ts +1 -1
- package/dist/services/api.d.ts +16 -5
- package/dist/services/api.js +53 -14
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +2 -2
- package/dist/services/settings.js +2 -3
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +2 -2
- package/dist/store/defaultStore.d.ts +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +8 -1
- package/dist/store/reducers/capabilities/capabilities.js +6 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +6 -0
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/executeQuery.js +3 -0
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +4 -0
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +27 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/index.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.d.ts +2 -2
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +3 -24
- package/dist/store/reducers/nodesList.d.ts +5 -5
- package/dist/store/reducers/nodesList.js +2 -2
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +5 -1
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +29 -2
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.js +1 -1
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +3 -3
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/selectors.d.ts +2 -3
- package/dist/store/reducers/storage/selectors.js +1 -27
- package/dist/store/reducers/storage/selectors.js.map +1 -1
- package/dist/store/reducers/storage/storage.d.ts +4 -4
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +19 -10
- package/dist/store/reducers/storage/utils.js +27 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tablet.js +5 -3
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.d.ts +3 -3
- package/dist/store/reducers/tablets.js +4 -4
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/styles/mixins.scss +3 -3
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/common.d.ts +1 -0
- package/dist/types/api/nodes.d.ts +34 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/storage.d.ts +29 -8
- package/dist/types/store/nodesList.d.ts +1 -1
- package/dist/types/store/query.d.ts +5 -8
- package/dist/utils/constants.d.ts +0 -8
- package/dist/utils/constants.js +0 -9
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/filters.d.ts +2 -1
- package/dist/utils/filters.js +1 -4
- package/dist/utils/filters.js.map +1 -1
- package/dist/utils/hooks/useChangedQuerySettings.d.ts +2 -2
- package/dist/utils/hooks/useChangedQuerySettings.js +2 -1
- package/dist/utils/hooks/useChangedQuerySettings.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useLastQueryExecutionSettings.js +8 -9
- package/dist/utils/hooks/useLastQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +15 -2
- package/dist/utils/hooks/useQueryExecutionSettings.js +5 -7
- package/dist/utils/hooks/useQueryExecutionSettings.js.map +1 -1
- package/dist/utils/hooks/useSelectedColumns.d.ts +8 -0
- package/dist/utils/hooks/useSelectedColumns.js +40 -0
- package/dist/utils/hooks/useSelectedColumns.js.map +1 -0
- package/dist/utils/nodes.d.ts +5 -24
- package/dist/utils/nodes.js +20 -23
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +129 -0
- package/dist/utils/query.js +33 -1
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -1
- package/dist/utils/storage.js +2 -0
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/utils.js +2 -1
- package/dist/utils/utils.js.map +1 -1
- package/package.json +2 -1
- package/dist/containers/Clusters/useSelectedColumns.d.ts +0 -7
- package/dist/containers/Clusters/useSelectedColumns.js +0 -26
- package/dist/containers/Clusters/useSelectedColumns.js.map +0 -1
- package/dist/containers/Nodes/getNodesColumns.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.d.ts +0 -6
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +0 -30
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +0 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +0 -2
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +0 -14
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.d.ts +0 -13
- package/dist/containers/Storage/StorageGroups/StorageGroups.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +0 -21
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.d.ts +0 -17
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodes.d.ts +0 -19
- package/dist/containers/Storage/StorageNodes/StorageNodes.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.d.ts +0 -50
- package/dist/containers/Storage/StorageNodes/getStorageNodesColumns.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.d.ts +0 -14
- package/dist/containers/Storage/UsageFilter/UsageFilter.js +0 -39
- package/dist/containers/Storage/UsageFilter/UsageFilter.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +0 -38
- package/dist/containers/Storage/UsageFilter/i18n/en.json +0 -5
- package/dist/containers/Storage/UsageFilter/i18n/index.d.ts +0 -2
- package/dist/containers/Storage/UsageFilter/i18n/index.js +0 -6
- package/dist/containers/Storage/UsageFilter/i18n/index.js.map +0 -1
- package/dist/containers/Storage/UsageFilter/i18n/ru.json +0 -5
- package/dist/containers/Storage/UsageFilter/index.d.ts +0 -1
- package/dist/containers/Storage/UsageFilter/index.js +0 -2
- package/dist/containers/Storage/UsageFilter/index.js.map +0 -1
- package/dist/containers/Storage/i18n/ru.json +0 -6
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +0 -4
- package/dist/containers/Tenant/utils/queryTemplates.js.map +0 -1
- package/dist/containers/VDiskPage/utils.d.ts +0 -2
- package/dist/containers/VDiskPage/utils.js +0 -7
- package/dist/containers/VDiskPage/utils.js.map +0 -1
- package/dist/store/reducers/describe.d.ts +0 -7
- package/dist/store/reducers/describe.js +0 -25
- package/dist/store/reducers/describe.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js +0 -27
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.js.map +0 -1
- /package/dist/containers/Tenant/utils/{queryTemplates.d.ts → schemaQueryTemplates.d.ts} +0 -0
@@ -60,7 +60,7 @@ export function preparePDiskDataResponse([pdiskResponse = {}, nodeResponse]) {
|
|
60
60
|
});
|
61
61
|
}
|
62
62
|
const diskSlots = [...vdisksSlots, ...emptySlots];
|
63
|
-
if (logSlot) {
|
63
|
+
if (logSlot && diskSlots.length > 0) {
|
64
64
|
diskSlots.unshift(logSlot);
|
65
65
|
}
|
66
66
|
const rawNode = (_a = nodeResponse.SystemStateInfo) === null || _a === void 0 ? void 0 : _a[0];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/pdisk/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAE,cAAc,EAAC,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI5D,MAAM,UAAU,wBAAwB,CAAC,CAAC,aAAa,GAAG,EAAE,EAAE,YAAY,CAGzE;;IACG,MAAM,EAAC,GAAG,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,GAAG,aAAa,IAAI,EAAE,CAAC;IAExD,MAAM,EAAC,KAAK,EAAE,mBAAmB,GAAG,EAAE,EAAE,MAAM,EAAE,oBAAoB,GAAG,EAAE,EAAC,GAAG,UAAU,CAAC;IACxF,MAAM,EAAC,KAAK,EAAE,YAAY,GAAG,EAAE,EAAC,GAAG,G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;gBACjB,KAAK,EAAE,aAAa;gBACpB,QAAQ,EAAE,CAAC;gBACX,QAAQ,EAAE;oBACN,IAAI,EAAE,aAAa;iBACtB;aACJ,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC;IAED,MAAM,SAAS,GAA2B,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,CAAC;IAE1E,IAAI,OAAO,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,OAAO,GAAG,MAAA,YAAY,CAAC,eAAe,0CAAG,CAAC,CAAC,CAAC;IAClD,MAAM,YAAY,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAErD,OAAO;QACH,GAAG,aAAa;QAChB,MAAM,EAAE,MAAA,aAAa,CAAC,MAAM,mCAAI,YAAY,CAAC,MAAM;QACnD,QAAQ,EAAE,YAAY,CAAC,IAAI;QAC3B,QAAQ,EAAE,MAAA,YAAY,CAAC,KAAK,0CAAG,CAAC,CAAC;QACjC,MAAM,EAAE,YAAY,CAAC,EAAE;QACvB,SAAS,EAAE,SAAS;KACvB,CAAC;AACN,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { AxiosOptions } from '../../../services/api';
|
2
|
-
import type { StorageRequestParams } from '../../../types/api/storage';
|
3
|
-
export declare function requestStorageData({ version, shouldUseGroupsHandler, ...params }: StorageRequestParams & {
|
2
|
+
import type { GroupsRequestParams, StorageRequestParams } from '../../../types/api/storage';
|
3
|
+
export declare function requestStorageData({ version, shouldUseGroupsHandler, ...params }: StorageRequestParams & GroupsRequestParams & {
|
4
4
|
shouldUseGroupsHandler?: boolean;
|
5
|
-
}, options
|
5
|
+
}, options?: AxiosOptions): Promise<import("./types").PreparedStorageResponse>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"requestStorageData.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/requestStorageData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,EACI,OAAO,GAAG,IAAI,EACd,sBAAsB,EACtB,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"requestStorageData.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/requestStorageData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,qBAAqB,EAAE,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACpC,EACI,OAAO,GAAG,IAAI,EACd,sBAAsB,EACtB,GAAG,MAAM,EACqE,EAClF,OAAsB;IAEtB,IAAI,sBAAsB,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QAC7C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAC,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QACvE,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACJ,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,EAAC,OAAO,EAAE,GAAG,MAAM,EAAC,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;AACL,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { NodesUptimeFilterValues } from '../../../utils/nodes';
|
2
|
-
import type { PreparedStorageGroup, PreparedStorageNode
|
2
|
+
import type { PreparedStorageGroup, PreparedStorageNode } from './types';
|
3
3
|
export declare function filterNodes(storageNodes: PreparedStorageNode[], textFilter: string, uptimeFilter: NodesUptimeFilterValues): PreparedStorageNode[];
|
4
|
-
export declare function filterGroups(storageGroups: PreparedStorageGroup[], textFilter: string
|
5
|
-
export declare function getUsageFilterOptions(groups: PreparedStorageGroup[]): UsageFilter[];
|
4
|
+
export declare function filterGroups(storageGroups: PreparedStorageGroup[], textFilter: string): PreparedStorageGroup[];
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { getUsage } from '../../../utils/storage';
|
2
1
|
import { filterNodesByUptime } from '../nodes/selectors';
|
3
2
|
// ==== Filters ====
|
4
3
|
const prepareSearchText = (text) => text.trim().toLowerCase();
|
@@ -24,40 +23,15 @@ const filterGroupsByText = (entities, text) => {
|
|
24
23
|
((_b = entity.GroupId) === null || _b === void 0 ? void 0 : _b.toString().includes(preparedSearch)));
|
25
24
|
});
|
26
25
|
};
|
27
|
-
const filterGroupsByUsage = (entities, usage) => {
|
28
|
-
if (!Array.isArray(usage) || usage.length === 0) {
|
29
|
-
return entities;
|
30
|
-
}
|
31
|
-
return entities.filter((entity) => {
|
32
|
-
const entityUsage = entity.Usage;
|
33
|
-
return usage.some((val) => Number(val) <= entityUsage && entityUsage < Number(val) + 5);
|
34
|
-
});
|
35
|
-
};
|
36
26
|
export function filterNodes(storageNodes, textFilter, uptimeFilter) {
|
37
27
|
let result = storageNodes || [];
|
38
28
|
result = filterNodesByText(result, textFilter);
|
39
29
|
result = filterNodesByUptime(result, uptimeFilter);
|
40
30
|
return result;
|
41
31
|
}
|
42
|
-
export function filterGroups(storageGroups, textFilter
|
32
|
+
export function filterGroups(storageGroups, textFilter) {
|
43
33
|
let result = storageGroups || [];
|
44
34
|
result = filterGroupsByText(result, textFilter);
|
45
|
-
result = filterGroupsByUsage(result, usageFilter);
|
46
35
|
return result;
|
47
36
|
}
|
48
|
-
// ==== Complex selectors ====
|
49
|
-
export function getUsageFilterOptions(groups) {
|
50
|
-
const items = {};
|
51
|
-
groups === null || groups === void 0 ? void 0 : groups.forEach((group) => {
|
52
|
-
// Get groups usage with step 5
|
53
|
-
const usage = getUsage(group, 5);
|
54
|
-
if (!Object.prototype.hasOwnProperty.call(items, usage)) {
|
55
|
-
items[usage] = 0;
|
56
|
-
}
|
57
|
-
items[usage] += 1;
|
58
|
-
});
|
59
|
-
return Object.entries(items)
|
60
|
-
.map(([threshold, count]) => ({ threshold: Number(threshold), count }))
|
61
|
-
.sort((a, b) => b.threshold - a.threshold);
|
62
|
-
}
|
63
37
|
//# sourceMappingURL=selectors.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,mBAAmB,EAAC,MAAM,oBAAoB,CAAC;AAIvD,oBAAoB;AAEpB,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AAEtE,MAAM,iBAAiB,GAAG,CAAC,QAA+B,EAAE,IAAY,EAAE,EAAE;IACxE,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC9B,OAAO,CACH,CAAA,MAAA,MAAM,CAAC,MAAM,0CAAE,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC;aAClD,MAAA,MAAM,CAAC,IAAI,0CAAE,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA,CACtD,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AACF,MAAM,kBAAkB,GAAG,CAAC,QAAgC,EAAE,IAAY,EAAE,EAAE;IAC1E,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,IAAI,CAAC,cAAc,EAAE,CAAC;QAClB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE;;QAC9B,OAAO,CACH,CAAA,MAAA,MAAM,CAAC,QAAQ,0CAAE,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC;aACvD,MAAA,MAAM,CAAC,OAAO,0CAAE,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA,CACtD,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,UAAU,WAAW,CACvB,YAAmC,EACnC,UAAkB,EAClB,YAAqC;IAErC,IAAI,MAAM,GAAG,YAAY,IAAI,EAAE,CAAC;IAChC,MAAM,GAAG,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC/C,MAAM,GAAG,mBAAmB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAEnD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,aAAqC,EAAE,UAAkB;IAClF,IAAI,MAAM,GAAG,aAAa,IAAI,EAAE,CAAC;IACjC,MAAM,GAAG,kBAAkB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAEhD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import type {
|
2
|
-
import type {
|
1
|
+
import type { NodesRequestParams } from '../../../types/api/nodes';
|
2
|
+
import type { GroupsRequestParams, StorageRequestParams } from '../../../types/api/storage';
|
3
3
|
export declare const storageApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, {
|
4
|
-
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<
|
5
|
-
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageRequestParams & {
|
4
|
+
getStorageNodesInfo: import("@reduxjs/toolkit/query").QueryDefinition<Omit<NodesRequestParams, "type">, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
|
5
|
+
getStorageGroupsInfo: import("@reduxjs/toolkit/query").QueryDefinition<StorageRequestParams & GroupsRequestParams & {
|
6
6
|
shouldUseGroupsHandler?: boolean;
|
7
7
|
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("./types").PreparedStorageResponse | undefined, "api">;
|
8
8
|
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/storage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,2BAA2B,EAAC,MAAM,SAAS,CAAC;AAEpD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACrB,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC;YAC/B,OAAO,EAAE,KAAK,EAAE,MAAwC,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAClE,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,QAAQ,CACpC,EAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAC,EAC1C,EAAC,MAAM,EAAC,CACX,CAAC;oBACF,OAAO,EAAC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,EAAC,CAAC;gBACvD,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;QACF,oBAAoB,EAAE,OAAO,CAAC,KAAK,CAAC;YAChC,OAAO,EAAE,KAAK,EACV,MAC4D,EAC5D,EAAC,MAAM,EAAC,EACV,EAAE;gBACA,IAAI,CAAC;oBACD,MAAM,MAAM,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBAC1D,OAAO,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;gBAC1B,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;SACvC,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { OrderType } from '@gravity-ui/react-data-table';
|
2
2
|
import { z } from 'zod';
|
3
3
|
import type { EFlag } from '../../../types/api/enums';
|
4
|
-
import type { TSystemStateInfo } from '../../../types/api/nodes';
|
5
|
-
import type { StorageV2SortValue } from '../../../types/api/storage';
|
4
|
+
import type { NodesGroupByField, TSystemStateInfo } from '../../../types/api/nodes';
|
5
|
+
import type { GroupsGroupByField, StorageV2SortValue } from '../../../types/api/storage';
|
6
6
|
import type { PreparedPDisk, PreparedVDisk } from '../../../utils/disks/types';
|
7
7
|
import type { NodesUptimeFilterValues } from '../../../utils/nodes';
|
8
8
|
export declare const visibleEntitiesSchema: z.ZodCatch<z.ZodNativeEnum<{
|
@@ -21,6 +21,10 @@ export interface PreparedStorageNodeFilters {
|
|
21
21
|
nodesUptimeFilter: NodesUptimeFilterValues;
|
22
22
|
visibleEntities: VisibleEntities;
|
23
23
|
database?: string;
|
24
|
+
nodeId?: string | number;
|
25
|
+
groupId?: string | number;
|
26
|
+
filterGroup?: string;
|
27
|
+
filterGroupBy?: NodesGroupByField;
|
24
28
|
}
|
25
29
|
export interface PreparedStorageNode extends TSystemStateInfo {
|
26
30
|
NodeId: number;
|
@@ -35,7 +39,11 @@ export interface PreparedStorageGroupFilters {
|
|
35
39
|
searchValue: string;
|
36
40
|
visibleEntities: VisibleEntities;
|
37
41
|
database?: string;
|
38
|
-
nodeId?: string;
|
42
|
+
nodeId?: string | number;
|
43
|
+
groupId?: string | number;
|
44
|
+
pDiskId?: string | number;
|
45
|
+
filterGroup?: string;
|
46
|
+
filterGroupBy?: GroupsGroupByField;
|
39
47
|
}
|
40
48
|
export interface PreparedStorageGroup {
|
41
49
|
PoolName?: string;
|
@@ -67,21 +75,22 @@ export interface PreparedStorageGroup {
|
|
67
75
|
State?: string;
|
68
76
|
MissingDisks?: string | number;
|
69
77
|
Available?: string;
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
}
|
74
|
-
export interface UsageFilter {
|
75
|
-
threshold: number;
|
76
|
-
count: number;
|
78
|
+
LatencyPutTabletLogMs?: number;
|
79
|
+
LatencyPutUserDataMs?: number;
|
80
|
+
LatencyGetFastMs?: number;
|
77
81
|
}
|
78
82
|
export interface StorageSortParams {
|
79
83
|
sortOrder: OrderType | undefined;
|
80
84
|
sortValue: StorageV2SortValue | undefined;
|
81
85
|
}
|
86
|
+
export type TableGroup = {
|
87
|
+
name: string;
|
88
|
+
count: number;
|
89
|
+
};
|
82
90
|
export interface PreparedStorageResponse {
|
83
91
|
nodes?: PreparedStorageNode[];
|
84
92
|
groups?: PreparedStorageGroup[];
|
85
93
|
found: number | undefined;
|
86
94
|
total: number | undefined;
|
95
|
+
tableGroups?: TableGroup[];
|
87
96
|
}
|
@@ -4,6 +4,7 @@ import { getColorSeverity, getSeverityColor } from '../../../utils/disks/helpers
|
|
4
4
|
import { preparePDiskData, prepareVDiskData } from '../../../utils/disks/prepareDisks';
|
5
5
|
import { prepareNodeSystemState } from '../../../utils/nodes';
|
6
6
|
import { getUsage } from '../../../utils/storage';
|
7
|
+
import { parseUsToMs } from '../../../utils/timeParsers';
|
7
8
|
// ==== Prepare groups ====
|
8
9
|
function getGroupDiskSpaceStatus(group) {
|
9
10
|
const { DiskSpace, VDisks = [] } = group;
|
@@ -133,12 +134,22 @@ const prepareStorageNodeData = (node) => {
|
|
133
134
|
};
|
134
135
|
// ==== Prepare responses ====
|
135
136
|
export const prepareStorageNodesResponse = (data) => {
|
136
|
-
const { Nodes, TotalNodes, FoundNodes } = data;
|
137
|
+
const { Nodes, TotalNodes, FoundNodes, NodeGroups } = data;
|
138
|
+
const tableGroups = NodeGroups === null || NodeGroups === void 0 ? void 0 : NodeGroups.map(({ GroupName, NodeCount }) => {
|
139
|
+
if (GroupName && NodeCount) {
|
140
|
+
return {
|
141
|
+
name: GroupName,
|
142
|
+
count: Number(NodeCount),
|
143
|
+
};
|
144
|
+
}
|
145
|
+
return undefined;
|
146
|
+
}).filter((group) => Boolean(group));
|
137
147
|
const preparedNodes = Nodes === null || Nodes === void 0 ? void 0 : Nodes.map(prepareStorageNodeData);
|
138
148
|
return {
|
139
149
|
nodes: preparedNodes,
|
140
150
|
total: Number(TotalNodes) || (preparedNodes === null || preparedNodes === void 0 ? void 0 : preparedNodes.length),
|
141
151
|
found: Number(FoundNodes),
|
152
|
+
tableGroups,
|
142
153
|
};
|
143
154
|
};
|
144
155
|
export const prepareStorageResponse = (data) => {
|
@@ -151,9 +162,9 @@ export const prepareStorageResponse = (data) => {
|
|
151
162
|
};
|
152
163
|
};
|
153
164
|
export function prepareGroupsResponse(data) {
|
154
|
-
const { FoundGroups, TotalGroups, StorageGroups = [] } = data;
|
165
|
+
const { FoundGroups, TotalGroups, StorageGroups = [], StorageGroupGroups } = data;
|
155
166
|
const preparedGroups = StorageGroups.map((group) => {
|
156
|
-
const { Usage, Read, Write, Used, Limit, MissingDisks, VDisks = [], Overall } = group;
|
167
|
+
const { Usage, Read, Write, Used, Limit, MissingDisks, VDisks = [], Overall, LatencyPutTabletLog, LatencyPutUserData, LatencyGetFast, } = group;
|
157
168
|
const vDisks = VDisks.map((disk) => {
|
158
169
|
var _a;
|
159
170
|
const whiteboardVDisk = disk.Whiteboard;
|
@@ -176,16 +187,29 @@ export function prepareGroupsResponse(data) {
|
|
176
187
|
Write: Number(Write),
|
177
188
|
Used: Number(Used),
|
178
189
|
Limit: Number(Limit),
|
190
|
+
LatencyPutTabletLogMs: parseUsToMs(LatencyPutTabletLog),
|
191
|
+
LatencyPutUserDataMs: parseUsToMs(LatencyPutUserData),
|
192
|
+
LatencyGetFastMs: parseUsToMs(LatencyGetFast),
|
179
193
|
Degraded: Number(MissingDisks),
|
180
194
|
Overall,
|
181
195
|
VDisks: vDisks,
|
182
196
|
DiskSpace: diskSpaceStatus,
|
183
197
|
};
|
184
198
|
});
|
199
|
+
const tableGroups = StorageGroupGroups === null || StorageGroupGroups === void 0 ? void 0 : StorageGroupGroups.map(({ GroupName, GroupCount }) => {
|
200
|
+
if (GroupName && GroupCount) {
|
201
|
+
return {
|
202
|
+
name: GroupName,
|
203
|
+
count: Number(GroupCount),
|
204
|
+
};
|
205
|
+
}
|
206
|
+
return undefined;
|
207
|
+
}).filter((group) => Boolean(group));
|
185
208
|
return {
|
186
209
|
groups: preparedGroups,
|
187
210
|
total: Number(TotalGroups) || preparedGroups.length,
|
188
211
|
found: Number(FoundGroups),
|
212
|
+
tableGroups,
|
189
213
|
};
|
190
214
|
}
|
191
215
|
//# sourceMappingURL=utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/utils.ts"],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{ api } from './api';
|
3
3
|
export const tabletApi = api.injectEndpoints({
|
4
4
|
endpoints: (build) => ({
|
@@ -10,14 +10,16 @@ export const tabletApi = api.injectEndpoints({
|
|
10
10
|
window.api.getTabletHistory({ id, database, nodeId }, { signal }),
|
11
11
|
window.api.getNodesList({ signal }),
|
12
12
|
]);
|
13
|
-
const
|
13
|
+
const nodeHostsMap = prepareNodeHostsMap(nodesList);
|
14
14
|
const historyData = Object.keys(historyResponseData).reduce((list, nodeId) => {
|
15
15
|
var _a;
|
16
16
|
const tabletInfo = (_a = historyResponseData[nodeId]) === null || _a === void 0 ? void 0 : _a.TabletStateInfo;
|
17
17
|
if (tabletInfo && tabletInfo.length) {
|
18
18
|
const leaderTablet = tabletInfo.find((t) => t.Leader) || tabletInfo[0];
|
19
19
|
const { ChangeTime, Generation, State, Leader, FollowerId } = leaderTablet;
|
20
|
-
const fqdn =
|
20
|
+
const fqdn = nodeHostsMap && nodeId
|
21
|
+
? nodeHostsMap.get(Number(nodeId))
|
22
|
+
: undefined;
|
21
23
|
if (State !== 'Dead') {
|
22
24
|
list.push({
|
23
25
|
nodeId,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tablet.js","sourceRoot":"","sources":["../../../src/store/reducers/tablet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"tablet.js","sourceRoot":"","sources":["../../../src/store/reducers/tablet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC,eAAe,CAAC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;YACnB,OAAO,EAAE,KAAK,EACV,EAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAmD,EACxE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,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE;gBACtC,OAAO;oBACH,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAC;oBAC5B,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAC;iBAC/B,CAAC;YACN,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -133,10 +133,10 @@ export declare const selectTabletsWithFqdn: ((state: {
|
|
133
133
|
resultsCount: () => number;
|
134
134
|
resetResultsCount: () => void;
|
135
135
|
} & {
|
136
|
-
resultFunc: (resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").
|
136
|
+
resultFunc: (resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodeHostsMap | undefined) => (TTabletStateInfo & {
|
137
137
|
fqdn?: string;
|
138
138
|
})[];
|
139
|
-
memoizedResultFunc: ((resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").
|
139
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../../types/api/tablet").TEvTabletStateResponse | undefined, resultFuncArgs_1: import("../../types/store/nodesList").NodeHostsMap | undefined) => (TTabletStateInfo & {
|
140
140
|
fqdn?: string;
|
141
141
|
})[]) & {
|
142
142
|
clearCache: () => void;
|
@@ -146,7 +146,7 @@ export declare const selectTabletsWithFqdn: ((state: {
|
|
146
146
|
lastResult: () => (TTabletStateInfo & {
|
147
147
|
fqdn?: string;
|
148
148
|
})[];
|
149
|
-
dependencies: [(state: RootState, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").
|
149
|
+
dependencies: [(state: RootState, params: TabletsApiRequestParams) => import("../../types/api/tablet").TEvTabletStateResponse | undefined, (state: RootState) => import("../../types/store/nodesList").NodeHostsMap | undefined];
|
150
150
|
recomputations: () => number;
|
151
151
|
resetRecomputations: () => void;
|
152
152
|
dependencyRecomputations: () => number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createSelector, lruMemoize } from '@reduxjs/toolkit';
|
2
2
|
import isEqual from 'lodash/isEqual';
|
3
3
|
import { api } from './api';
|
4
|
-
import {
|
4
|
+
import { selectNodeHostsMap } from './nodesList';
|
5
5
|
export const tabletsApi = api.injectEndpoints({
|
6
6
|
endpoints: (build) => ({
|
7
7
|
getTabletsInfo: build.query({
|
@@ -24,15 +24,15 @@ const getTabletsInfoSelector = createSelector((params) => params, (params) => ta
|
|
24
24
|
argsMemoizeOptions: { equalityCheck: isEqual },
|
25
25
|
});
|
26
26
|
export const selectGetTabletsInfo = createSelector((state) => state, (_state, params) => getTabletsInfoSelector(params), (state, selectTabletsInfo) => selectTabletsInfo(state).data);
|
27
|
-
export const selectTabletsWithFqdn = createSelector((state, params) => selectGetTabletsInfo(state, params), (state) =>
|
27
|
+
export const selectTabletsWithFqdn = createSelector((state, params) => selectGetTabletsInfo(state, params), (state) => selectNodeHostsMap(state), (data, nodeHostsMap) => {
|
28
28
|
if (!(data === null || data === void 0 ? void 0 : data.TabletStateInfo)) {
|
29
29
|
return [];
|
30
30
|
}
|
31
|
-
if (!
|
31
|
+
if (!nodeHostsMap) {
|
32
32
|
return data.TabletStateInfo;
|
33
33
|
}
|
34
34
|
return data.TabletStateInfo.map((tablet) => {
|
35
|
-
const fqdn = tablet.NodeId === undefined ? undefined :
|
35
|
+
const fqdn = tablet.NodeId === undefined ? undefined : nodeHostsMap.get(tablet.NodeId);
|
36
36
|
return { ...tablet, fqdn };
|
37
37
|
});
|
38
38
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tablets.js","sourceRoot":"","sources":["../../../src/store/reducers/tablets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5D,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAMrC,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"tablets.js","sourceRoot":"","sources":["../../../src/store/reducers/tablets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5D,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAMrC,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,eAAe,CAAC;IAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,cAAc,EAAE,KAAK,CAAC,KAAK,CAAC;YACxB,OAAO,EAAE,KAAK,EAAE,MAA+B,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBACzD,IAAI,CAAC;oBACD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,cAAc,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC,CAAC;oBAC/D,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAC,CAAC;SACtD,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,cAAc,CACz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;IAC7B,CAAC,CAAC,CAAC;AACP,CAAC,CACJ,CAAC"}
|
@@ -9,7 +9,7 @@ export declare const showTooltip: (node: EventTarget | null, data: any, template
|
|
9
9
|
type: string;
|
10
10
|
node: EventTarget | null;
|
11
11
|
data: any;
|
12
|
-
templateType: "pool" | "
|
12
|
+
templateType: "pool" | "node" | "tablet" | "nodeEndpoints" | "tabletsOverall" | "histogram" | "cell" | "json";
|
13
13
|
additionalData: any;
|
14
14
|
positions: ITooltipPositions | undefined;
|
15
15
|
};
|
package/dist/styles/mixins.scss
CHANGED
@@ -352,10 +352,10 @@
|
|
352
352
|
}
|
353
353
|
|
354
354
|
&_orange {
|
355
|
-
--entity-state-font-color: var(--g-color-
|
355
|
+
--entity-state-font-color: var(--g-color-private-orange-500);
|
356
356
|
--entity-state-border-color: var(--ydb-color-status-orange);
|
357
|
-
--entity-state-background-color: var(--g-color-
|
358
|
-
--entity-state-fill-color: var(--g-color-
|
357
|
+
--entity-state-background-color: var(--g-color-private-orange-100);
|
358
|
+
--entity-state-fill-color: var(--g-color-private-orange-300);
|
359
359
|
}
|
360
360
|
&_red {
|
361
361
|
--entity-state-font-color: var(--g-color-text-danger);
|
@@ -4,4 +4,4 @@
|
|
4
4
|
export interface CapabilitiesResponse {
|
5
5
|
Capabilities: Record<Partial<Capability>, number>;
|
6
6
|
}
|
7
|
-
export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query' | '/viewer/feature_flags';
|
7
|
+
export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query' | '/viewer/feature_flags' | '/viewer/nodes';
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { BackendSortParam } from './common';
|
1
2
|
import type { EFlag } from './enums';
|
2
3
|
import type { TPDiskStateInfo } from './pdisk';
|
3
4
|
import type { TTabletStateInfo } from './tablet';
|
@@ -77,6 +78,7 @@ export interface TSystemStateInfo {
|
|
77
78
|
DisconnectTime?: string;
|
78
79
|
SharedCacheStats?: TNodeSharedCache;
|
79
80
|
TotalSessions?: number;
|
81
|
+
NodeName?: string;
|
80
82
|
}
|
81
83
|
export type PoolName = 'System' | 'User' | 'Batch' | 'IO' | 'IC';
|
82
84
|
export interface TPoolStats {
|
@@ -116,4 +118,36 @@ declare enum EConfigState {
|
|
116
118
|
'Consistent' = "Consistent",
|
117
119
|
'Outdated' = "Outdated"
|
118
120
|
}
|
121
|
+
type NodesType = 'static' | 'dynamic' | 'any';
|
122
|
+
type NodesWithFilter = 'space' | 'missing' | 'all';
|
123
|
+
export type NodesGroupByField = 'NodeId' | 'Host' | 'NodeName' | 'Database' | 'DiskSpaceUsage' | 'DC' | 'Rack' | 'Missing' | 'Uptime' | 'Version';
|
124
|
+
export type NodesRequiredField = 'NodeId' | 'SystemState' | 'PDisks' | 'VDisks' | 'Tablets' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'Memory' | 'CPU' | 'LoadAverage' | 'Missing' | 'DiskSpaceUsage' | 'SubDomainKey' | 'DisconnectTime' | 'Database';
|
125
|
+
export type NodesSortValue = 'NodeId' | 'Host' | 'NodeName' | 'DC' | 'Rack' | 'Version' | 'Uptime' | 'CPU' | 'LoadAverage' | 'Memory' | `Missing` | `DiskSpaceUsage` | `Database`;
|
126
|
+
export type NodesSort = BackendSortParam<NodesSortValue>;
|
127
|
+
export interface NodesRequestParams {
|
128
|
+
/** @deprecated use database instead */
|
129
|
+
tenant?: string;
|
130
|
+
database?: string;
|
131
|
+
path?: string;
|
132
|
+
node_id?: string | number;
|
133
|
+
group_id?: string | number;
|
134
|
+
pool?: string;
|
135
|
+
type?: NodesType;
|
136
|
+
with?: NodesWithFilter;
|
137
|
+
storage?: boolean;
|
138
|
+
tablets?: boolean;
|
139
|
+
/** return nodes with less uptime in seconds */
|
140
|
+
uptime?: number;
|
141
|
+
/** return nodes with SystemState !== EFlag.Green */
|
142
|
+
problems_only?: boolean;
|
143
|
+
/** filter nodes by id or host */
|
144
|
+
filter?: string;
|
145
|
+
sort?: NodesSort;
|
146
|
+
group?: NodesGroupByField;
|
147
|
+
filter_group_by?: NodesGroupByField;
|
148
|
+
filter_group?: string;
|
149
|
+
fieldsRequired?: NodesRequiredField[] | 'all';
|
150
|
+
offset?: number;
|
151
|
+
limit?: number;
|
152
|
+
}
|
119
153
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../src/types/api/nodes.ts"],"names":[],"mappings":"AAqIA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACb,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AAC3B,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { BackendSortParam } from './common';
|
1
2
|
import type { EFlag } from './enums';
|
2
3
|
import type { EDecommitStatus, EDriveStatus, TPDiskStateInfo } from './pdisk';
|
3
4
|
import type { EVDiskStatus, TVDiskStateInfo } from './vdisk';
|
@@ -107,9 +108,9 @@ export interface StorageGroupsResponse {
|
|
107
108
|
FieldsAvailable?: number;
|
108
109
|
FieldsRequired?: number;
|
109
110
|
StorageGroups?: TGroupsStorageGroupInfo[];
|
110
|
-
StorageGroupGroups?: StorageGroupGroups;
|
111
|
+
StorageGroupGroups?: StorageGroupGroups[];
|
111
112
|
}
|
112
|
-
interface StorageGroupGroups {
|
113
|
+
export interface StorageGroupGroups {
|
113
114
|
GroupName?: string;
|
114
115
|
GroupCount?: string;
|
115
116
|
}
|
@@ -143,6 +144,24 @@ export interface TGroupsStorageGroupInfo {
|
|
143
144
|
Write?: string;
|
144
145
|
/** float */
|
145
146
|
DiskSpaceUsage?: number;
|
147
|
+
/**
|
148
|
+
* uint64
|
149
|
+
*
|
150
|
+
* time in us
|
151
|
+
*/
|
152
|
+
LatencyPutTabletLog?: string;
|
153
|
+
/**
|
154
|
+
* uint64
|
155
|
+
*
|
156
|
+
* time in us
|
157
|
+
*/
|
158
|
+
LatencyPutUserData?: string;
|
159
|
+
/**
|
160
|
+
* uint64
|
161
|
+
*
|
162
|
+
* time in us
|
163
|
+
*/
|
164
|
+
LatencyGetFast?: string;
|
146
165
|
VDisks?: TStorageVDisk[];
|
147
166
|
}
|
148
167
|
/**
|
@@ -186,16 +205,16 @@ export type EVersion = 'v1' | 'v2';
|
|
186
205
|
/**
|
187
206
|
* Values to sort /viewer/storage v2 response
|
188
207
|
*/
|
189
|
-
export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write';
|
208
|
+
export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write' | 'AllocationUnits' | 'Latency';
|
190
209
|
/**
|
191
210
|
* Values to sort /storage/groups response
|
192
211
|
*/
|
193
|
-
export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption'
|
194
|
-
export type StorageV2Sort =
|
195
|
-
export type GroupsSort =
|
212
|
+
export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption';
|
213
|
+
export type StorageV2Sort = BackendSortParam<StorageV2SortValue>;
|
214
|
+
export type GroupsSort = BackendSortParam<GroupsSortField>;
|
196
215
|
export type StorageWithFilter = 'space' | 'missing' | 'all';
|
197
|
-
export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State';
|
198
|
-
export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk';
|
216
|
+
export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State' | 'Latency';
|
217
|
+
export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk' | 'Latency';
|
199
218
|
interface BaseStorageRequestParams {
|
200
219
|
/** @deprecated use database instead */
|
201
220
|
tenant?: string;
|
@@ -220,6 +239,8 @@ export interface GroupsRequestParams extends BaseStorageRequestParams {
|
|
220
239
|
groupId?: string | number | (string | number)[];
|
221
240
|
sort?: GroupsSort;
|
222
241
|
group?: GroupsGroupByField;
|
242
|
+
filter_group_by?: GroupsGroupByField;
|
243
|
+
filter_group?: string;
|
223
244
|
fieldsRequired?: GroupsRequiredField[] | 'all';
|
224
245
|
}
|
225
246
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
export type
|
1
|
+
export type NodeHostsMap = Map<number, string>;
|