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
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/constants.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,MAAM,CAAC,MAAM,gCAAgC,GAAG,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,oCAAoC,GAAG,4BAA4B,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,OAAO,EAAE,SAAS;IAClB,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,EAA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iBAAiB;CAC5B,CAAC;AAEX,MAAM,UAAU,4BAA4B,CAAC,QAAiB;IAC1D,OAAO,kCAAkC,CAAC,QAA8B,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,QAAgB;IACvD,OAAO,OAAO,CAAC,4BAA4B,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC3D,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"cpu-time": "CPUTime",
|
3
|
+
"read-rows": "ReadRows",
|
4
|
+
"read-bytes": "ReadBytes",
|
5
|
+
"query-hash": "QueryHash",
|
6
|
+
"user": "User",
|
7
|
+
"start-time": "Start time",
|
8
|
+
"end-time": "End time",
|
9
|
+
"duration": "Duration",
|
10
|
+
"query-text": "Query text",
|
11
|
+
"application": "Application"
|
12
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -2,9 +2,5 @@
|
|
2
2
|
"no-data": "No data",
|
3
3
|
"filter.text.placeholder": "Search by query text or userSID...",
|
4
4
|
"mode_top": "Top",
|
5
|
-
"mode_running": "Running"
|
6
|
-
"col_user": "User",
|
7
|
-
"col_start-time": "Start time",
|
8
|
-
"col_query-text": "Query text",
|
9
|
-
"col_app": "Application"
|
5
|
+
"mode_running": "Running"
|
10
6
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "no-data" | "filter.text.placeholder" | "mode_top" | "mode_running"
|
1
|
+
declare const _default: (key: "no-data" | "filter.text.placeholder" | "mode_top" | "mode_running", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Settings } from '@gravity-ui/react-data-table';
|
2
|
+
export declare const TOP_QUERIES_TABLE_SETTINGS: Settings;
|
3
|
+
export declare function useTopQueriesSort(): {
|
4
|
+
tableSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
5
|
+
handleTableSort: (rawValue: import("@gravity-ui/react-data-table").SortOrder | import("@gravity-ui/react-data-table").SortOrder[] | undefined) => void;
|
6
|
+
backendSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
7
|
+
};
|
8
|
+
export declare function useRunningQueriesSort(): {
|
9
|
+
tableSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
10
|
+
handleTableSort: (rawValue: import("@gravity-ui/react-data-table").SortOrder | import("@gravity-ui/react-data-table").SortOrder[] | undefined) => void;
|
11
|
+
backendSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
12
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { prepareBackendSortFieldsFromTableSort, useTableSort } from '../../../../utils/hooks';
|
3
|
+
import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
4
|
+
import { TOP_QUERIES_COLUMNS_IDS, getTopQueriesColumnSortField } from './columns/constants';
|
5
|
+
export const TOP_QUERIES_TABLE_SETTINGS = {
|
6
|
+
...QUERY_TABLE_SETTINGS,
|
7
|
+
disableSortReset: true,
|
8
|
+
};
|
9
|
+
function useQueriesSort(initialSortColumn) {
|
10
|
+
const [tableSort, handleTableSort] = useTableSort({
|
11
|
+
initialSortColumn: initialSortColumn,
|
12
|
+
initialSortOrder: -1,
|
13
|
+
multiple: true,
|
14
|
+
});
|
15
|
+
const backendSort = React.useMemo(() => prepareBackendSortFieldsFromTableSort(tableSort, getTopQueriesColumnSortField), [tableSort]);
|
16
|
+
return {
|
17
|
+
tableSort,
|
18
|
+
handleTableSort,
|
19
|
+
backendSort,
|
20
|
+
};
|
21
|
+
}
|
22
|
+
export function useTopQueriesSort() {
|
23
|
+
return useQueriesSort(TOP_QUERIES_COLUMNS_IDS.CPUTime);
|
24
|
+
}
|
25
|
+
export function useRunningQueriesSort() {
|
26
|
+
return useQueriesSort(TOP_QUERIES_COLUMNS_IDS.QueryStartAt);
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,qCAAqC,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAC5F,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAC,uBAAuB,EAAE,4BAA4B,EAAC,MAAM,qBAAqB,CAAC;AAE1F,MAAM,CAAC,MAAM,0BAA0B,GAAa;IAChD,GAAG,oBAAoB;IACvB,gBAAgB,EAAE,IAAI;CACzB,CAAC;AAEF,SAAS,cAAc,CAAC,iBAAyB;IAC7C,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC;QAC9C,iBAAiB,EAAE,iBAAiB;QACpC,gBAAgB,EAAE,CAAC,CAAC;QACpB,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAC7B,GAAG,EAAE,CAAC,qCAAqC,CAAC,SAAS,EAAE,4BAA4B,CAAC,EACpF,CAAC,SAAS,CAAC,CACd,CAAC;IAEF,OAAO;QACH,SAAS;QACT,eAAe;QACf,WAAW;KACd,CAAC;AACN,CAAC;AACD,MAAM,UAAU,iBAAiB;IAC7B,OAAO,cAAc,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;AAC3D,CAAC;AACD,MAAM,UAAU,qBAAqB;IACjC,OAAO,cAAc,CAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC;AAChE,CAAC"}
|
@@ -10,13 +10,14 @@ import { EShardsWorkloadMode } from '../../../../store/reducers/shardsWorkload/t
|
|
10
10
|
import { cn } from '../../../../utils/cn';
|
11
11
|
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants';
|
12
12
|
import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters';
|
13
|
-
import { TOP_SHARD_COLUMNS_IDS, isSortableTopShardsProperty } from '../../../../utils/diagnostics';
|
14
13
|
import { useAutoRefreshInterval, useTypedDispatch, useTypedSelector } from '../../../../utils/hooks';
|
15
14
|
import { parseQueryErrorToString } from '../../../../utils/query';
|
16
15
|
import { isColumnEntityType } from '../../utils/schema';
|
17
16
|
import { Filters } from './Filters';
|
18
|
-
import {
|
17
|
+
import { getShardsWorkloadColumns } from './columns/columns';
|
18
|
+
import { TOP_SHARDS_COLUMNS_IDS, TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, isSortableTopShardsColumn, } from './columns/constants';
|
19
19
|
import i18n from './i18n';
|
20
|
+
import { useTopShardSort } from './utils';
|
20
21
|
import './TopShards.scss';
|
21
22
|
const b = cn('top-shards');
|
22
23
|
const TABLE_SETTINGS = {
|
@@ -32,26 +33,6 @@ function prepareDateTimeValue(value) {
|
|
32
33
|
}
|
33
34
|
return formatDateTime(new Date(value).getTime());
|
34
35
|
}
|
35
|
-
function stringToDataTableSortOrder(value) {
|
36
|
-
return value
|
37
|
-
? value.split(',').map((columnId) => ({
|
38
|
-
columnId,
|
39
|
-
order: DataTable.DESCENDING,
|
40
|
-
}))
|
41
|
-
: undefined;
|
42
|
-
}
|
43
|
-
function stringToQuerySortOrder(value) {
|
44
|
-
return value
|
45
|
-
? value.split(',').map((columnId) => ({
|
46
|
-
columnId,
|
47
|
-
order: 'DESC',
|
48
|
-
}))
|
49
|
-
: undefined;
|
50
|
-
}
|
51
|
-
function dataTableToStringSortOrder(value = []) {
|
52
|
-
const sortOrders = Array.isArray(value) ? value : [value];
|
53
|
-
return sortOrders.map(({ columnId }) => columnId).join(',');
|
54
|
-
}
|
55
36
|
function fillDateRangeFor(value) {
|
56
37
|
value.to = 'now';
|
57
38
|
value.from = 'now-1h';
|
@@ -75,21 +56,15 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
75
56
|
}
|
76
57
|
return defaultValue;
|
77
58
|
});
|
78
|
-
const
|
59
|
+
const { tableSort, handleTableSort, backendSort } = useTopShardSort();
|
79
60
|
const { currentData: result, isFetching, error, } = shardApi.useSendShardQueryQuery({
|
80
61
|
database: tenantName,
|
81
62
|
path: path,
|
82
|
-
sortOrder:
|
63
|
+
sortOrder: backendSort,
|
83
64
|
filters,
|
84
65
|
}, { pollingInterval: autoRefreshInterval });
|
85
66
|
const loading = isFetching && result === undefined;
|
86
67
|
const data = ((_b = (_a = result === null || result === void 0 ? void 0 : result.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
87
|
-
const onSort = (newSortOrder) => {
|
88
|
-
// omit information about sort order to disable ASC order, only DESC makes sense for top shards
|
89
|
-
// use a string (and not the DataTable default format) to prevent reference change,
|
90
|
-
// which would cause an excess state change, to avoid repeating requests
|
91
|
-
setSortOrder(dataTableToStringSortOrder(newSortOrder));
|
92
|
-
};
|
93
68
|
const handleFiltersChange = (value) => {
|
94
69
|
const newStateValue = { ...value };
|
95
70
|
const isDateRangePristine = !storeFilters.from && !storeFilters.to && !value.from && !value.to;
|
@@ -111,19 +86,19 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
111
86
|
const rawColumns = getShardsWorkloadColumns(tenantName, location);
|
112
87
|
const columns = rawColumns.map((column) => ({
|
113
88
|
...column,
|
114
|
-
sortable:
|
89
|
+
sortable: isSortableTopShardsColumn(column.name),
|
115
90
|
}));
|
116
91
|
if (filters.mode === EShardsWorkloadMode.History) {
|
117
92
|
// after NodeId
|
118
93
|
columns.splice(5, 0, {
|
119
|
-
name:
|
94
|
+
name: TOP_SHARDS_COLUMNS_IDS.PeakTime,
|
120
95
|
render: ({ row }) => {
|
121
96
|
return prepareDateTimeValue(row.PeakTime);
|
122
97
|
},
|
123
98
|
sortable: false,
|
124
99
|
});
|
125
100
|
columns.push({
|
126
|
-
name:
|
101
|
+
name: TOP_SHARDS_COLUMNS_IDS.IntervalEnd,
|
127
102
|
render: ({ row }) => {
|
128
103
|
return prepareDateTimeValue(row.IntervalEnd);
|
129
104
|
},
|
@@ -141,7 +116,7 @@ export const TopShards = ({ tenantName, path, type }) => {
|
|
141
116
|
if (!data || isColumnEntityType(type)) {
|
142
117
|
return i18n('no-data');
|
143
118
|
}
|
144
|
-
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, columns: tableColumns, data: data, settings: TABLE_SETTINGS, onSort:
|
119
|
+
return (_jsx(ResizeableDataTable, { columnsWidthLSKey: TOP_SHARDS_COLUMNS_WIDTH_LS_KEY, columns: tableColumns, data: data, settings: TABLE_SETTINGS, onSort: handleTableSort, sortOrder: tableSort }));
|
145
120
|
};
|
146
121
|
return (_jsxs(TableWithControlsLayout, { children: [_jsx(TableWithControlsLayout.Controls, { children: renderControls() }), filters.mode === EShardsWorkloadMode.History && (_jsx("div", { className: b('hint'), children: i18n('description') })), error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: loading, children: renderContent() })] }));
|
147
122
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/TopShards.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAA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AAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACxE,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,OAAO,YAC1C,aAAa,EAAE,GACY,IACV,CAC7B,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import type { Column } from '@gravity-ui/react-data-table';
|
2
2
|
import type { Location } from 'history';
|
3
|
-
import type { KeyValueRow } from '
|
4
|
-
export declare const TOP_SHARDS_COLUMNS_WIDTH_LS_KEY = "topShardsColumnsWidth";
|
3
|
+
import type { KeyValueRow } from '../../../../../types/api/query';
|
5
4
|
export declare const getShardsWorkloadColumns: (schemaPath: string, location: Location) => Column<KeyValueRow>[];
|
6
5
|
export declare const getTopShardsColumns: (schemaPath: string, location: Location) => Column<KeyValueRow>[];
|
package/dist/containers/Tenant/Diagnostics/TopShards/{getTopShardsColumns.js → columns/columns.js}
RENAMED
@@ -1,39 +1,19 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
2
|
import DataTable from '@gravity-ui/react-data-table';
|
3
|
-
import { InternalLink } from '
|
4
|
-
import { LinkToSchemaObject } from '
|
5
|
-
import { TabletNameWrapper } from '
|
6
|
-
import { UsageLabel } from '
|
7
|
-
import { getLoadSeverityForShard } from '
|
8
|
-
import { formatNumber, roundToPrecision } from '
|
9
|
-
import { getDefaultNodePath } from '
|
10
|
-
|
11
|
-
const TOP_SHARDS_COLUMNS_IDS = {
|
12
|
-
TabletId: 'TabletId',
|
13
|
-
CPUCores: 'CPUCores',
|
14
|
-
DataSize: 'DataSize',
|
15
|
-
Path: 'Path',
|
16
|
-
NodeId: 'NodeId',
|
17
|
-
PeakTime: 'PeakTime',
|
18
|
-
InFlightTxCount: 'InFlightTxCount',
|
19
|
-
IntervalEnd: 'IntervalEnd',
|
20
|
-
};
|
21
|
-
const tableColumnsNames = {
|
22
|
-
TabletId: 'TabletId',
|
23
|
-
CPUCores: 'CPUCores',
|
24
|
-
DataSize: 'DataSize (B)',
|
25
|
-
Path: 'Path',
|
26
|
-
NodeId: 'NodeId',
|
27
|
-
PeakTime: 'PeakTime',
|
28
|
-
InFlightTxCount: 'InFlightTxCount',
|
29
|
-
IntervalEnd: 'IntervalEnd',
|
30
|
-
};
|
3
|
+
import { InternalLink } from '../../../../../components/InternalLink';
|
4
|
+
import { LinkToSchemaObject } from '../../../../../components/LinkToSchemaObject/LinkToSchemaObject';
|
5
|
+
import { TabletNameWrapper } from '../../../../../components/TabletNameWrapper/TabletNameWrapper';
|
6
|
+
import { UsageLabel } from '../../../../../components/UsageLabel/UsageLabel';
|
7
|
+
import { getLoadSeverityForShard } from '../../../../../store/reducers/tenantOverview/topShards/utils';
|
8
|
+
import { formatNumber, roundToPrecision } from '../../../../../utils/dataFormatters/dataFormatters';
|
9
|
+
import { getDefaultNodePath } from '../../../../Node/NodePages';
|
10
|
+
import { TOP_SHARDS_COLUMNS_IDS, TOP_SHARDS_COLUMNS_TITLES } from './constants';
|
31
11
|
function prepareCPUWorkloadValue(value) {
|
32
12
|
return `${roundToPrecision(Number(value) * 100, 2)}%`;
|
33
13
|
}
|
34
14
|
const getPathColumn = (schemaPath, location) => ({
|
35
15
|
name: TOP_SHARDS_COLUMNS_IDS.Path,
|
36
|
-
header:
|
16
|
+
header: TOP_SHARDS_COLUMNS_TITLES.Path,
|
37
17
|
render: ({ row }) => {
|
38
18
|
// row.Path - relative schema path
|
39
19
|
return (_jsx(LinkToSchemaObject, { path: schemaPath + row.Path, location: location, children: row.Path }));
|
@@ -43,7 +23,7 @@ const getPathColumn = (schemaPath, location) => ({
|
|
43
23
|
});
|
44
24
|
const cpuCoresColumn = {
|
45
25
|
name: TOP_SHARDS_COLUMNS_IDS.CPUCores,
|
46
|
-
header:
|
26
|
+
header: TOP_SHARDS_COLUMNS_TITLES.CPUCores,
|
47
27
|
render: ({ row }) => {
|
48
28
|
return prepareCPUWorkloadValue(row.CPUCores || 0);
|
49
29
|
},
|
@@ -51,7 +31,7 @@ const cpuCoresColumn = {
|
|
51
31
|
};
|
52
32
|
const dataSizeColumn = {
|
53
33
|
name: TOP_SHARDS_COLUMNS_IDS.DataSize,
|
54
|
-
header:
|
34
|
+
header: TOP_SHARDS_COLUMNS_TITLES.DataSize,
|
55
35
|
render: ({ row }) => {
|
56
36
|
return formatNumber(row.DataSize);
|
57
37
|
},
|
@@ -59,7 +39,7 @@ const dataSizeColumn = {
|
|
59
39
|
};
|
60
40
|
const tabletIdColumn = {
|
61
41
|
name: TOP_SHARDS_COLUMNS_IDS.TabletId,
|
62
|
-
header:
|
42
|
+
header: TOP_SHARDS_COLUMNS_TITLES.TabletId,
|
63
43
|
render: ({ row }) => {
|
64
44
|
if (!row.TabletId) {
|
65
45
|
return '–';
|
@@ -71,7 +51,7 @@ const tabletIdColumn = {
|
|
71
51
|
};
|
72
52
|
const nodeIdColumn = {
|
73
53
|
name: TOP_SHARDS_COLUMNS_IDS.NodeId,
|
74
|
-
header:
|
54
|
+
header: TOP_SHARDS_COLUMNS_TITLES.NodeId,
|
75
55
|
render: ({ row }) => {
|
76
56
|
if (!row.NodeId) {
|
77
57
|
return '–';
|
@@ -82,7 +62,7 @@ const nodeIdColumn = {
|
|
82
62
|
};
|
83
63
|
const topShardsCpuCoresColumn = {
|
84
64
|
name: TOP_SHARDS_COLUMNS_IDS.CPUCores,
|
85
|
-
header:
|
65
|
+
header: TOP_SHARDS_COLUMNS_TITLES.CPUCores,
|
86
66
|
render: ({ row }) => {
|
87
67
|
return (_jsx(UsageLabel, { value: roundToPrecision(Number(row.CPUCores) * 100, 2), theme: getLoadSeverityForShard(Number(row.CPUCores) * 100) }));
|
88
68
|
},
|
@@ -93,7 +73,7 @@ const topShardsCpuCoresColumn = {
|
|
93
73
|
};
|
94
74
|
const inFlightTxCountColumn = {
|
95
75
|
name: TOP_SHARDS_COLUMNS_IDS.InFlightTxCount,
|
96
|
-
header:
|
76
|
+
header: TOP_SHARDS_COLUMNS_TITLES.InFlightTxCount,
|
97
77
|
render: ({ row }) => formatNumber(row.InFlightTxCount),
|
98
78
|
align: DataTable.RIGHT,
|
99
79
|
};
|
@@ -110,4 +90,4 @@ export const getShardsWorkloadColumns = (schemaPath, location) => {
|
|
110
90
|
export const getTopShardsColumns = (schemaPath, location) => {
|
111
91
|
return [tabletIdColumn, getPathColumn(schemaPath, location), topShardsCpuCoresColumn];
|
112
92
|
};
|
113
|
-
//# sourceMappingURL=
|
93
|
+
//# sourceMappingURL=columns.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopShards/columns/columns.tsx"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAIrD,OAAO,EAAC,YAAY,EAAC,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,iEAAiE,CAAC;AACnG,OAAO,EAAC,iBAAiB,EAAC,MAAM,+DAA+D,CAAC;AAChG,OAAO,EAAC,UAAU,EAAC,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,8DAA8D,CAAC;AAErG,OAAO,EAAC,YAAY,EAAE,gBAAgB,EAAC,MAAM,oDAAoD,CAAC;AAClG,OAAO,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,aAAa,CAAC;AAE9E,SAAS,uBAAuB,CAAC,KAAsB;IACnD,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC;AAC1D,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,UAAkB,EAAE,QAAkB,EAAuB,EAAE,CAAC,CAAC;IACpF,IAAI,EAAE,sBAAsB,CAAC,IAAI;IACjC,MAAM,EAAE,yBAAyB,CAAC,IAAI;IACtC,MAAM,EAAE,CAAC,EAAC,GAAG,E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AE;IAC/E,OAAO;QACH,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;QACnC,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"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { ValueOf } from '../../../../../types/common';
|
2
|
+
export declare const TOP_SHARDS_COLUMNS_WIDTH_LS_KEY = "topShardsColumnsWidth";
|
3
|
+
export declare const TOP_SHARDS_COLUMNS_IDS: {
|
4
|
+
readonly TabletId: "TabletId";
|
5
|
+
readonly CPUCores: "CPUCores";
|
6
|
+
readonly DataSize: "DataSize";
|
7
|
+
readonly Path: "Path";
|
8
|
+
readonly NodeId: "NodeId";
|
9
|
+
readonly PeakTime: "PeakTime";
|
10
|
+
readonly InFlightTxCount: "InFlightTxCount";
|
11
|
+
readonly IntervalEnd: "IntervalEnd";
|
12
|
+
};
|
13
|
+
type TopShardsColumnId = ValueOf<typeof TOP_SHARDS_COLUMNS_IDS>;
|
14
|
+
export declare const TOP_SHARDS_COLUMNS_TITLES: Record<TopShardsColumnId, string>;
|
15
|
+
export declare function getTopShardsColumnSortField(columnId?: string): string | undefined;
|
16
|
+
export declare function isSortableTopShardsColumn(columnId: string): boolean;
|
17
|
+
export {};
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import i18n from './i18n';
|
2
|
+
export const TOP_SHARDS_COLUMNS_WIDTH_LS_KEY = 'topShardsColumnsWidth';
|
3
|
+
export const TOP_SHARDS_COLUMNS_IDS = {
|
4
|
+
TabletId: 'TabletId',
|
5
|
+
CPUCores: 'CPUCores',
|
6
|
+
DataSize: 'DataSize',
|
7
|
+
Path: 'Path',
|
8
|
+
NodeId: 'NodeId',
|
9
|
+
PeakTime: 'PeakTime',
|
10
|
+
InFlightTxCount: 'InFlightTxCount',
|
11
|
+
IntervalEnd: 'IntervalEnd',
|
12
|
+
};
|
13
|
+
export const TOP_SHARDS_COLUMNS_TITLES = {
|
14
|
+
get TabletId() {
|
15
|
+
return i18n('tablet-id');
|
16
|
+
},
|
17
|
+
get CPUCores() {
|
18
|
+
return i18n('cpu-cores');
|
19
|
+
},
|
20
|
+
get DataSize() {
|
21
|
+
return i18n('data-size');
|
22
|
+
},
|
23
|
+
get Path() {
|
24
|
+
return i18n('path');
|
25
|
+
},
|
26
|
+
get NodeId() {
|
27
|
+
return i18n('node-id');
|
28
|
+
},
|
29
|
+
get PeakTime() {
|
30
|
+
return i18n('peak-time');
|
31
|
+
},
|
32
|
+
get InFlightTxCount() {
|
33
|
+
return i18n('in-flight-tx-count');
|
34
|
+
},
|
35
|
+
get IntervalEnd() {
|
36
|
+
return i18n('interval-end');
|
37
|
+
},
|
38
|
+
};
|
39
|
+
const TOP_SHARDS_COLUMNS_TO_SORT_FIELDS = {
|
40
|
+
TabletId: undefined,
|
41
|
+
CPUCores: 'CPUCores',
|
42
|
+
DataSize: 'DataSize',
|
43
|
+
Path: undefined,
|
44
|
+
NodeId: undefined,
|
45
|
+
PeakTime: undefined,
|
46
|
+
InFlightTxCount: 'InFlightTxCount',
|
47
|
+
IntervalEnd: undefined,
|
48
|
+
};
|
49
|
+
export function getTopShardsColumnSortField(columnId) {
|
50
|
+
return TOP_SHARDS_COLUMNS_TO_SORT_FIELDS[columnId];
|
51
|
+
}
|
52
|
+
export function isSortableTopShardsColumn(columnId) {
|
53
|
+
return Boolean(getTopShardsColumnSortField(columnId));
|
54
|
+
}
|
55
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TopShards/columns/constants.ts"],"names":[],"m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AA2B,CAAC,QAAiB;IACzD,OAAO,iCAAiC,CAAC,QAA6B,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,QAAgB;IACtD,OAAO,OAAO,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC1D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/containers/Tenant/Diagnostics/TopShards/columns/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,MAAM,WAAW,CAAC;AAE3B,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAE3C,eAAe,eAAe,CAAC,SAAS,EAAE,EAAC,EAAE,EAAC,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare function useTopShardSort(): {
|
2
|
+
tableSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
3
|
+
handleTableSort: (rawValue: import("@gravity-ui/react-data-table").SortOrder | import("@gravity-ui/react-data-table").SortOrder[] | undefined) => void;
|
4
|
+
backendSort: import("@gravity-ui/react-data-table").SortOrder[] | undefined;
|
5
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { prepareBackendSortFieldsFromTableSort, useTableSort } from '../../../../utils/hooks';
|
3
|
+
import { TOP_SHARDS_COLUMNS_IDS, getTopShardsColumnSortField } from './columns/constants';
|
4
|
+
export function useTopShardSort() {
|
5
|
+
const [tableSort, handleTableSort] = useTableSort({
|
6
|
+
initialSortColumn: TOP_SHARDS_COLUMNS_IDS.CPUCores,
|
7
|
+
fixedOrderType: -1,
|
8
|
+
multiple: true,
|
9
|
+
});
|
10
|
+
const backendSort = React.useMemo(() => prepareBackendSortFieldsFromTableSort(tableSort, getTopShardsColumnSortField), [tableSort]);
|
11
|
+
return {
|
12
|
+
tableSort,
|
13
|
+
handleTableSort,
|
14
|
+
backendSort,
|
15
|
+
};
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopShards/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,qCAAqC,EAAE,YAAY,EAAC,MAAM,yBAAyB,CAAC;AAE5F,OAAO,EAAC,sBAAsB,EAAE,2BAA2B,EAAC,MAAM,qBAAqB,CAAC;AAExF,MAAM,UAAU,eAAe;IAC3B,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC;QAC9C,iBAAiB,EAAE,sBAAsB,CAAC,QAAQ;QAClD,cAAc,EAAE,CAAC,CAAC;QAClB,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,CAC7B,GAAG,EAAE,CAAC,qCAAqC,CAAC,SAAS,EAAE,2BAA2B,CAAC,EACnF,CAAC,SAAS,CAAC,CACd,CAAC;IAEF,OAAO;QACH,SAAS;QACT,eAAe;QACf,WAAW;KACd,CAAC;AACN,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
declare const SEVERITY_LIST: readonly ["S_FATAL", "S_ERROR", "S_WARNING", "S_INFO"];
|
2
2
|
export type SEVERITY = (typeof SEVERITY_LIST)[number];
|
3
|
-
export declare function isSeverity(value: number | undefined): boolean;
|
4
3
|
export declare function getSeverity(value: number | undefined): "S_FATAL" | "S_ERROR" | "S_WARNING" | "S_INFO";
|
4
|
+
export {};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
const SEVERITY_LIST = ['S_FATAL', 'S_ERROR', 'S_WARNING', 'S_INFO'];
|
2
2
|
// Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
|
3
3
|
// FATAL = 0;
|
4
4
|
// ERROR = 1;
|
5
5
|
// WARNING = 2;
|
6
6
|
// INFO = 3;
|
7
|
-
|
7
|
+
function isSeverity(value) {
|
8
8
|
return value ? SEVERITY_LIST[value] !== undefined : false;
|
9
9
|
}
|
10
10
|
export function getSeverity(value) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/Issues/models.ts"],"names":[],"mappings":"AAAA,MAAM,
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/Issues/models.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,CAAU,CAAC;AAI7E,gFAAgF;AAChF,aAAa;AACb,aAAa;AACb,eAAe;AACf,YAAY;AACZ,SAAS,UAAU,CAAC,KAAyB;IACzC,OAAO,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAyB;IACjD,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AAChE,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { AUTOCOMPLETE_ON_ENTER, ENABLE_AUTOCOMPLETE } from '../../../../utils/constants';
|
3
3
|
import { useSetting } from '../../../../utils/hooks';
|
4
|
-
|
4
|
+
const EDITOR_OPTIONS = {
|
5
5
|
automaticLayout: true,
|
6
6
|
selectOnLineNumbers: true,
|
7
7
|
minimap: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryEditor/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAInD,MAAM,
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Query/QueryEditor/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AAInD,MAAM,cAAc,GAAkB;IAClC,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,OAAO,EAAE;QACL,OAAO,EAAE,KAAK;KACjB;CACJ,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAC5B,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC7D,MAAM,CAAC,mBAAmB,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC;IAEhE,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAgB,GAAG,EAAE;QAC9C,MAAM,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;QACpD,OAAO;YACH,gBAAgB,EAAE,eAAe;YACjC,0BAA0B,EAAE,eAAe;YAC3C,uBAAuB,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;YAC3D,GAAG,cAAc;SACpB,CAAC;IACN,CAAC,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAE9C,OAAO,OAAO,CAAC;AACnB,CAAC"}
|