ydb-embedded-ui 6.18.0 → 6.20.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/ComponentsProvider/ComponentsProvider.d.ts +2 -2
- package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
- package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
- package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
- package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
- package/dist/components/GroupInfo/GroupInfo.js +3 -3
- package/dist/components/MetricChart/reducer.d.ts +2 -2
- package/dist/components/PDiskInfo/i18n/index.d.ts +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.scss +4 -0
- package/dist/components/PaginatedTable/TableChunk.js +5 -2
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/TableRow.js +1 -1
- package/dist/components/PaginatedTable/TableRow.js.map +1 -1
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/Tag/Tag.d.ts +2 -1
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tags/Tags.d.ts +2 -1
- package/dist/components/Tags/Tags.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js +4 -2
- package/dist/containers/AppWithClusters/ExtendedNode/ExtendedNode.js.map +1 -1
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js +4 -3
- package/dist/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.js.map +1 -1
- package/dist/containers/AppWithClusters/useClusterData.d.ts +7 -1
- package/dist/containers/AppWithClusters/useClusterData.js +8 -8
- package/dist/containers/AppWithClusters/useClusterData.js.map +1 -1
- package/dist/containers/AsideNavigation/AsideNavigation.d.ts +3 -0
- package/dist/containers/AsideNavigation/AsideNavigation.js +6 -10
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/AsideNavigation/Navigation.js +4 -1
- package/dist/containers/AsideNavigation/Navigation.js.map +1 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.d.ts +3 -1
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js +2 -4
- package/dist/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +5 -13
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/Cluster.scss +1 -0
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
- package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
- package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
- package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
- package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
- package/dist/containers/Cluster/i18n/en.json +7 -1
- package/dist/containers/Cluster/i18n/index.d.ts +1 -1
- package/dist/containers/Cluster/i18n/index.js +1 -2
- package/dist/containers/Cluster/i18n/index.js.map +1 -1
- package/dist/containers/Header/Header.js +3 -7
- package/dist/containers/Header/Header.js.map +1 -1
- package/dist/containers/Node/Node.js +1 -5
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Node/NodePages.js +5 -4
- package/dist/containers/Node/NodePages.js.map +1 -1
- package/dist/containers/Node/NodeStructure/NodeStructure.js +9 -3
- package/dist/containers/Node/NodeStructure/NodeStructure.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +3 -13
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
- package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js +16 -7
- package/dist/containers/PDiskPage/PDiskGroups/PDiskGroups.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskGroups/utils.d.ts +2 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js +14 -0
- package/dist/containers/PDiskPage/PDiskGroups/utils.js.map +1 -0
- package/dist/containers/PDiskPage/PDiskPage.js +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/Storage.js +9 -9
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js +7 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +7 -20
- package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/getGroups.d.ts +3 -1
- package/dist/containers/Storage/StorageGroups/getGroups.js +27 -24
- package/dist/containers/Storage/StorageGroups/getGroups.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodes.js +1 -1
- package/dist/containers/Storage/utils/index.js +3 -4
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.d.ts +6 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js +79 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Configs/Configs.scss +8 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/en.json +11 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js +5 -0
- package/dist/containers/Tenant/Diagnostics/Configs/i18n/index.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +3 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
- package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +21 -4
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +2 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +7 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +1 -0
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js +8 -3
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.js.map +1 -1
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.d.ts +7 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js +17 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.js.map +1 -0
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +9 -0
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.d.ts +5 -9
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +7 -7
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +0 -12
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js +9 -24
- package/dist/containers/Tenant/Query/ExecuteResult/TraceButton.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/en.json +0 -1
- package/dist/containers/Tenant/Query/ExecuteResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.d.ts +4 -12
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js +7 -5
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +0 -6
- package/dist/containers/Tenant/Query/ExplainResult/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/ExplainResult/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/Query.js +14 -2
- package/dist/containers/Tenant/Query/Query.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.d.ts +3 -2
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +18 -36
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +1 -0
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js +1 -1
- package/dist/containers/Tenant/utils/queryTemplates.js.map +1 -1
- package/dist/containers/UserSettings/i18n/en.json +0 -2
- package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
- package/dist/containers/UserSettings/settings.d.ts +0 -1
- package/dist/containers/UserSettings/settings.js +2 -12
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.d.ts +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js +33 -10
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/utils.d.ts +2 -0
- package/dist/containers/VDiskPage/utils.js +7 -0
- package/dist/containers/VDiskPage/utils.js.map +1 -0
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/lib.js.map +1 -1
- package/dist/services/api.d.ts +20 -16
- package/dist/services/api.js +62 -21
- package/dist/services/api.js.map +1 -1
- package/dist/services/parsers/parseMetaCluster.d.ts +14 -0
- package/dist/services/parsers/parseMetaCluster.js +17 -31
- package/dist/services/parsers/parseMetaCluster.js.map +1 -1
- package/dist/services/settings.d.ts +0 -1
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/configureStore.d.ts +4 -4
- package/dist/store/defaultStore.d.ts +2 -2
- package/dist/store/getUrlData.js +9 -6
- package/dist/store/getUrlData.js.map +1 -1
- package/dist/store/reducers/api.d.ts +1 -1
- package/dist/store/reducers/api.js +1 -1
- package/dist/store/reducers/api.js.map +1 -1
- package/dist/store/reducers/authentication/authentication.d.ts +4 -4
- package/dist/store/reducers/cancelQuery.d.ts +2 -2
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.d.ts +6 -6
- package/dist/store/reducers/capabilities/hooks.d.ts +2 -0
- package/dist/store/reducers/capabilities/hooks.js +8 -1
- package/dist/store/reducers/capabilities/hooks.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.d.ts +230 -2
- package/dist/store/reducers/cluster/cluster.js +45 -3
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +4 -1
- package/dist/store/reducers/cluster/utils.js +16 -3
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.d.ts +2 -2
- package/dist/store/reducers/describe.d.ts +2 -2
- package/dist/store/reducers/executeQuery.d.ts +8 -4
- package/dist/store/reducers/executeQuery.js +35 -2
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +2 -2
- package/dist/store/reducers/explainQuery/explainQuery.d.ts +2 -3
- package/dist/store/reducers/explainQuery/explainQuery.js +23 -2
- package/dist/store/reducers/explainQuery/explainQuery.js.map +1 -1
- package/dist/store/reducers/explainQuery/types.d.ts +1 -0
- package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
- package/dist/store/reducers/explainQuery/utils.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.d.ts +58 -58
- package/dist/store/reducers/heatmap.d.ts +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.d.ts +2 -2
- package/dist/store/reducers/index.d.ts +3 -3
- package/dist/store/reducers/network/network.d.ts +2 -2
- package/dist/store/reducers/node/node.d.ts +3 -3
- package/dist/store/reducers/node/selectors.d.ts +1 -1
- package/dist/store/reducers/nodes/nodes.d.ts +3 -4
- package/dist/store/reducers/nodes/nodes.js +1 -17
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +1 -6
- package/dist/store/reducers/nodes/utils.d.ts +1 -4
- package/dist/store/reducers/nodes/utils.js +1 -41
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/nodesList.d.ts +3 -3
- package/dist/store/reducers/overview/overview.d.ts +2 -2
- package/dist/store/reducers/partitions/partitions.d.ts +2 -2
- package/dist/store/reducers/pdisk/pdisk.d.ts +2 -3
- package/dist/store/reducers/pdisk/pdisk.js +1 -21
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/pdisk/utils.d.ts +0 -3
- package/dist/store/reducers/pdisk/utils.js +0 -22
- package/dist/store/reducers/pdisk/utils.js.map +1 -1
- package/dist/store/reducers/preview.d.ts +2 -2
- package/dist/store/reducers/schema/schema.d.ts +3 -3
- package/dist/store/reducers/schemaAcl/schemaAcl.d.ts +2 -2
- package/dist/store/reducers/shardsWorkload/shardsWorkload.d.ts +2 -2
- package/dist/store/reducers/storage/requestStorageData.d.ts +5 -0
- package/dist/store/reducers/storage/requestStorageData.js +12 -0
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -0
- package/dist/store/reducers/storage/selectors.js +1 -1
- package/dist/store/reducers/storage/storage.d.ts +6 -4
- package/dist/store/reducers/storage/storage.js +6 -6
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +11 -23
- package/dist/store/reducers/storage/utils.d.ts +3 -2
- package/dist/store/reducers/storage/utils.js +52 -26
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tableData.d.ts +1 -1
- package/dist/store/reducers/tablet.d.ts +7 -7
- package/dist/store/reducers/tablets.d.ts +13 -13
- package/dist/store/reducers/tenant/constants.d.ts +1 -0
- package/dist/store/reducers/tenant/constants.js +1 -0
- package/dist/store/reducers/tenant/constants.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.d.ts +5 -2
- package/dist/store/reducers/tenant/tenant.js +12 -0
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topNodes/topNodes.d.ts +2 -2
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.d.ts +2 -2
- package/dist/store/reducers/tenants/selectors.d.ts +27 -27
- package/dist/store/reducers/tenants/tenants.d.ts +2 -2
- package/dist/store/reducers/topic.d.ts +44 -44
- package/dist/store/reducers/trace.d.ts +4 -5
- package/dist/store/reducers/trace.js +5 -8
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/store/reducers/vdisk/utils.d.ts +0 -2
- package/dist/store/reducers/vdisk/utils.js +0 -10
- package/dist/store/reducers/vdisk/utils.js.map +1 -1
- package/dist/store/reducers/vdisk/vdisk.d.ts +8 -5
- package/dist/store/reducers/vdisk/vdisk.js +17 -32
- package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.d.ts +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/styles/mixins.scss +45 -0
- package/dist/types/api/capabilities.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +31 -1
- package/dist/types/api/cluster.js +3 -1
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/featureFlags.d.ts +13 -0
- package/dist/types/api/featureFlags.js +2 -0
- package/dist/types/api/featureFlags.js.map +1 -0
- package/dist/types/api/meta.d.ts +6 -4
- package/dist/types/api/pdisk.d.ts +1 -1
- package/dist/types/api/storage.d.ts +132 -6
- package/dist/types/api/storage.js +1 -5
- package/dist/types/api/storage.js.map +1 -1
- package/dist/types/api/trace.d.ts +16 -6
- package/dist/types/api/trace.js +7 -1
- package/dist/types/api/trace.js.map +1 -1
- package/dist/types/api/vdisk.d.ts +1 -1
- package/dist/types/store/executeQuery.d.ts +25 -3
- package/dist/types/store/executeQuery.js +5 -1
- package/dist/types/store/executeQuery.js.map +1 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/disks/helpers.d.ts +4 -1
- package/dist/utils/disks/helpers.js +7 -1
- package/dist/utils/disks/helpers.js.map +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +8 -3
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/nodes.d.ts +1 -2
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/storage.d.ts +2 -21
- package/dist/utils/storage.js +14 -19
- package/dist/utils/storage.js.map +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
- package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
- package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
- package/package.json +2 -6
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.d.ts +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js +0 -9
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.js.map +0 -1
- package/dist/components/NotRenderUntilFirstVisible/NotRenderUntilFirstVisible.scss +0 -3
- package/dist/containers/Cluster/i18n/ru.json +0 -16
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js +0 -29
- package/dist/store/reducers/tenantOverview/topStorageGroups/topStorageGroups.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.d.ts +0 -4
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js +0 -2
- package/dist/store/reducers/tenantOverview/topStorageGroups/types.js.map +0 -1
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.d.ts +0 -3
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js +0 -13
- package/dist/store/reducers/tenantOverview/topStorageGroups/utils.js.map +0 -1
- package/dist/types/api/compute.d.ts +0 -60
- package/dist/types/api/compute.js +0 -6
- package/dist/types/api/compute.js.map +0 -1
@@ -1,47 +1,32 @@
|
|
1
|
-
import {
|
2
|
-
import { valueIsDefined } from '../../../utils';
|
1
|
+
import { getVDiskSlotBasedId } from '../../../utils/disks/helpers';
|
3
2
|
import { api } from '../api';
|
4
|
-
import { prepareVDiskDataResponse
|
3
|
+
import { prepareVDiskDataResponse } from './utils';
|
5
4
|
export const vDiskApi = api.injectEndpoints({
|
6
5
|
endpoints: (build) => ({
|
7
6
|
getVDiskData: build.query({
|
8
|
-
queryFn: async ({ nodeId, pDiskId, vDiskSlotId }) => {
|
7
|
+
queryFn: async ({ nodeId, pDiskId, vDiskSlotId }, { signal }) => {
|
9
8
|
try {
|
10
|
-
const
|
11
|
-
nodeId,
|
12
|
-
pDiskId,
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
const response = await Promise.all([
|
10
|
+
window.api.getVDiskInfo({ nodeId, pDiskId, vDiskSlotId }, { signal }),
|
11
|
+
window.api.getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }, { signal }),
|
12
|
+
window.api.getNodeInfo(nodeId, { signal }),
|
13
|
+
]);
|
14
|
+
const data = prepareVDiskDataResponse(response);
|
15
|
+
return { data };
|
16
16
|
}
|
17
17
|
catch (error) {
|
18
18
|
return { error };
|
19
19
|
}
|
20
20
|
},
|
21
|
-
providesTags: [
|
21
|
+
providesTags: (_result, _error, arg) => [
|
22
|
+
'All',
|
23
|
+
{
|
24
|
+
type: 'VDiskData',
|
25
|
+
id: getVDiskSlotBasedId(arg.nodeId, arg.pDiskId, arg.vDiskSlotId),
|
26
|
+
},
|
27
|
+
],
|
22
28
|
}),
|
23
29
|
}),
|
24
30
|
overrideExisting: 'throw',
|
25
31
|
});
|
26
|
-
async function requestVDiskData({ nodeId, pDiskId, vDiskSlotId }, { signal } = {}) {
|
27
|
-
const vDiskDataResponse = await Promise.all([
|
28
|
-
window.api.getVDiskInfo({ nodeId, pDiskId, vDiskSlotId }, { signal }),
|
29
|
-
window.api.getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }, { signal }),
|
30
|
-
window.api.getNodeInfo(nodeId, { signal }),
|
31
|
-
]);
|
32
|
-
const vDiskData = prepareVDiskDataResponse(vDiskDataResponse);
|
33
|
-
const { StoragePoolName, VDiskId = {} } = vDiskData;
|
34
|
-
const { GroupID } = VDiskId;
|
35
|
-
let groupData;
|
36
|
-
if (valueIsDefined(StoragePoolName) && valueIsDefined(GroupID)) {
|
37
|
-
const groupResponse = await window.api.getStorageInfo({
|
38
|
-
nodeId,
|
39
|
-
poolName: StoragePoolName,
|
40
|
-
groupId: GroupID,
|
41
|
-
version: EVersion.v1,
|
42
|
-
}, { signal });
|
43
|
-
groupData = prepareVDiskGroupResponse(groupResponse, StoragePoolName, GroupID);
|
44
|
-
}
|
45
|
-
return { vDiskData, groupData };
|
46
|
-
}
|
47
32
|
//# sourceMappingURL=vdisk.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/vdisk/vdisk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
1
|
+
{"version":3,"file":"vdisk.js","sourceRoot":"","sources":["../../../../src/store/reducers/vdisk/vdisk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAC,wBAAwB,EAAC,MAAM,SAAS,CAAC;AAQjD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC;YACtB,OAAO,EAAE,KAAK,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAyB,EAAE,EAAC,MAAM,EAAC,EAAE,EAAE;gBAChF,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;wBAC/B,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,EAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBACjE,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,EAAC,MAAM,EAAE,OAAO,EAAC,EAAE,EAAC,MAAM,EAAC,CAAC;wBAClE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,EAAC,MAAM,EAAC,CAAC;qBAC3C,CAAC,CAAC;oBACH,MAAM,IAAI,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;oBAChD,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;gBACpC,KAAK;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,EAAE,EAAE,mBAAmB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC;iBACpE;aACJ;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -2,5 +2,5 @@ export declare const viewSchemaApi: import("@reduxjs/toolkit/query").Api<import(
|
|
2
2
|
getViewSchema: import("@reduxjs/toolkit/query").QueryDefinition<{
|
3
3
|
database: string;
|
4
4
|
path: string;
|
5
|
-
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "
|
6
|
-
}, "api", "All" | "PDiskData" | "
|
5
|
+
}, import("@reduxjs/toolkit/query").BaseQueryFn<void, typeof import("../api")._NEVER, unknown, {}>, "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", import("../../../types/api/query").ColumnType[] | undefined, "api">;
|
6
|
+
}, "api", "All" | "PDiskData" | "PreviewData" | "StorageData" | "Tablet" | "UserData" | "VDiskData", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
|
@@ -17,7 +17,7 @@ export const viewSchemaApi = api.injectEndpoints({
|
|
17
17
|
if (isQueryErrorResponse(response)) {
|
18
18
|
return { error: response };
|
19
19
|
}
|
20
|
-
return { data: response.columns || [] };
|
20
|
+
return { data: (response === null || response === void 0 ? void 0 : response.columns) || [] };
|
21
21
|
}
|
22
22
|
catch (error) {
|
23
23
|
return { error: error };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"viewSchema.js","sourceRoot":"","sources":["../../../../src/store/reducers/viewSchema/viewSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,SAAS,qBAAqB,CAAC,IAAY;IACvC,OAAO,mBAAmB,IAAI,YAAY,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC;IAC7C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAmC,EAAE,EAAE;gBAClE,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CACvC;wBACI,MAAM,EAAE,QAAQ;wBAChB,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC;wBAClC,QAAQ;wBACR,MAAM,EAAE,cAAc;qBACzB,EACD,EAAC,WAAW,EAAE,IAAI,EAAC,CACtB,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,OAAO,EAAC,IAAI,EAAE,QAAQ,
|
1
|
+
{"version":3,"file":"viewSchema.js","sourceRoot":"","sources":["../../../../src/store/reducers/view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}
|
326
|
+
|
327
|
+
@mixin entity-state-colors {
|
328
|
+
--entity-state-border-color: var(--g-color-base-misc-heavy);
|
329
|
+
--entity-state-background-color: var(--g-color-base-misc-light);
|
330
|
+
--entity-state-fill-color: var(--g-color-base-misc-medium);
|
331
|
+
--entity-state-font-color: var(--g-color-text-primary);
|
332
|
+
|
333
|
+
&_green {
|
334
|
+
--entity-state-font-color: var(--g-color-text-positive);
|
335
|
+
--entity-state-border-color: var(--g-color-base-positive-heavy);
|
336
|
+
--entity-state-background-color: var(--g-color-base-positive-light);
|
337
|
+
--entity-state-fill-color: var(--g-color-base-positive-medium);
|
338
|
+
}
|
339
|
+
|
340
|
+
&_blue {
|
341
|
+
--entity-state-font-color: var(--g-color-text-info);
|
342
|
+
--entity-state-border-color: var(--g-color-base-info-heavy);
|
343
|
+
--entity-state-background-color: var(--g-color-base-info-light);
|
344
|
+
--entity-state-fill-color: var(--g-color-base-info-medium);
|
345
|
+
}
|
346
|
+
|
347
|
+
&_yellow {
|
348
|
+
--entity-state-font-color: var(--g-color-text-warning);
|
349
|
+
--entity-state-border-color: var(--g-color-base-warning-heavy);
|
350
|
+
--entity-state-background-color: var(--g-color-base-yellow-light);
|
351
|
+
--entity-state-fill-color: var(--g-color-base-yellow-medium);
|
352
|
+
}
|
353
|
+
|
354
|
+
&_orange {
|
355
|
+
--entity-state-font-color: var(--g-color-text-warning-heavy);
|
356
|
+
--entity-state-border-color: var(--ydb-color-status-orange);
|
357
|
+
--entity-state-background-color: var(--g-color-base-warning-light);
|
358
|
+
--entity-state-fill-color: var(--g-color-base-warning-medium);
|
359
|
+
}
|
360
|
+
&_red {
|
361
|
+
--entity-state-font-color: var(--g-color-text-danger);
|
362
|
+
--entity-state-border-color: var(--g-color-base-danger-heavy);
|
363
|
+
--entity-state-background-color: var(--g-color-base-danger-light);
|
364
|
+
--entity-state-fill-color: var(--g-color-base-danger-medium);
|
365
|
+
}
|
366
|
+
&__grey {
|
367
|
+
--entity-state-font-color: var(--g-color-text-secondary);
|
368
|
+
--entity-state-border-color: var(--g-color-line-generic-hover);
|
369
|
+
}
|
370
|
+
}
|
@@ -4,4 +4,4 @@
|
|
4
4
|
export interface CapabilitiesResponse {
|
5
5
|
Capabilities: Record<Partial<Capability>, number>;
|
6
6
|
}
|
7
|
-
export type Capability = '/pdisk/info' | '/scheme/directory' | '/viewer/query';
|
7
|
+
export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query';
|
@@ -6,7 +6,7 @@ import type { TTraceCheck, TTraceView } from './trace';
|
|
6
6
|
*
|
7
7
|
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
|
8
8
|
*/
|
9
|
-
export interface
|
9
|
+
export interface TClusterInfoV1 {
|
10
10
|
Name?: string;
|
11
11
|
Overall?: EFlag;
|
12
12
|
NodesTotal?: number;
|
@@ -38,3 +38,33 @@ export interface TClusterInfo {
|
|
38
38
|
TraceView?: TTraceView;
|
39
39
|
TraceCheck?: TTraceCheck;
|
40
40
|
}
|
41
|
+
export interface TStorageStats {
|
42
|
+
PDiskFilter?: string;
|
43
|
+
ErasureSpecies?: string;
|
44
|
+
CurrentAvailableSize?: string;
|
45
|
+
/** uint64 */
|
46
|
+
CurrentAllocatedSize?: string;
|
47
|
+
CurrentGroupsCreated?: number;
|
48
|
+
AvailableGroupsToCreate?: number;
|
49
|
+
}
|
50
|
+
export interface TClusterInfoV2 extends TClusterInfoV1 {
|
51
|
+
MapDataCenters?: {
|
52
|
+
[key: string]: number;
|
53
|
+
};
|
54
|
+
MapNodeStates?: Partial<Record<EFlag, number>>;
|
55
|
+
/** value is uint64 */
|
56
|
+
MapStorageTotal?: {
|
57
|
+
[key: string]: string;
|
58
|
+
};
|
59
|
+
/** value is uint64 */
|
60
|
+
MapStorageUsed?: {
|
61
|
+
[key: string]: string;
|
62
|
+
};
|
63
|
+
MapVersions?: {
|
64
|
+
[key: string]: number;
|
65
|
+
};
|
66
|
+
StorageStats?: TStorageStats[];
|
67
|
+
Version?: number;
|
68
|
+
}
|
69
|
+
export type TClusterInfo = TClusterInfoV1 | TClusterInfoV2;
|
70
|
+
export declare function isClusterInfoV2(info?: TClusterInfo): info is TClusterInfoV2;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"AA6EA,MAAM,UAAU,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAClE,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface FeatureFlagConfig {
|
2
|
+
Name: string;
|
3
|
+
Current?: boolean;
|
4
|
+
Default?: boolean;
|
5
|
+
}
|
6
|
+
interface ConfigDb {
|
7
|
+
Name: string;
|
8
|
+
FeatureFlags: FeatureFlagConfig[];
|
9
|
+
}
|
10
|
+
export interface FeatureFlagConfigs {
|
11
|
+
Databases: ConfigDb[];
|
12
|
+
}
|
13
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"featureFlags.js","sourceRoot":"","sources":["../../../src/types/api/featureFlags.ts"],"names":[],"mappings":""}
|
package/dist/types/api/meta.d.ts
CHANGED
@@ -17,7 +17,7 @@ export interface MetaExtendedClusterInfo extends MetaGeneralClusterInfo {
|
|
17
17
|
hosts?: Record<string, number>;
|
18
18
|
versions?: MetaClusterVersion[];
|
19
19
|
}
|
20
|
-
export interface
|
20
|
+
export interface MetaBaseClusterInfo {
|
21
21
|
owner?: string;
|
22
22
|
location?: string;
|
23
23
|
image?: string;
|
@@ -33,13 +33,15 @@ export interface MetaGeneralClusterInfo {
|
|
33
33
|
description?: string;
|
34
34
|
balancer?: string;
|
35
35
|
service?: string;
|
36
|
-
cluster?: MetaViewerClusterInfo;
|
37
36
|
trace_view?: string;
|
38
37
|
trace_check?: string;
|
39
38
|
}
|
40
|
-
export interface
|
41
|
-
|
39
|
+
export interface MetaGeneralClusterInfo extends MetaBaseClusterInfo {
|
40
|
+
cluster?: MetaViewerClusterInfo;
|
42
41
|
}
|
42
|
+
export type MetaViewerClusterInfo = TClusterInfo & {
|
43
|
+
error?: string;
|
44
|
+
};
|
43
45
|
export interface MetaClusterVersion {
|
44
46
|
version: string;
|
45
47
|
version_base_color_index?: number;
|
@@ -113,7 +113,7 @@ export interface TPDiskInfo {
|
|
113
113
|
Category?: string;
|
114
114
|
DecommitStatus?: EDecommitStatus;
|
115
115
|
}
|
116
|
-
type EDriveStatus = 'UNKNOWN' | 'ACTIVE' | 'INACTIVE' | 'BROKEN' | 'FAULTY' | 'TO_BE_REMOVED';
|
116
|
+
export type EDriveStatus = 'UNKNOWN' | 'ACTIVE' | 'INACTIVE' | 'BROKEN' | 'FAULTY' | 'TO_BE_REMOVED';
|
117
117
|
export type EDecommitStatus = 'DECOMMIT_UNSET' | 'DECOMMIT_NONE' | 'DECOMMIT_PENDING' | 'DECOMMIT_IMMINENT' | 'DECOMMIT_REJECTED';
|
118
118
|
type EPDiskType = 'ROT' | 'SSD' | 'NVME' | 'UNKNOWN_TYPE';
|
119
119
|
export {};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { EFlag } from './enums';
|
2
|
-
import type {
|
2
|
+
import type { EDecommitStatus, EDriveStatus, TPDiskStateInfo } from './pdisk';
|
3
|
+
import type { EVDiskStatus, TVDiskStateInfo } from './vdisk';
|
3
4
|
/**
|
4
|
-
* endpoint: /viewer/
|
5
|
+
* endpoint: /viewer/storage
|
5
6
|
*
|
6
7
|
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
|
7
8
|
*/
|
@@ -50,7 +51,9 @@ export interface TStorageGroupInfoV2 extends TStorageGroupInfo {
|
|
50
51
|
/** uint64 */
|
51
52
|
Usage?: string;
|
52
53
|
}
|
53
|
-
export type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats
|
54
|
+
export type TStorageGroupInfo = TBSGroupStateInfo & THiveStorageGroupStats & {
|
55
|
+
DiskSpace?: EFlag;
|
56
|
+
};
|
54
57
|
interface TBSGroupStateInfo {
|
55
58
|
GroupID?: number;
|
56
59
|
ErasureSpecies?: string;
|
@@ -92,8 +95,131 @@ interface THiveStorageGroupStats {
|
|
92
95
|
/** uint64 */
|
93
96
|
AvailableSize?: string;
|
94
97
|
}
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
+
/**
|
99
|
+
* endpoint: /storage/groups
|
100
|
+
*
|
101
|
+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/storage_groups.h
|
102
|
+
*/
|
103
|
+
export interface StorageGroupsResponse {
|
104
|
+
Version?: number;
|
105
|
+
TotalGroups?: number;
|
106
|
+
FoundGroups?: number;
|
107
|
+
FieldsAvailable?: number;
|
108
|
+
FieldsRequired?: number;
|
109
|
+
StorageGroups?: TGroupsStorageGroupInfo[];
|
110
|
+
StorageGroupGroups?: StorageGroupGroups;
|
111
|
+
}
|
112
|
+
interface StorageGroupGroups {
|
113
|
+
GroupName?: string;
|
114
|
+
GroupCount?: string;
|
115
|
+
}
|
116
|
+
export interface TGroupsStorageGroupInfo {
|
117
|
+
GroupId?: string;
|
118
|
+
/** uint64 */
|
119
|
+
GroupGeneration?: string;
|
120
|
+
PoolName?: string;
|
121
|
+
Encryption?: boolean;
|
122
|
+
Overall?: EFlag;
|
123
|
+
DiskSpace?: EFlag;
|
124
|
+
Kind?: string;
|
125
|
+
MediaType?: string;
|
126
|
+
ErasureSpecies?: string;
|
127
|
+
/** uint64 */
|
128
|
+
AllocationUnits?: string;
|
129
|
+
State?: string;
|
130
|
+
/** uint64 */
|
131
|
+
MissingDisks?: string;
|
132
|
+
/** uint64 */
|
133
|
+
Used?: string;
|
134
|
+
/** uint64 */
|
135
|
+
Limit?: string;
|
136
|
+
/** uint64 */
|
137
|
+
Available?: string;
|
138
|
+
/** float */
|
139
|
+
Usage?: number;
|
140
|
+
/** uint64 */
|
141
|
+
Read?: string;
|
142
|
+
/** uint64 */
|
143
|
+
Write?: string;
|
144
|
+
/** float */
|
145
|
+
DiskSpaceUsage?: number;
|
146
|
+
VDisks?: TStorageVDisk[];
|
147
|
+
}
|
148
|
+
/**
|
149
|
+
* VDisk data from storage/groups handler
|
150
|
+
*/
|
151
|
+
export interface TStorageVDisk {
|
152
|
+
VDiskId?: string;
|
153
|
+
NodeId?: number;
|
154
|
+
/** uint64 */
|
155
|
+
AllocatedSize?: string;
|
156
|
+
/** uint64 */
|
157
|
+
AvailableSize?: string;
|
158
|
+
Status?: EVDiskStatus;
|
159
|
+
DiskSpace?: EFlag;
|
160
|
+
Donors?: Omit<TStorageVDisk, 'PDisk' | 'Whiteboard'>;
|
161
|
+
PDisk?: TStoragePDisk;
|
162
|
+
Whiteboard?: TVDiskStateInfo;
|
163
|
+
}
|
164
|
+
/**
|
165
|
+
* PDisk data from storage/groups handler
|
166
|
+
*/
|
167
|
+
interface TStoragePDisk {
|
168
|
+
PDiskId?: string;
|
169
|
+
Path?: string;
|
170
|
+
Type?: 'hdd' | 'ssd' | 'nvme';
|
171
|
+
Guid?: string;
|
172
|
+
/** uint64 */
|
173
|
+
Category?: string;
|
174
|
+
/** uint64 */
|
175
|
+
TotalSize?: string;
|
176
|
+
/** uint64 */
|
177
|
+
AvailableSize?: string;
|
178
|
+
Status?: EDriveStatus;
|
179
|
+
DiskSpace?: EFlag;
|
180
|
+
DecommitStatus?: EDecommitStatus;
|
181
|
+
/** uint64 */
|
182
|
+
SlotSize?: string;
|
183
|
+
Whiteboard?: TPDiskStateInfo;
|
184
|
+
}
|
185
|
+
export type EVersion = 'v1' | 'v2';
|
186
|
+
/**
|
187
|
+
* Values to sort /viewer/storage v2 response
|
188
|
+
*/
|
189
|
+
export type StorageV2SortValue = 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'Degraded' | 'Usage' | 'GroupId' | 'Used' | 'Limit' | 'Read' | 'Write';
|
190
|
+
/**
|
191
|
+
* Values to sort /storage/groups response
|
192
|
+
*/
|
193
|
+
export type GroupsSortField = StorageV2SortValue | 'MissingDisks' | 'State' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits';
|
194
|
+
export type StorageV2Sort = `-${StorageV2SortValue}` | `+${StorageV2SortValue}`;
|
195
|
+
export type GroupsSort = `-${GroupsSortField}` | `+${GroupsSortField}`;
|
196
|
+
export type StorageWithFilter = 'space' | 'missing' | 'all';
|
197
|
+
export type GroupsGroupByField = 'GroupId' | 'Erasure' | 'Usage' | 'DiskSpaceUsage' | 'PoolName' | 'Kind' | 'Encryption' | 'MediaType' | 'MissingDisks' | 'State';
|
198
|
+
export type GroupsRequiredField = 'GroupId' | 'PoolName' | 'Kind' | 'MediaType' | 'Erasure' | 'MissingDisks' | 'Degraded' | 'State' | 'Usage' | 'Used' | 'Limit' | 'Usage' | 'Available' | 'DiskSpaceUsage' | 'Encryption' | 'AllocationUnits' | 'Read' | 'Write' | 'PDisk' | 'VDisk';
|
199
|
+
interface BaseStorageRequestParams {
|
200
|
+
/** @deprecated use database instead */
|
201
|
+
tenant?: string;
|
202
|
+
database?: string;
|
203
|
+
pool?: string;
|
204
|
+
with?: StorageWithFilter;
|
205
|
+
/** PoolName or GroupId */
|
206
|
+
filter?: string;
|
207
|
+
offset?: number;
|
208
|
+
limit?: number;
|
209
|
+
}
|
210
|
+
export interface StorageRequestParams extends BaseStorageRequestParams {
|
211
|
+
nodeId?: string | number;
|
212
|
+
pDiskId?: string | number;
|
213
|
+
groupId?: string | number;
|
214
|
+
sort?: StorageV2Sort;
|
215
|
+
version?: EVersion;
|
216
|
+
}
|
217
|
+
export interface GroupsRequestParams extends BaseStorageRequestParams {
|
218
|
+
nodeId?: string | number | (string | number)[];
|
219
|
+
pDiskId?: string | number | (string | number)[];
|
220
|
+
groupId?: string | number | (string | number)[];
|
221
|
+
sort?: GroupsSort;
|
222
|
+
group?: GroupsGroupByField;
|
223
|
+
fieldsRequired?: GroupsRequiredField[] | 'all';
|
98
224
|
}
|
99
225
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/api/storage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/types/api/storage.ts"],"names":[],"mappings":""}
|
@@ -1,7 +1,17 @@
|
|
1
|
-
import
|
2
|
-
export
|
3
|
-
url:
|
4
|
-
}
|
5
|
-
export interface TTraceView {
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const traceCheckSchema: z.ZodObject<{
|
3
|
+
url: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
6
5
|
url: string;
|
7
|
-
}
|
6
|
+
}, {
|
7
|
+
url: string;
|
8
|
+
}>;
|
9
|
+
export type TTraceCheck = z.infer<typeof traceCheckSchema>;
|
10
|
+
export declare const traceViewSchema: z.ZodObject<{
|
11
|
+
url: z.ZodString;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
url: string;
|
14
|
+
}, {
|
15
|
+
url: string;
|
16
|
+
}>;
|
17
|
+
export type TTraceView = z.infer<typeof traceViewSchema>;
|
package/dist/types/api/trace.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/types/api/trace.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/types/api/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC"}
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setQueryHistoryFilter, setTenantPath, updateQueryInHistory } from '../../store/reducers/executeQuery';
|
1
|
+
import type { changeUserInput, goToNextQuery, goToPreviousQuery, saveQueryToHistory, setQueryHistoryFilter, setQueryResult, setTenantPath, updateQueryInHistory } from '../../store/reducers/executeQuery';
|
2
|
+
import type { PreparedExplainResponse } from '../../store/reducers/explainQuery/types';
|
3
|
+
import type { IQueryResult } from './query';
|
2
4
|
export interface QueryInHistory {
|
3
5
|
queryId?: string;
|
4
6
|
queryText: string;
|
@@ -6,9 +8,28 @@ export interface QueryInHistory {
|
|
6
8
|
endTime?: string | number;
|
7
9
|
durationUs?: string | number;
|
8
10
|
}
|
11
|
+
export declare enum ResultType {
|
12
|
+
EXECUTE = "execute",
|
13
|
+
EXPLAIN = "explain"
|
14
|
+
}
|
15
|
+
interface CommonResultParams {
|
16
|
+
queryId: string;
|
17
|
+
isLoading: boolean;
|
18
|
+
}
|
19
|
+
export type ExecuteQueryResult = {
|
20
|
+
type: ResultType.EXECUTE;
|
21
|
+
data?: IQueryResult;
|
22
|
+
error?: unknown;
|
23
|
+
} & CommonResultParams;
|
24
|
+
export type ExplainQueryResult = {
|
25
|
+
type: ResultType.EXPLAIN;
|
26
|
+
data?: PreparedExplainResponse;
|
27
|
+
error?: unknown;
|
28
|
+
} & CommonResultParams;
|
29
|
+
export type QueryResult = ExecuteQueryResult | ExplainQueryResult;
|
9
30
|
export interface ExecuteQueryState {
|
10
|
-
loading: boolean;
|
11
31
|
input: string;
|
32
|
+
result?: QueryResult;
|
12
33
|
history: {
|
13
34
|
queries: QueryInHistory[];
|
14
35
|
currentIndex: number;
|
@@ -16,7 +37,8 @@ export interface ExecuteQueryState {
|
|
16
37
|
};
|
17
38
|
tenantPath?: string;
|
18
39
|
}
|
19
|
-
export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof updateQueryInHistory> | ReturnType<typeof setTenantPath> | ReturnType<typeof setQueryHistoryFilter>;
|
40
|
+
export type ExecuteQueryAction = ReturnType<typeof goToNextQuery> | ReturnType<typeof goToPreviousQuery> | ReturnType<typeof changeUserInput> | ReturnType<typeof setQueryResult> | ReturnType<typeof saveQueryToHistory> | ReturnType<typeof updateQueryInHistory> | ReturnType<typeof setTenantPath> | ReturnType<typeof setQueryHistoryFilter>;
|
20
41
|
export interface ExecuteQueryStateSlice {
|
21
42
|
executeQuery: ExecuteQueryState;
|
22
43
|
}
|
44
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"executeQuery.js","sourceRoot":"","sources":["../../../src/types/store/executeQuery.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
@@ -55,7 +55,6 @@ export declare const TENANT_DEFAULT_TITLE = "Database";
|
|
55
55
|
export declare const THEME_KEY = "theme";
|
56
56
|
export declare const LANGUAGE_KEY = "language";
|
57
57
|
export declare const INVERTED_DISKS_KEY = "invertedDisks";
|
58
|
-
export declare const USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY = "useNodesEndpointInDiagnostics";
|
59
58
|
export declare const SAVED_QUERIES_KEY = "saved_queries";
|
60
59
|
export declare const ASIDE_HEADER_COMPACT_KEY = "asideHeaderCompact";
|
61
60
|
export declare const QUERIES_HISTORY_KEY = "queries_history";
|
package/dist/utils/constants.js
CHANGED
@@ -71,7 +71,6 @@ export const TENANT_DEFAULT_TITLE = 'Database';
|
|
71
71
|
export const THEME_KEY = 'theme';
|
72
72
|
export const LANGUAGE_KEY = 'language';
|
73
73
|
export const INVERTED_DISKS_KEY = 'invertedDisks';
|
74
|
-
export const USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY = 'useNodesEndpointInDiagnostics';
|
75
74
|
export const SAVED_QUERIES_KEY = 'saved_queries';
|
76
75
|
export const ASIDE_HEADER_COMPACT_KEY = 'asideHeaderCompact';
|
77
76
|
export const QUERIES_HISTORY_KEY = 'queries_history';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAGrD,OAAO,EAAC,KAAK,EAAC,MAAM,qBAAqB,CAAC;AAG1C,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAEzF,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,GAAG,MAAM,CAAC;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,GAAG,MAAM,CAAC;AACpD,yDAAyD;AACzD,6DAA6D;AAC7D,8DAA8D;AAC9D,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAK,CAAC;AAC9B,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAS,CAAC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAa,CAAC;AACtC,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAiB,CAAC;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AACpC,MAAM,CAAC,MAAM,eAAe,GAAG,EA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qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iCAAiC,CAAC;AAErF,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC"}
|
@@ -1,4 +1,7 @@
|
|
1
|
+
import type { EFlag } from '../../types/api/enums';
|
1
2
|
import type { TVDiskStateInfo, TVSlotId } from '../../types/api/vdisk';
|
2
3
|
export declare function isFullVDiskData(disk: TVDiskStateInfo | TVSlotId): disk is TVDiskStateInfo;
|
3
|
-
export declare function getSeverityColor(severity: number | undefined):
|
4
|
+
export declare function getSeverityColor(severity: number | undefined): EFlag;
|
5
|
+
export declare function getColorSeverity(color?: EFlag): number;
|
4
6
|
export declare function getPDiskId(nodeId?: string | number | null, pDiskId?: string | number | null): string | undefined;
|
7
|
+
export declare function getVDiskSlotBasedId(nodeId: string | number, pDiskId: string | number, vDiskSlotId: string | number): string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { valueIsDefined } from '..';
|
2
|
-
import { DISK_NUMERIC_SEVERITY_TO_STATE_COLOR, NOT_AVAILABLE_SEVERITY_COLOR } from './constants';
|
2
|
+
import { DISK_COLOR_STATE_TO_NUMERIC_SEVERITY, DISK_NUMERIC_SEVERITY_TO_STATE_COLOR, NOT_AVAILABLE_SEVERITY_COLOR, } from './constants';
|
3
3
|
export function isFullVDiskData(disk) {
|
4
4
|
return 'VDiskId' in disk;
|
5
5
|
}
|
@@ -9,10 +9,16 @@ export function getSeverityColor(severity) {
|
|
9
9
|
}
|
10
10
|
return DISK_NUMERIC_SEVERITY_TO_STATE_COLOR[severity] || NOT_AVAILABLE_SEVERITY_COLOR;
|
11
11
|
}
|
12
|
+
export function getColorSeverity(color) {
|
13
|
+
return color ? DISK_COLOR_STATE_TO_NUMERIC_SEVERITY[color] : 0;
|
14
|
+
}
|
12
15
|
export function getPDiskId(nodeId, pDiskId) {
|
13
16
|
if (valueIsDefined(nodeId) && valueIsDefined(pDiskId)) {
|
14
17
|
return `${nodeId}-${pDiskId}`;
|
15
18
|
}
|
16
19
|
return undefined;
|
17
20
|
}
|
21
|
+
export function getVDiskSlotBasedId(nodeId, pDiskId, vDiskSlotId) {
|
22
|
+
return [nodeId, pDiskId, vDiskSlotId].join('-');
|
23
|
+
}
|
18
24
|
//# sourceMappingURL=helpers.js.map
|