ydb-embedded-ui 7.1.0 → 8.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Graph/Graph.d.ts +1 -2
- package/dist/components/Graph/Graph.js +1 -1
- package/dist/components/Graph/Graph.js.map +1 -1
- package/dist/components/JSONTree/JSONTree.d.ts +9 -0
- package/dist/components/JSONTree/JSONTree.js +23 -0
- package/dist/components/JSONTree/JSONTree.js.map +1 -0
- package/dist/components/JSONTree/JSONTree.scss +20 -0
- package/dist/components/JSONTree/i18n/en.json +4 -0
- package/dist/components/JSONTree/i18n/index.d.ts +2 -0
- package/dist/components/JSONTree/i18n/index.js +5 -0
- package/dist/components/JSONTree/i18n/index.js.map +1 -0
- package/dist/components/MemoryViewer/MemoryViewer.scss +1 -1
- package/dist/components/Table/Table.d.ts +13 -0
- package/dist/components/Table/Table.js +21 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/Table.scss +60 -0
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js +2 -2
- package/dist/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.js.map +1 -1
- package/dist/components/nodesColumns/columns.js +1 -1
- package/dist/components/nodesColumns/constants.js +1 -1
- package/dist/components/nodesColumns/constants.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +2 -2
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +24 -8
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -26
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +2 -4
- package/dist/containers/Cluster/ClusterInfo/utils.js +2 -19
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +3 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Clusters/columns.js +5 -2
- package/dist/containers/Clusters/columns.js.map +1 -1
- package/dist/containers/Node/Node.d.ts +0 -1
- package/dist/containers/Node/Node.js +5 -3
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Operations/Operations.js +2 -1
- package/dist/containers/Operations/Operations.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +5 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +0 -30
- package/dist/containers/Storage/PaginatedStorage.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +0 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +2 -5
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +1 -0
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +5 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.d.ts +0 -5
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js +1 -1
- package/dist/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.js.map +1 -1
- package/dist/containers/Storage/utils/index.d.ts +3 -6
- package/dist/containers/Storage/utils/index.js +7 -34
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +4 -2
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/Tablet.d.ts +0 -1
- package/dist/containers/Tablet/Tablet.js +1 -1
- package/dist/containers/Tablet/Tablet.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js +5 -2
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.js.map +1 -1
- package/dist/containers/Tablet/components/TabletInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js +3 -14
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.js.map +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +0 -51
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js +6 -8
- package/dist/containers/Tablet/components/TabletStorageInfo/columns.js.map +1 -1
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js +2 -2
- package/dist/containers/Tablet/components/TabletTable/TabletTable.js.map +1 -1
- package/dist/containers/Tablets/TabletsTable.js +2 -2
- package/dist/containers/Tablets/TabletsTable.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.d.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js +2 -5
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +1 -9
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +0 -163
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +10 -10
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +0 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +0 -5
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +5 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +11 -4
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +11 -10
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.d.ts +105 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/{getTopQueriesColumns.js → columns/columns.js} +53 -44
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.d.ts +21 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js +71 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/en.json +12 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +1 -5
- package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.d.ts +12 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js +28 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/utils.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +9 -34
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.d.ts → columns/columns.d.ts} +1 -2
- package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.js → columns/columns.js} +16 -36
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/columns.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.d.ts +17 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js +55 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/constants.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/en.json +10 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.d.ts +5 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.js +17 -0
- package/dist/containers/Tenant/Diagnostics/TopShards/utils.js.map +1 -0
- package/dist/containers/Tenant/Query/Issues/models.d.ts +2 -2
- package/dist/containers/Tenant/Query/Issues/models.js +2 -2
- package/dist/containers/Tenant/Query/Issues/models.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/helpers.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js +49 -8
- package/dist/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js +2 -5
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +0 -3
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js +16 -25
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +3 -53
- package/dist/containers/Tenant/Query/QueryResult/i18n/en.json +2 -1
- package/dist/containers/Tenant/Query/QueryResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +0 -104
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +4 -4
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.d.ts +0 -12
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/columns.js.map +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.d.ts +1 -2
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js +1 -1
- package/dist/containers/Tenant/Schema/SchemaViewer/prepareData.js.map +1 -1
- package/dist/containers/Tenant/utils/schema.d.ts +0 -1
- package/dist/containers/Tenant/utils/schema.js +0 -18
- package/dist/containers/Tenant/utils/schema.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +1 -3
- 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.js +7 -2
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +0 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/lib.d.ts +2 -2
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/routes.d.ts +2 -2
- package/dist/services/settings.d.ts +1 -1
- package/dist/services/settings.js +2 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +2 -164
- package/dist/store/reducers/cluster/cluster.js +1 -1
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/types.d.ts +2 -6
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +8 -8
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +10 -7
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/types.d.ts +0 -3
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +0 -195
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +1 -6
- package/dist/store/reducers/query/types.d.ts +2 -1
- package/dist/store/reducers/schema/schema.d.ts +0 -6
- package/dist/store/reducers/schema/schema.js +1 -1
- package/dist/store/reducers/schema/schema.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +1 -4
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +3 -5
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/types.d.ts +0 -3
- package/dist/store/reducers/storage/types.d.ts +1 -6
- package/dist/store/reducers/storage/types.js.map +1 -1
- package/dist/store/reducers/storage/utils.d.ts +2 -5
- package/dist/store/reducers/storage/utils.js +3 -3
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tableSchemaData.d.ts +2 -1
- package/dist/store/reducers/tablets.d.ts +0 -131
- package/dist/store/reducers/tablets.js +1 -1
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tenants/utils.d.ts +0 -11
- package/dist/store/reducers/tenants/utils.js +1 -14
- package/dist/store/reducers/tenants/utils.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/store/reducers/tooltip.js +1 -1
- package/dist/store/reducers/vdisk/types.d.ts +0 -2
- package/dist/types/additionalProps.d.ts +2 -2
- package/dist/types/api/error.d.ts +1 -1
- package/dist/types/api/meta.d.ts +1 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/components.js +2 -0
- package/dist/types/components.js.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/store/tablet.d.ts +1 -8
- package/dist/types/store/tablets.d.ts +0 -8
- package/dist/types/store/tooltip.d.ts +2 -4
- package/dist/utils/constants.d.ts +1 -38
- package/dist/utils/constants.js +2 -28
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/dataFormatters/__test__/formatUptime.test.d.ts +1 -0
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js +56 -0
- package/dist/utils/dataFormatters/__test__/formatUptime.test.js.map +1 -0
- package/dist/utils/dataFormatters/dataFormatters.d.ts +8 -4
- package/dist/utils/dataFormatters/dataFormatters.js +51 -21
- package/dist/utils/dataFormatters/dataFormatters.js.map +1 -1
- package/dist/utils/dataFormatters/i18n/en.json +3 -1
- package/dist/utils/dataFormatters/i18n/index.d.ts +1 -1
- package/dist/utils/dataFormatters/i18n/index.js +1 -2
- package/dist/utils/dataFormatters/i18n/index.js.map +1 -1
- package/dist/utils/developerUI/developerUI.d.ts +1 -0
- package/dist/utils/developerUI/developerUI.js +3 -0
- package/dist/utils/developerUI/developerUI.js.map +1 -1
- package/dist/utils/errors/i18n/en.json +3 -0
- package/dist/utils/errors/i18n/index.d.ts +2 -0
- package/dist/utils/errors/i18n/index.js +5 -0
- package/dist/utils/errors/i18n/index.js.map +1 -0
- package/dist/utils/errors/index.d.ts +6 -0
- package/dist/utils/errors/index.js +33 -0
- package/dist/utils/errors/index.js.map +1 -0
- package/dist/utils/hooks/__test__/useTableSort.test.d.ts +1 -0
- package/dist/utils/hooks/__test__/useTableSort.test.js +188 -0
- package/dist/utils/hooks/__test__/useTableSort.test.js.map +1 -0
- package/dist/utils/hooks/useTableSort.d.ts +10 -5
- package/dist/utils/hooks/useTableSort.js +61 -16
- package/dist/utils/hooks/useTableSort.js.map +1 -1
- package/dist/utils/monitoring.d.ts +3 -2
- package/dist/utils/nodes.d.ts +1 -1
- package/dist/utils/nodes.js +10 -4
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/tablet.d.ts +0 -2
- package/dist/utils/tablet.js +0 -10
- package/dist/utils/tablet.js.map +1 -1
- package/dist/utils/tooltip.d.ts +0 -4
- package/dist/utils/tooltip.js +1 -23
- package/dist/utils/tooltip.js.map +1 -1
- package/dist/utils/utils.d.ts +0 -1
- package/dist/utils/utils.js +0 -10
- package/dist/utils/utils.js.map +1 -1
- package/package.json +4 -4
- package/dist/components/GroupInfo/GroupInfo.d.ts +0 -7
- package/dist/components/GroupInfo/GroupInfo.js +0 -27
- package/dist/components/GroupInfo/GroupInfo.js.map +0 -1
- package/dist/components/GroupInfo/i18n/en.json +0 -6
- package/dist/components/GroupInfo/i18n/index.d.ts +0 -1
- package/dist/components/GroupInfo/i18n/index.js +0 -5
- package/dist/components/GroupInfo/i18n/index.js.map +0 -1
- package/dist/components/QuerySettingsDescription/index.d.ts +0 -1
- package/dist/components/QuerySettingsDescription/index.js +0 -2
- package/dist/components/QuerySettingsDescription/index.js.map +0 -1
- package/dist/components/Tablet/Tablet.d.ts +0 -8
- package/dist/components/Tablet/Tablet.js +0 -18
- package/dist/components/Tablet/Tablet.js.map +0 -1
- package/dist/components/Tablet/Tablet.scss +0 -40
- package/dist/components/Tablet/index.d.ts +0 -1
- package/dist/components/Tablet/index.js +0 -2
- package/dist/components/Tablet/index.js.map +0 -1
- package/dist/components/TabletsOverall/TabletsOverall.d.ts +0 -8
- package/dist/components/TabletsOverall/TabletsOverall.js +0 -69
- package/dist/components/TabletsOverall/TabletsOverall.js.map +0 -1
- package/dist/components/TabletsOverall/TabletsOverall.scss +0 -18
- package/dist/containers/ClusterModeGuard/index.d.ts +0 -1
- package/dist/containers/ClusterModeGuard/index.js +0 -2
- package/dist/containers/ClusterModeGuard/index.js.map +0 -1
- package/dist/containers/Nodes/columns/hooks.d.ts +0 -6
- package/dist/containers/Nodes/columns/hooks.js +0 -12
- package/dist/containers/Nodes/columns/hooks.js.map +0 -1
- package/dist/containers/Nodes/index.d.ts +0 -1
- package/dist/containers/Nodes/index.js +0 -2
- package/dist/containers/Nodes/index.js.map +0 -1
- package/dist/containers/PDiskPage/shared.d.ts +0 -1
- package/dist/containers/PDiskPage/shared.js +0 -3
- package/dist/containers/PDiskPage/shared.js.map +0 -1
- package/dist/containers/Storage/Storage.d.ts +0 -11
- package/dist/containers/Storage/Storage.js +0 -91
- package/dist/containers/Storage/Storage.js.map +0 -1
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.d.ts +0 -14
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js +0 -14
- package/dist/containers/Storage/StorageGroups/StorageGroupsTable.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.d.ts +0 -16
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js +0 -22
- package/dist/containers/Storage/StorageNodes/StorageNodesTable.js.map +0 -1
- package/dist/containers/Storage/StorageNodes/shared.d.ts +0 -3
- package/dist/containers/Storage/StorageNodes/shared.js +0 -5
- package/dist/containers/Storage/StorageNodes/shared.js.map +0 -1
- package/dist/containers/Storage/StorageWrapper.d.ts +0 -10
- package/dist/containers/Storage/StorageWrapper.js +0 -20
- package/dist/containers/Storage/StorageWrapper.js.map +0 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.d.ts +0 -8
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +0 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.js.map +0 -1
- package/dist/store/reducers/nodes/selectors.d.ts +0 -11
- package/dist/store/reducers/nodes/selectors.js +0 -39
- package/dist/store/reducers/nodes/selectors.js.map +0 -1
- package/dist/store/reducers/schema/types.d.ts +0 -10
- package/dist/store/reducers/schema/types.js +0 -2
- package/dist/store/reducers/schema/types.js.map +0 -1
- package/dist/store/reducers/storage/selectors.d.ts +0 -4
- package/dist/store/reducers/storage/selectors.js +0 -37
- package/dist/store/reducers/storage/selectors.js.map +0 -1
- package/dist/utils/dataFormatters/i18n/ru.json +0 -3
- package/dist/utils/diagnostics.d.ts +0 -23
- package/dist/utils/diagnostics.js +0 -37
- package/dist/utils/diagnostics.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"TabletsOverall.js","sourceRoot":"","sources":["../../../src/components/TabletsOverall/TabletsOverall.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAEnD,OAAO,uBAAuB,CAAC;AAE/B,kGAAkG;AAClG,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAEjC,MAAM,MAAM,GAAG;IACX,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C,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEhF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,CAAC,KAAK,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,aACrC,eAAM,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,yBAAiB,EAC7D,cACI,YAAY,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAC3C,YAAY,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,YAEnF,KAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,GAAI,GAC/C,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './ClusterModeGuard';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/ClusterModeGuard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import type { GetNodesColumnsParams } from '../../../components/nodesColumns/types';
|
2
|
-
export declare function useNodesSelectedColumns(params: GetNodesColumnsParams): {
|
3
|
-
columnsToShow: import("../../../utils/tableUtils/types").Column<import("../../../store/reducers/nodes/types").NodesPreparedEntity>[];
|
4
|
-
columnsToSelect: import("@gravity-ui/uikit").TableColumnSetupItem[];
|
5
|
-
setColumns: (updated: import("@gravity-ui/uikit").TableColumnSetupItem[]) => void;
|
6
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { NODES_COLUMNS_TITLES } from '../../../components/nodesColumns/constants';
|
3
|
-
import { useSelectedColumns } from '../../../utils/hooks/useSelectedColumns';
|
4
|
-
import { getNodesColumns } from './columns';
|
5
|
-
import { DEFAULT_NODES_COLUMNS, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, REQUIRED_NODES_COLUMNS, } from './constants';
|
6
|
-
export function useNodesSelectedColumns(params) {
|
7
|
-
const columns = React.useMemo(() => {
|
8
|
-
return getNodesColumns(params);
|
9
|
-
}, [params]);
|
10
|
-
return useSelectedColumns(columns, NODES_TABLE_SELECTED_COLUMNS_LS_KEY, NODES_COLUMNS_TITLES, DEFAULT_NODES_COLUMNS, REQUIRED_NODES_COLUMNS);
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=hooks.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../../src/containers/Nodes/columns/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAC,kBAAkB,EAAC,MAAM,yCAAyC,CAAC;AAE3E,OAAO,EAAC,eAAe,EAAC,MAAM,WAAW,CAAC;AAC1C,OAAO,EACH,qBAAqB,EACrB,mCAAmC,EACnC,sBAAsB,GACzB,MAAM,aAAa,CAAC;AAErB,MAAM,UAAU,uBAAuB,CAAC,MAA6B;IACjE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QAC/B,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,kBAAkB,CACrB,OAAO,EACP,mCAAmC,EACnC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CACzB,CAAC;AACN,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './Nodes';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/Nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const pdiskPageCn: import("@bem-react/classname").ClassNameFormatter;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/containers/PDiskPage/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { StorageViewContext } from './types';
|
2
|
-
import './Storage.scss';
|
3
|
-
interface StorageProps {
|
4
|
-
database?: string;
|
5
|
-
nodeId?: string | number;
|
6
|
-
groupId?: string | number;
|
7
|
-
pDiskId?: string | number;
|
8
|
-
viewContext: StorageViewContext;
|
9
|
-
}
|
10
|
-
export declare const Storage: ({ database, viewContext, nodeId, groupId, pDiskId }: StorageProps) => import("react/jsx-runtime").JSX.Element;
|
11
|
-
export {};
|
@@ -1,91 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
|
-
import { AccessDenied } from '../../components/Errors/403';
|
4
|
-
import { isAccessError } from '../../components/Errors/PageError/PageError';
|
5
|
-
import { ResponseError } from '../../components/Errors/ResponseError';
|
6
|
-
import { TableWithControlsLayout } from '../../components/TableWithControlsLayout/TableWithControlsLayout';
|
7
|
-
import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../store/reducers/capabilities/hooks';
|
8
|
-
import { useClusterBaseInfo } from '../../store/reducers/cluster/cluster';
|
9
|
-
import { filterGroups, filterNodes } from '../../store/reducers/storage/selectors';
|
10
|
-
import { storageApi } from '../../store/reducers/storage/storage';
|
11
|
-
import { useAutoRefreshInterval, useTableSort } from '../../utils/hooks';
|
12
|
-
import { useAdditionalNodeProps } from '../AppWithClusters/useClusterData';
|
13
|
-
import { StorageGroupsControls, StorageNodesControls } from './StorageControls/StorageControls';
|
14
|
-
import { StorageGroupsTable } from './StorageGroups/StorageGroupsTable';
|
15
|
-
import { useStorageGroupsSelectedColumns } from './StorageGroups/columns/hooks';
|
16
|
-
import { StorageNodesTable } from './StorageNodes/StorageNodesTable';
|
17
|
-
import { useStorageNodesSelectedColumns } from './StorageNodes/columns/hooks';
|
18
|
-
import { b } from './shared';
|
19
|
-
import { useStorageQueryParams } from './useStorageQueryParams';
|
20
|
-
import { defaultSortNode, getDefaultSortGroup } from './utils';
|
21
|
-
import './Storage.scss';
|
22
|
-
export const Storage = ({ database, viewContext, nodeId, groupId, pDiskId }) => {
|
23
|
-
var _a, _b;
|
24
|
-
const { balancer } = useClusterBaseInfo();
|
25
|
-
const { additionalNodesProps } = useAdditionalNodeProps({ balancer });
|
26
|
-
const { storageType, searchValue, visibleEntities, nodesUptimeFilter, handleShowAllGroups, handleShowAllNodes, } = useStorageQueryParams();
|
27
|
-
const capabilitiesLoaded = useCapabilitiesLoaded();
|
28
|
-
const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();
|
29
|
-
const [autoRefreshInterval] = useAutoRefreshInterval();
|
30
|
-
const isGroups = storageType === 'groups';
|
31
|
-
const isNodes = storageType === 'nodes';
|
32
|
-
const [nodeSort, setNodeSort] = React.useState({
|
33
|
-
sortOrder: undefined,
|
34
|
-
sortValue: undefined,
|
35
|
-
});
|
36
|
-
const nodesSortParams = nodeSort.sortValue ? nodeSort : defaultSortNode;
|
37
|
-
const [groupSort, setGroupSort] = React.useState({
|
38
|
-
sortOrder: undefined,
|
39
|
-
sortValue: undefined,
|
40
|
-
});
|
41
|
-
const groupsSortParams = groupSort.sortOrder ? groupSort : getDefaultSortGroup(visibleEntities);
|
42
|
-
const { columnsToShow: storageNodesColumnsToShow, columnsToSelect: storageNodesColumnsToSelect, setColumns: setStorageNodesSelectedColumns, } = useStorageNodesSelectedColumns({
|
43
|
-
additionalNodesProps,
|
44
|
-
visibleEntities,
|
45
|
-
database,
|
46
|
-
viewContext,
|
47
|
-
});
|
48
|
-
const { columnsToShow: storageGroupsColumnsToShow, columnsToSelect: storageGroupsColumnsToSelect, setColumns: setStorageGroupsSelectedColumns, } = useStorageGroupsSelectedColumns({ visibleEntities, viewContext });
|
49
|
-
const nodesQuery = storageApi.useGetStorageNodesInfoQuery({
|
50
|
-
database,
|
51
|
-
with: visibleEntities,
|
52
|
-
node_id: nodeId,
|
53
|
-
group_id: groupId,
|
54
|
-
}, {
|
55
|
-
skip: !isNodes,
|
56
|
-
pollingInterval: autoRefreshInterval,
|
57
|
-
});
|
58
|
-
const groupsQuery = storageApi.useGetStorageGroupsInfoQuery({
|
59
|
-
database,
|
60
|
-
with: visibleEntities,
|
61
|
-
nodeId,
|
62
|
-
groupId,
|
63
|
-
pDiskId,
|
64
|
-
shouldUseGroupsHandler: groupsHandlerAvailable,
|
65
|
-
fieldsRequired: 'all',
|
66
|
-
}, {
|
67
|
-
skip: !isGroups || !capabilitiesLoaded,
|
68
|
-
pollingInterval: autoRefreshInterval,
|
69
|
-
});
|
70
|
-
const { currentData, isFetching, error } = isNodes ? nodesQuery : groupsQuery;
|
71
|
-
const { currentData: { nodes = [] } = {} } = nodesQuery;
|
72
|
-
const { currentData: { groups = [] } = {} } = groupsQuery;
|
73
|
-
const nodesTotalCount = ((_a = nodesQuery.currentData) === null || _a === void 0 ? void 0 : _a.total) || 0;
|
74
|
-
const groupsTotalCount = ((_b = groupsQuery.currentData) === null || _b === void 0 ? void 0 : _b.total) || 0;
|
75
|
-
const isLoading = currentData === undefined && isFetching;
|
76
|
-
const storageNodes = React.useMemo(() => filterNodes(nodes, searchValue, nodesUptimeFilter), [nodes, nodesUptimeFilter, searchValue]);
|
77
|
-
const storageGroups = React.useMemo(() => filterGroups(groups, searchValue), [searchValue, groups]);
|
78
|
-
const [nodesSort, handleNodesSort] = useTableSort(nodesSortParams, (params) => setNodeSort(params));
|
79
|
-
const [groupsSort, handleGroupsSort] = useTableSort(groupsSortParams, (params) => setGroupSort(params));
|
80
|
-
const renderDataTable = () => {
|
81
|
-
return (_jsxs(React.Fragment, { children: [isGroups ? (_jsx(StorageGroupsTable, { visibleEntities: visibleEntities, data: storageGroups, onShowAll: handleShowAllGroups, sort: groupsSort, handleSort: handleGroupsSort, columns: storageGroupsColumnsToShow }, "groups")) : null, isNodes ? (_jsx(StorageNodesTable, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, data: storageNodes, onShowAll: handleShowAllNodes, sort: nodesSort, handleSort: handleNodesSort, columns: storageNodesColumnsToShow }, "nodes")) : null] }));
|
82
|
-
};
|
83
|
-
const renderControls = () => {
|
84
|
-
return (_jsxs(React.Fragment, { children: [isGroups ? (_jsx(StorageGroupsControls, { withTypeSelector: true, entitiesCountCurrent: storageGroups.length, entitiesCountTotal: groupsTotalCount, entitiesLoading: isLoading, columnsToSelect: storageGroupsColumnsToSelect, handleSelectedColumnsUpdate: setStorageGroupsSelectedColumns })) : null, isNodes ? (_jsx(StorageNodesControls, { withTypeSelector: true, entitiesCountCurrent: storageNodes.length, entitiesCountTotal: nodesTotalCount, entitiesLoading: isLoading, columnsToSelect: storageNodesColumnsToSelect, handleSelectedColumnsUpdate: setStorageNodesSelectedColumns })) : null] }));
|
85
|
-
};
|
86
|
-
if (isAccessError(error)) {
|
87
|
-
return _jsx(AccessDenied, { position: "left" });
|
88
|
-
}
|
89
|
-
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), error ? _jsx(ResponseError, { error: error }) : null, _jsx(TableWithControlsLayout.Table, { loading: isLoading || !capabilitiesLoaded, className: b('table'), children: currentData ? renderDataTable() : null })] }));
|
90
|
-
};
|
91
|
-
//# sourceMappingURL=Storage.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Storage.js","sourceRoot":"","sources":["../../../src/containers/Storage/Storage.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,YA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qBAAqB,IAClB,gBAAgB,QAChB,oBAAoB,EAAE,aAAa,CAAC,MAAM,EAC1C,kBAAkB,EAAE,gBAAgB,EACpC,eAAe,EAAE,SAAS,EAC1B,eAAe,EAAE,4BAA4B,EAC7C,2BAA2B,EAAE,+BAA+B,GAC9D,CACL,CAAC,CAAC,CAAC,IAAI,EACP,OAAO,CAAC,CAAC,CAAC,CACP,KAAC,oBAAoB,IACjB,gBAAgB,QAChB,oBAAoB,EAAE,YAAY,CAAC,MAAM,EACzC,kBAAkB,EAAE,eAAe,EACnC,eAAe,EAAE,SAAS,EAC1B,eAAe,EAAE,2BAA2B,EAC5C,2BAA2B,EAAE,8BAA8B,GAC7D,CACL,CAAC,CAAC,CAAC,IAAI,IACK,CACpB,CAAC;IACN,CAAC,CAAC;IAEF,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,KAAC,YAAY,IAAC,QAAQ,EAAC,MAAM,GAAG,CAAC;IAC5C,CAAC;IAED,OAAO,CACH,MAAC,uBAAuB,eACpB,KAAC,uBAAuB,CAAC,QAAQ,cAAE,cAAc,EAAE,GAAoC,EACtF,KAAK,CAAC,CAAC,CAAC,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/C,KAAC,uBAAuB,CAAC,KAAK,IAC1B,OAAO,EAAE,SAAS,IAAI,CAAC,kBAAkB,EACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,YAEpB,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,IAAI,GACX,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import type { SortOrder } from '@gravity-ui/react-data-table';
|
2
|
-
import type { PreparedStorageGroup, VisibleEntities } from '../../../store/reducers/storage/types';
|
3
|
-
import type { HandleSort } from '../../../utils/hooks/useTableSort';
|
4
|
-
import type { StorageGroupsColumn } from './columns/types';
|
5
|
-
interface StorageGroupsTableProps {
|
6
|
-
data: PreparedStorageGroup[];
|
7
|
-
columns: StorageGroupsColumn[];
|
8
|
-
visibleEntities: VisibleEntities;
|
9
|
-
onShowAll?: VoidFunction;
|
10
|
-
sort?: SortOrder;
|
11
|
-
handleSort?: HandleSort;
|
12
|
-
}
|
13
|
-
export declare function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }: StorageGroupsTableProps): import("react/jsx-runtime").JSX.Element;
|
14
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
|
3
|
-
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
4
|
-
import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
|
5
|
-
import { StorageGroupsEmptyDataMessage } from './StorageGroupsEmptyDataMessage';
|
6
|
-
import { STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
7
|
-
import i18n from './i18n';
|
8
|
-
export function StorageGroupsTable({ data, columns, visibleEntities, onShowAll, sort, handleSort, }) {
|
9
|
-
if (!data.length && visibleEntities !== VISIBLE_ENTITIES.all) {
|
10
|
-
return (_jsx(StorageGroupsEmptyDataMessage, { onShowAll: onShowAll, visibleEntities: visibleEntities }));
|
11
|
-
}
|
12
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('empty.default'), sortOrder: sort, onSort: handleSort }, visibleEntities));
|
13
|
-
}
|
14
|
-
//# sourceMappingURL=StorageGroupsTable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"StorageGroupsTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageGroups/StorageGroupsTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAGhE,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAC,mCAAmC,EAAC,MAAM,qBAAqB,CAAC;AAExE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAW1B,MAAM,UAAU,kBAAkB,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,SAAS,EACT,IAAI,EACJ,UAAU,GACY;IACtB,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,eAAe,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC;QAC3D,OAAO,CACH,KAAC,6BAA6B,IAC1B,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,GAClC,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,mCAAmC,EAEtD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IANb,eAAe,CAOtB,CACL,CAAC;AACN,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { SortOrder } from '@gravity-ui/react-data-table';
|
2
|
-
import type { PreparedStorageNode, VisibleEntities } from '../../../store/reducers/storage/types';
|
3
|
-
import type { HandleSort } from '../../../utils/hooks/useTableSort';
|
4
|
-
import { NodesUptimeFilterValues } from '../../../utils/nodes';
|
5
|
-
import type { StorageNodesColumn } from './columns/types';
|
6
|
-
interface StorageNodesTableProps {
|
7
|
-
data: PreparedStorageNode[];
|
8
|
-
columns: StorageNodesColumn[];
|
9
|
-
visibleEntities: VisibleEntities;
|
10
|
-
nodesUptimeFilter: NodesUptimeFilterValues;
|
11
|
-
sort?: SortOrder;
|
12
|
-
onShowAll?: VoidFunction;
|
13
|
-
handleSort?: HandleSort;
|
14
|
-
}
|
15
|
-
export declare function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }: StorageNodesTableProps): import("react/jsx-runtime").JSX.Element;
|
16
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { ResizeableDataTable } from '../../../components/ResizeableDataTable/ResizeableDataTable';
|
3
|
-
import { VISIBLE_ENTITIES } from '../../../store/reducers/storage/constants';
|
4
|
-
import { DEFAULT_TABLE_SETTINGS } from '../../../utils/constants';
|
5
|
-
import { NodesUptimeFilterValues } from '../../../utils/nodes';
|
6
|
-
import { StorageNodesEmptyDataMessage } from './StorageNodesEmptyDataMessage';
|
7
|
-
import { STORAGE_NODES_COLUMNS_WIDTH_LS_KEY } from './columns/constants';
|
8
|
-
import i18n from './i18n';
|
9
|
-
import { getRowUnavailableClassName } from './shared';
|
10
|
-
const tableSettings = {
|
11
|
-
...DEFAULT_TABLE_SETTINGS,
|
12
|
-
dynamicRenderMinSize: 51,
|
13
|
-
};
|
14
|
-
export function StorageNodesTable({ data, columns, visibleEntities, nodesUptimeFilter, sort, onShowAll, handleSort, }) {
|
15
|
-
if (!data.length &&
|
16
|
-
(visibleEntities !== VISIBLE_ENTITIES.all ||
|
17
|
-
nodesUptimeFilter !== NodesUptimeFilterValues.All)) {
|
18
|
-
return (_jsx(StorageNodesEmptyDataMessage, { visibleEntities: visibleEntities, nodesUptimeFilter: nodesUptimeFilter, onShowAll: onShowAll }));
|
19
|
-
}
|
20
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: STORAGE_NODES_COLUMNS_WIDTH_LS_KEY, data: data, columns: columns, settings: tableSettings, emptyDataMessage: i18n('empty.default'), rowClassName: getRowUnavailableClassName, sortOrder: sort, onSort: handleSort }, visibleEntities));
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=StorageNodesTable.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"StorageNodesTable.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/StorageNodesTable.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,mBAAmB,EAAC,MAAM,6DAA6D,CAAC;AAChG,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAC,4BAA4B,EAAC,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAC,kCAAkC,EAAC,MAAM,qBAAqB,CAAC;AAEvE,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAC,0BAA0B,EAAC,MAAM,UAAU,CAAC;AAEpD,MAAM,aAAa,GAAG;IAClB,GAAG,sBAAsB;IACzB,oBAAoB,EAAE,EAAE;CAClB,CAAC;AAYX,MAAM,UAAU,iBAAiB,CAAC,EAC9B,IAAI,EACJ,OAAO,EACP,eAAe,EACf,iBAAiB,EACjB,IAAI,EACJ,SAAS,EACT,UAAU,GACW;IACrB,IACI,CAAC,IAAI,CAAC,MAAM;QACZ,CAAC,eAAe,KAAK,gBAAgB,CAAC,GAAG;YACrC,iBAAiB,KAAK,uBAAuB,CAAC,GAAG,CAAC,EACxD,CAAC;QACC,OAAO,CACH,KAAC,4BAA4B,IACzB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,GACtB,CACL,CAAC;IACN,CAAC;IAED,OAAO,CACH,KAAC,mBAAmB,IAChB,iBAAiB,EAAE,kCAAkC,EAErD,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,EACvC,YAAY,EAAE,0BAA0B,EACxC,SAAS,EAAE,IAAI,EACf,MAAM,EAAE,UAAU,IAPb,eAAyB,CAQhC,CACL,CAAC;AACN,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { cn } from '../../../utils/cn';
|
2
|
-
import { isUnavailableNode } from '../../../utils/nodes';
|
3
|
-
export const b = cn('ydb-storage-nodes');
|
4
|
-
export const getRowUnavailableClassName = (row) => b('node', { unavailable: isUnavailableNode(row) });
|
5
|
-
//# sourceMappingURL=shared.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/containers/Storage/StorageNodes/shared.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,EAAC,MAAM,mBAAmB,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,GAAwB,EAAE,EAAE,CACnE,CAAC,CAAC,MAAM,EAAE,EAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAC,CAAC,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
interface StorageWrapperProps {
|
2
|
-
database?: string;
|
3
|
-
nodeId?: string | number;
|
4
|
-
pDiskId?: string | number;
|
5
|
-
groupId?: string | number;
|
6
|
-
vDiskSlotId?: string | number;
|
7
|
-
parentRef: React.RefObject<HTMLElement>;
|
8
|
-
}
|
9
|
-
export declare const StorageWrapper: ({ parentRef, ...props }: StorageWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
10
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { USE_PAGINATED_TABLES_KEY } from '../../utils/constants';
|
3
|
-
import { useSetting } from '../../utils/hooks';
|
4
|
-
import { PaginatedStorage } from './PaginatedStorage';
|
5
|
-
import { Storage } from './Storage';
|
6
|
-
export const StorageWrapper = ({ parentRef, ...props }) => {
|
7
|
-
var _a, _b, _c, _d;
|
8
|
-
const [usePaginatedTables] = useSetting(USE_PAGINATED_TABLES_KEY);
|
9
|
-
const viewContext = {
|
10
|
-
nodeId: (_a = props.nodeId) === null || _a === void 0 ? void 0 : _a.toString(),
|
11
|
-
pDiskId: (_b = props.pDiskId) === null || _b === void 0 ? void 0 : _b.toString(),
|
12
|
-
groupId: (_c = props.groupId) === null || _c === void 0 ? void 0 : _c.toString(),
|
13
|
-
vDiskSlotId: (_d = props.vDiskSlotId) === null || _d === void 0 ? void 0 : _d.toString(),
|
14
|
-
};
|
15
|
-
if (usePaginatedTables) {
|
16
|
-
return _jsx(PaginatedStorage, { parentRef: parentRef, viewContext: viewContext, ...props });
|
17
|
-
}
|
18
|
-
return _jsx(Storage, { viewContext: viewContext, ...props });
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=StorageWrapper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"StorageWrapper.js","sourceRoot":"","sources":["../../../src/containers/Storage/StorageWrapper.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,wBAAwB,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAYlC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAAC,SAAS,EAAE,GAAG,KAAK,EAAsB,EAAE,EAAE;;IACzE,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAU,wBAAwB,CAAC,CAAC;IAE3E,MAAM,WAAW,GAAuB;QACpC,MAAM,EAAE,MAAA,KAAK,CAAC,MAAM,0CAAE,QAAQ,EAAE;QAChC,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,QAAQ,EAAE;QAClC,OAAO,EAAE,MAAA,KAAK,CAAC,OAAO,0CAAE,QAAQ,EAAE;QAClC,WAAW,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ,EAAE;KAC7C,CAAC;IAEF,IAAI,kBAAkB,EAAE,CAAC;QACrB,OAAO,KAAC,gBAAgB,IAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,KAAM,KAAK,GAAI,CAAC;IAC3F,CAAC;IAED,OAAO,KAAC,OAAO,IAAC,WAAW,EAAE,WAAW,KAAM,KAAK,GAAI,CAAC;AAC5D,CAAC,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { Column } from '@gravity-ui/react-data-table';
|
2
|
-
import type { KeyValueRow } from '../../../../types/api/query';
|
3
|
-
import './TopQueries.scss';
|
4
|
-
export declare const TOP_QUERIES_COLUMNS_WIDTH_LS_KEY = "topQueriesColumnsWidth";
|
5
|
-
export declare const RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY = "runningQueriesColumnsWidth";
|
6
|
-
export declare const TOP_QUERIES_COLUMNS: Column<KeyValueRow>[];
|
7
|
-
export declare const TENANT_OVERVIEW_TOP_QUERUES_COLUMNS: Column<KeyValueRow>[];
|
8
|
-
export declare const RUNNING_QUERIES_COLUMNS: Column<KeyValueRow>[];
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getTopQueriesColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EACH,uBAAuB,EACvB,cAAc,GACjB,MAAM,sDAAsD,CAAC;AAE9D,OAAO,EAAC,EAAE,EAAC,MAAM,sBAAsB,CAAC;AACxC,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,iDAAiD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,EAAE,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,YAAsB,CAAC,CAAC,OAAO,EAAE,CAAC;IACjF,QAAQ,EAAE,IAAI;IACd,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,SAAS,CAAC,UAAU;CACrC,CAAC;AAEF,MAAM,iBAAiB,GAAwB;IAC3C,IAAI,EAAE,iBAAiB;IACvB,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IACD,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,cAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,YAAG,GAAG,CAAC,eAAe,IAAI,GAAG,GAAO;IACpF,QAAQ,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,eAAe;IACf,eAAe;IACf,eAAe;IACf,aAAa;IACb,cAAc;IACd,cAAc;IACd,eAAe;IACf,aAAa;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG;IAC/C,eAAe;IACf,sBAAsB;IACtB,eAAe;CAClB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,aAAa;IACb,gBAAgB;IAChB,eAAe;IACf,iBAAiB;CACpB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getTopShardsColumns.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/getTopShardsColumns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,kBAAkB,EAAC,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAC,iBAAiB,EAAC,MAAM,4DAA4D,CAAC;AAC7F,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,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nC,cAAc;QACd,cAAc;QACd,cAAc;QACd,YAAY;QACZ,qBAAqB;KACxB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAE,EAAE;IAC1E,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,uBAAuB,CAAC,CAAC;AAC1F,CAAC,CAAC"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { NodesUptimeFilterValues } from '../../../utils/nodes';
|
2
|
-
import type { ProblemFilterValue } from '../settings/types';
|
3
|
-
import type { NodesPreparedEntity } from './types';
|
4
|
-
export declare const filterNodesByUptime: <T extends {
|
5
|
-
StartTime?: string;
|
6
|
-
}>(nodesList: T[] | undefined, nodesUptimeFilter: NodesUptimeFilterValues) => T[];
|
7
|
-
export declare function filterNodes(nodesList: NodesPreparedEntity[] | undefined, { uptimeFilter, searchValue, problemFilter, }: {
|
8
|
-
uptimeFilter: NodesUptimeFilterValues;
|
9
|
-
searchValue: string;
|
10
|
-
problemFilter: ProblemFilterValue;
|
11
|
-
}): NodesPreparedEntity[];
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { EFlag } from '../../../types/api/enums';
|
2
|
-
import { HOUR_IN_SECONDS } from '../../../utils/constants';
|
3
|
-
import { calcUptimeInSeconds } from '../../../utils/dataFormatters/dataFormatters';
|
4
|
-
import { prepareSearchValue } from '../../../utils/filters';
|
5
|
-
import { NodesUptimeFilterValues } from '../../../utils/nodes';
|
6
|
-
import { ProblemFilterValues } from '../settings/settings';
|
7
|
-
// ==== Filters ====
|
8
|
-
const filterNodesByProblemsStatus = (nodesList = [], problemFilter) => {
|
9
|
-
if (problemFilter === ProblemFilterValues.ALL) {
|
10
|
-
return nodesList;
|
11
|
-
}
|
12
|
-
return nodesList.filter(({ SystemState }) => {
|
13
|
-
return SystemState && SystemState !== EFlag.Green;
|
14
|
-
});
|
15
|
-
};
|
16
|
-
export const filterNodesByUptime = (nodesList = [], nodesUptimeFilter) => {
|
17
|
-
if (nodesUptimeFilter === NodesUptimeFilterValues.All) {
|
18
|
-
return nodesList;
|
19
|
-
}
|
20
|
-
return nodesList.filter(({ StartTime }) => {
|
21
|
-
return !StartTime || calcUptimeInSeconds(StartTime) < HOUR_IN_SECONDS;
|
22
|
-
});
|
23
|
-
};
|
24
|
-
const filterNodesBySearchValue = (nodesList = [], searchValue) => {
|
25
|
-
if (!searchValue) {
|
26
|
-
return nodesList;
|
27
|
-
}
|
28
|
-
const re = prepareSearchValue(searchValue);
|
29
|
-
return nodesList.filter((node) => {
|
30
|
-
return node.Host ? re.test(node.Host) || re.test(String(node.NodeId)) : true;
|
31
|
-
});
|
32
|
-
};
|
33
|
-
export function filterNodes(nodesList = [], { uptimeFilter, searchValue, problemFilter, }) {
|
34
|
-
let result = filterNodesByUptime(nodesList, uptimeFilter);
|
35
|
-
result = filterNodesByProblemsStatus(result, problemFilter);
|
36
|
-
result = filterNodesBySearchValue(result, searchValue);
|
37
|
-
return result;
|
38
|
-
}
|
39
|
-
//# sourceMappingURL=selectors.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/selectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAC,mBAAmB,EAAC,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAC;AAKzD,oBAAoB;AAEpB,MAAM,2BAA2B,GAAG,CAChC,YAAmC,EAAE,EACrC,aAAiC,EACnC,EAAE;IACA,IAAI,aAAa,KAA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B,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;IAC1D,MAAM,GAAG,2BAA2B,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC5D,MAAM,GAAG,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAEvD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import type { TEvDescribeSchemeResult } from '../../../types/api/schema';
|
2
|
-
import type { setShowPreview } from './schema';
|
3
|
-
export type SchemaData = Record<string, TEvDescribeSchemeResult>;
|
4
|
-
export interface SchemaState {
|
5
|
-
showPreview: boolean;
|
6
|
-
}
|
7
|
-
export type SchemaAction = ReturnType<typeof setShowPreview>;
|
8
|
-
export interface SchemaStateSlice {
|
9
|
-
schema: SchemaState;
|
10
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/store/reducers/schema/types.ts"],"names":[],"mappings":""}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import type { NodesUptimeFilterValues } from '../../../utils/nodes';
|
2
|
-
import type { PreparedStorageGroup, PreparedStorageNode } from './types';
|
3
|
-
export declare function filterNodes(storageNodes: PreparedStorageNode[], textFilter: string, uptimeFilter: NodesUptimeFilterValues): PreparedStorageNode[];
|
4
|
-
export declare function filterGroups(storageGroups: PreparedStorageGroup[], textFilter: string): PreparedStorageGroup[];
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { filterNodesByUptime } from '../nodes/selectors';
|
2
|
-
// ==== Filters ====
|
3
|
-
const prepareSearchText = (text) => text.trim().toLowerCase();
|
4
|
-
const filterNodesByText = (entities, text) => {
|
5
|
-
const preparedSearch = prepareSearchText(text);
|
6
|
-
if (!preparedSearch) {
|
7
|
-
return entities;
|
8
|
-
}
|
9
|
-
return entities.filter((entity) => {
|
10
|
-
var _a, _b;
|
11
|
-
return (((_a = entity.NodeId) === null || _a === void 0 ? void 0 : _a.toString().includes(preparedSearch)) ||
|
12
|
-
((_b = entity.Host) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(preparedSearch)));
|
13
|
-
});
|
14
|
-
};
|
15
|
-
const filterGroupsByText = (entities, text) => {
|
16
|
-
const preparedSearch = prepareSearchText(text);
|
17
|
-
if (!preparedSearch) {
|
18
|
-
return entities;
|
19
|
-
}
|
20
|
-
return entities.filter((entity) => {
|
21
|
-
var _a, _b;
|
22
|
-
return (((_a = entity.PoolName) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(preparedSearch)) ||
|
23
|
-
((_b = entity.GroupId) === null || _b === void 0 ? void 0 : _b.toString().includes(preparedSearch)));
|
24
|
-
});
|
25
|
-
};
|
26
|
-
export function filterNodes(storageNodes, textFilter, uptimeFilter) {
|
27
|
-
let result = storageNodes || [];
|
28
|
-
result = filterNodesByText(result, textFilter);
|
29
|
-
result = filterNodesByUptime(result, uptimeFilter);
|
30
|
-
return result;
|
31
|
-
}
|
32
|
-
export function filterGroups(storageGroups, textFilter) {
|
33
|
-
let result = storageGroups || [];
|
34
|
-
result = filterGroupsByText(result, textFilter);
|
35
|
-
return result;
|
36
|
-
}
|
37
|
-
//# sourceMappingURL=selectors.js.map
|
@@ -1 +0,0 @@
|
|
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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
@@ -1,23 +0,0 @@
|
|
1
|
-
export declare const TOP_QUERIES_COLUMNS_IDS: {
|
2
|
-
CPUTimeUs: string;
|
3
|
-
QueryText: string;
|
4
|
-
EndTime: string;
|
5
|
-
ReadRows: string;
|
6
|
-
ReadBytes: string;
|
7
|
-
UserSID: string;
|
8
|
-
OneLineQueryText: string;
|
9
|
-
QueryHash: string;
|
10
|
-
Duration: string;
|
11
|
-
};
|
12
|
-
export declare const TOP_SHARD_COLUMNS_IDS: {
|
13
|
-
TabletId: string;
|
14
|
-
CPUCores: string;
|
15
|
-
DataSize: string;
|
16
|
-
Path: string;
|
17
|
-
NodeId: string;
|
18
|
-
PeakTime: string;
|
19
|
-
InFlightTxCount: string;
|
20
|
-
IntervalEnd: string;
|
21
|
-
};
|
22
|
-
export declare const isSortableTopShardsProperty: (value: string) => boolean;
|
23
|
-
export declare const isSortableTopQueriesProperty: (value: string) => boolean;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
export const TOP_QUERIES_COLUMNS_IDS = {
|
2
|
-
CPUTimeUs: 'CPUTime',
|
3
|
-
QueryText: 'QueryText',
|
4
|
-
EndTime: 'EndTime',
|
5
|
-
ReadRows: 'ReadRows',
|
6
|
-
ReadBytes: 'ReadBytes',
|
7
|
-
UserSID: 'UserSID',
|
8
|
-
OneLineQueryText: 'OneLineQueryText',
|
9
|
-
QueryHash: 'QueryHash',
|
10
|
-
Duration: 'Duration',
|
11
|
-
};
|
12
|
-
export const TOP_SHARD_COLUMNS_IDS = {
|
13
|
-
TabletId: 'TabletId',
|
14
|
-
CPUCores: 'CPUCores',
|
15
|
-
DataSize: 'DataSize',
|
16
|
-
Path: 'Path',
|
17
|
-
NodeId: 'NodeId',
|
18
|
-
PeakTime: 'PeakTime',
|
19
|
-
InFlightTxCount: 'InFlightTxCount',
|
20
|
-
IntervalEnd: 'IntervalEnd',
|
21
|
-
};
|
22
|
-
const TOP_SHARDS_SORT_VALUES = [
|
23
|
-
TOP_SHARD_COLUMNS_IDS.CPUCores,
|
24
|
-
TOP_SHARD_COLUMNS_IDS.DataSize,
|
25
|
-
TOP_SHARD_COLUMNS_IDS.InFlightTxCount,
|
26
|
-
];
|
27
|
-
const TOP_QUERIES_SORT_VALUES = [
|
28
|
-
TOP_QUERIES_COLUMNS_IDS.CPUTimeUs,
|
29
|
-
TOP_QUERIES_COLUMNS_IDS.EndTime,
|
30
|
-
TOP_QUERIES_COLUMNS_IDS.ReadRows,
|
31
|
-
TOP_QUERIES_COLUMNS_IDS.ReadBytes,
|
32
|
-
TOP_QUERIES_COLUMNS_IDS.UserSID,
|
33
|
-
TOP_QUERIES_COLUMNS_IDS.Duration,
|
34
|
-
];
|
35
|
-
export const isSortableTopShardsProperty = (value) => Object.values(TOP_SHARDS_SORT_VALUES).includes(value);
|
36
|
-
export const isSortableTopQueriesProperty = (value) => Object.values(TOP_QUERIES_SORT_VALUES).includes(value);
|
37
|
-
//# sourceMappingURL=diagnostics.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src/utils/diagnostics.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,SAAS,EAAE,SAAS;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;CAC7B,CAAC;AAEF,MAAM,sB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