ydb-embedded-ui 6.37.1 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +2 -2
- package/dist/components/DeveloperUILinkButton/DeveloperUILinkButton.scss +2 -2
- package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +2 -2
- package/dist/components/EmptyState/EmptyState.scss +4 -4
- package/dist/components/EntityPageTitle/EntityPageTitle.scss +2 -2
- package/dist/components/EntityStatus/EntityStatus.scss +4 -4
- package/dist/components/ErrorBoundary/ErrorBoundary.scss +3 -3
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +2 -2
- package/dist/components/Fullscreen/Fullscreen.js +1 -1
- package/dist/components/Fullscreen/Fullscreen.js.map +1 -1
- package/dist/components/Fullscreen/Fullscreen.scss +8 -1
- package/dist/components/MemoryViewer/MemoryViewer.js +8 -7
- package/dist/components/MemoryViewer/MemoryViewer.js.map +1 -1
- package/dist/components/MemoryViewer/MemoryViewer.scss +0 -2
- package/dist/components/MemoryViewer/utils.d.ts +3 -1
- package/dist/components/MemoryViewer/utils.js +15 -13
- package/dist/components/MemoryViewer/utils.js.map +1 -1
- package/dist/components/MetricChart/getChartData.js +1 -1
- package/dist/components/MetricChart/getChartData.js.map +1 -1
- package/dist/components/PageMeta/PageMeta.scss +2 -2
- package/dist/components/PaginatedTable/PaginatedTable.scss +4 -4
- package/dist/components/PoolUsage/PoolUsage.scss +2 -2
- package/dist/components/ProgressViewer/ProgressViewer.scss +2 -2
- package/dist/components/QueryResultTable/QueryResultTable.js +4 -3
- package/dist/components/QueryResultTable/QueryResultTable.js.map +1 -1
- package/dist/components/QueryResultTable/QueryResultTable.scss +2 -2
- package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +4 -4
- package/dist/components/User/User.scss +2 -2
- package/dist/components/YDBDefinitionList/YDBDefinitionList.scss +3 -3
- package/dist/components/nodesColumns/columns.js +1 -0
- package/dist/components/nodesColumns/columns.js.map +1 -1
- package/dist/components/nodesColumns/i18n/index.d.ts +1 -1
- package/dist/containers/App/App.scss +7 -6
- package/dist/containers/AsideNavigation/AsideNavigation.js +11 -2
- package/dist/containers/AsideNavigation/AsideNavigation.js.map +1 -1
- package/dist/containers/Authentication/Authentication.scss +2 -2
- package/dist/containers/Cluster/Cluster.scss +4 -4
- package/dist/containers/Cluster/ClusterDashboard/ClusterDashboard.scss +2 -2
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +2 -2
- package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +2 -2
- package/dist/containers/Clusters/constants.d.ts +1 -1
- package/dist/containers/Header/Header.scss +0 -2
- package/dist/containers/Heatmap/Heatmap.scss +3 -3
- package/dist/containers/Node/Node.scss +4 -4
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +3 -3
- package/dist/containers/Nodes/Nodes.d.ts +2 -1
- package/dist/containers/Nodes/Nodes.js +12 -11
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/Nodes.scss +2 -2
- package/dist/containers/Nodes/NodesControls/NodesControls.d.ts +2 -1
- package/dist/containers/Nodes/NodesControls/NodesControls.js +7 -4
- package/dist/containers/Nodes/NodesControls/NodesControls.js.map +1 -1
- package/dist/containers/Nodes/NodesTable.d.ts +3 -2
- package/dist/containers/Nodes/NodesTable.js +12 -2
- package/dist/containers/Nodes/NodesTable.js.map +1 -1
- package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.d.ts +7 -0
- package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.js +9 -0
- package/dist/containers/Nodes/PeerRoleFilter/PeerRoleFilter.js.map +1 -0
- package/dist/containers/Nodes/PeerRoleFilter/utils.d.ts +4 -0
- package/dist/containers/Nodes/PeerRoleFilter/utils.js +20 -0
- package/dist/containers/Nodes/PeerRoleFilter/utils.js.map +1 -0
- package/dist/containers/Nodes/columns/columns.js +4 -4
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.js +3 -6
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/getNodes.js +3 -2
- package/dist/containers/Nodes/getNodes.js.map +1 -1
- package/dist/containers/Nodes/i18n/en.json +6 -1
- package/dist/containers/Nodes/i18n/index.d.ts +1 -1
- package/dist/containers/Nodes/useNodesPageQueryParams.d.ts +3 -1
- package/dist/containers/Nodes/useNodesPageQueryParams.js +8 -0
- package/dist/containers/Nodes/useNodesPageQueryParams.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +2 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.scss +2 -2
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +2 -2
- package/dist/containers/Storage/Storage.scss +2 -2
- package/dist/containers/Storage/StorageGroups/columns/constants.js +0 -5
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.js +6 -6
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.js +2 -3
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js +1 -1
- package/dist/containers/Storage/StorageNodes/getNodes.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.scss +2 -2
- package/dist/containers/Tablet/Tablet.scss +2 -2
- package/dist/containers/Tablet/components/TabletInfo/TabletInfo.scss +2 -2
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +4 -4
- package/dist/containers/Tablets/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Acl/Acl.scss +3 -3
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +6 -6
- package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Describe/Describe.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +0 -2
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +6 -6
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js +1 -1
- package/dist/containers/Tenant/Diagnostics/Network/NetworkWrapper.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +6 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +3 -3
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js +1 -0
- package/dist/containers/Tenant/Diagnostics/TopQueries/getTopQueriesColumns.js.map +1 -1
- package/dist/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +0 -2
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -3
- package/dist/containers/Tenant/Query/CancelQueryButton/CancelQueryButton.scss +2 -2
- package/dist/containers/Tenant/Query/Preview/Preview.js +11 -5
- package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.scss +4 -3
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.scss +3 -3
- package/dist/containers/Tenant/Query/Query.scss +2 -2
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +2 -2
- package/dist/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +2 -2
- package/dist/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +2 -2
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +4 -4
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.scss +3 -3
- 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/Schema/SchemaViewer/SchemaViewer.scss +3 -3
- package/dist/containers/Tenant/Tenant.scss +3 -3
- package/dist/containers/Tenants/Tenants.scss +2 -2
- package/dist/containers/VDiskPage/VDiskPage.js +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.scss +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.d.ts +2 -2
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.js.map +1 -1
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -5
- package/dist/containers/Versions/NodesTable/NodesTable.d.ts +2 -2
- package/dist/containers/Versions/NodesTable/NodesTable.js +16 -85
- package/dist/containers/Versions/NodesTable/NodesTable.js.map +1 -1
- package/dist/containers/Versions/Versions.scss +0 -2
- package/dist/containers/Versions/groupNodes.d.ts +4 -4
- package/dist/containers/Versions/groupNodes.js.map +1 -1
- package/dist/containers/Versions/types.d.ts +2 -2
- package/dist/lib.d.ts +1 -1
- package/dist/lib.js +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/services/api/auth.d.ts +8 -0
- package/dist/services/api/auth.js +10 -0
- package/dist/services/api/auth.js.map +1 -0
- package/dist/services/api/base.d.ts +13 -0
- package/dist/services/api/base.js +57 -0
- package/dist/services/api/base.js.map +1 -0
- package/dist/services/api/index.d.ts +31 -0
- package/dist/services/api/index.js +32 -0
- package/dist/services/api/index.js.map +1 -0
- package/dist/services/api/meta.d.ts +12 -0
- package/dist/services/api/meta.js +30 -0
- package/dist/services/api/meta.js.map +1 -0
- package/dist/services/api/operation.d.ts +8 -0
- package/dist/services/api/operation.js +22 -0
- package/dist/services/api/operation.js.map +1 -0
- package/dist/services/api/pdisk.d.ts +25 -0
- package/dist/services/api/pdisk.js +43 -0
- package/dist/services/api/pdisk.js.map +1 -0
- package/dist/services/api/scheme.d.ts +11 -0
- package/dist/services/api/scheme.js +12 -0
- package/dist/services/api/scheme.js.map +1 -0
- package/dist/services/api/storage.d.ts +6 -0
- package/dist/services/api/storage.js +28 -0
- package/dist/services/api/storage.js.map +1 -0
- package/dist/services/api/tablets.d.ts +21 -0
- package/dist/services/api/tablets.js +44 -0
- package/dist/services/api/tablets.js.map +1 -0
- package/dist/services/api/trace.d.ts +7 -0
- package/dist/services/api/trace.js +33 -0
- package/dist/services/api/trace.js.map +1 -0
- package/dist/services/api/vdisk.d.ts +12 -0
- package/dist/services/api/vdisk.js +16 -0
- package/dist/services/api/vdisk.js.map +1 -0
- package/dist/services/api/viewer.d.ts +129 -0
- package/dist/services/api/viewer.js +251 -0
- package/dist/services/api/viewer.js.map +1 -0
- package/dist/store/reducers/authentication/authentication.js +3 -3
- package/dist/store/reducers/authentication/authentication.js.map +1 -1
- package/dist/store/reducers/cancelQuery.js +1 -1
- package/dist/store/reducers/cancelQuery.js.map +1 -1
- package/dist/store/reducers/capabilities/capabilities.js +1 -1
- package/dist/store/reducers/capabilities/capabilities.js.map +1 -1
- package/dist/store/reducers/capabilities/hooks.js +1 -1
- package/dist/store/reducers/cluster/cluster.js +8 -3
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/clusters/clusters.js +7 -2
- package/dist/store/reducers/clusters/clusters.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +2 -2
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js +1 -1
- package/dist/store/reducers/healthcheckInfo/healthcheckInfo.js.map +1 -1
- package/dist/store/reducers/heatmap.js +2 -2
- package/dist/store/reducers/heatmap.js.map +1 -1
- package/dist/store/reducers/hotKeys/hotKeys.js +2 -2
- package/dist/store/reducers/hotKeys/hotKeys.js.map +1 -1
- package/dist/store/reducers/network/network.js +1 -1
- package/dist/store/reducers/network/network.js.map +1 -1
- package/dist/store/reducers/node/node.js +2 -2
- package/dist/store/reducers/node/node.js.map +1 -1
- package/dist/store/reducers/nodes/nodes.js +1 -1
- package/dist/store/reducers/nodes/nodes.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -1
- package/dist/store/reducers/nodesList.js +1 -1
- package/dist/store/reducers/nodesList.js.map +1 -1
- package/dist/store/reducers/operations.js +3 -3
- package/dist/store/reducers/operations.js.map +1 -1
- package/dist/store/reducers/overview/overview.js +2 -2
- package/dist/store/reducers/overview/overview.js.map +1 -1
- package/dist/store/reducers/partitions/partitions.js +2 -2
- package/dist/store/reducers/partitions/partitions.js.map +1 -1
- package/dist/store/reducers/pdisk/pdisk.js +3 -3
- package/dist/store/reducers/pdisk/pdisk.js.map +1 -1
- package/dist/store/reducers/planToSvg.js +1 -1
- package/dist/store/reducers/planToSvg.js.map +1 -1
- package/dist/store/reducers/preview.d.ts +1 -0
- package/dist/store/reducers/preview.js +2 -2
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/query/query.js +1 -1
- package/dist/store/reducers/query/query.js.map +1 -1
- package/dist/store/reducers/schema/schema.js +2 -2
- package/dist/store/reducers/schema/schema.js.map +1 -1
- package/dist/store/reducers/schemaAcl/schemaAcl.js +1 -1
- package/dist/store/reducers/schemaAcl/schemaAcl.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/storage/requestStorageData.d.ts +1 -1
- package/dist/store/reducers/storage/requestStorageData.js +2 -2
- package/dist/store/reducers/storage/requestStorageData.js.map +1 -1
- package/dist/store/reducers/storage/storage.js +1 -1
- package/dist/store/reducers/storage/storage.js.map +1 -1
- package/dist/store/reducers/tablet.js +10 -8
- package/dist/store/reducers/tablet.js.map +1 -1
- package/dist/store/reducers/tablets.js +1 -1
- package/dist/store/reducers/tablets.js.map +1 -1
- package/dist/store/reducers/tenant/tenant.js +2 -2
- package/dist/store/reducers/tenant/tenant.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/tenants.js +3 -1
- package/dist/store/reducers/tenants/tenants.js.map +1 -1
- package/dist/store/reducers/tooltip.d.ts +1 -1
- package/dist/store/reducers/topic.js +1 -1
- package/dist/store/reducers/topic.js.map +1 -1
- package/dist/store/reducers/trace.js +1 -1
- package/dist/store/reducers/trace.js.map +1 -1
- package/dist/store/reducers/vdisk/vdisk.js +3 -3
- package/dist/store/reducers/vdisk/vdisk.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/styles/mixins.scss +2 -1
- package/dist/styles/themes.scss +8 -8
- package/dist/types/api/nodes.d.ts +4 -1
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/utils/hooks/useLastQueryExecutionSettings.d.ts +2 -2
- package/dist/utils/hooks/useQueryExecutionSettings.d.ts +1 -1
- package/dist/utils/monaco/yql/generateSuggestions.js +6 -2
- package/dist/utils/monaco/yql/generateSuggestions.js.map +1 -1
- package/dist/utils/query.d.ts +3 -3
- package/dist/utils/query.js +2 -2
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/versions/getVersionsColors.d.ts +1 -1
- package/dist/utils/versions/getVersionsColors.js +3 -2
- package/dist/utils/versions/getVersionsColors.js.map +1 -1
- package/package.json +2 -2
- package/dist/services/api.d.ts +0 -219
- package/dist/services/api.js +0 -522
- package/dist/services/api.js.map +0 -1
@@ -0,0 +1,28 @@
|
|
1
|
+
import { BaseYdbAPI } from './base';
|
2
|
+
export class StorageAPI extends BaseYdbAPI {
|
3
|
+
getStorageGroups({ nodeId, pDiskId, groupId, fieldsRequired, filter, ...params }, { concurrentId, signal } = {}) {
|
4
|
+
const preparedNodeId = Array.isArray(nodeId)
|
5
|
+
? this.prepareArrayRequestParam(nodeId)
|
6
|
+
: nodeId;
|
7
|
+
const preparedPDiskId = Array.isArray(pDiskId)
|
8
|
+
? this.prepareArrayRequestParam(pDiskId)
|
9
|
+
: pDiskId;
|
10
|
+
const preparedGroupId = Array.isArray(groupId)
|
11
|
+
? this.prepareArrayRequestParam(groupId)
|
12
|
+
: groupId;
|
13
|
+
const preparedFieldsRequired = Array.isArray(fieldsRequired)
|
14
|
+
? this.prepareArrayRequestParam(fieldsRequired)
|
15
|
+
: fieldsRequired;
|
16
|
+
return this.get(this.getPath('/storage/groups'), {
|
17
|
+
node_id: preparedNodeId,
|
18
|
+
pdisk_id: preparedPDiskId,
|
19
|
+
group_id: preparedGroupId,
|
20
|
+
fields_required: preparedFieldsRequired,
|
21
|
+
// Do not send empty string
|
22
|
+
filter: filter || undefined,
|
23
|
+
timeout: 20000,
|
24
|
+
...params,
|
25
|
+
}, { concurrentId, requestConfig: { signal } });
|
26
|
+
}
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=storage.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/services/api/storage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,UAAW,SAAQ,UAAU;IACtC,gBAAgB,CACZ,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,EAAsB,EAClF,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;YACxC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC;YACvC,CAAC,CAAC,MAAM,CAAC;QAEb,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YAC1C,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC;YACxC,CAAC,CAAC,OAAO,CAAC;QAEd,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YAC1C,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC;YACxC,CAAC,CAAC,OAAO,CAAC;QAEd,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;YACxD,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,cAAc,CAAC;YAC/C,CAAC,CAAC,cAAc,CAAC;QAErB,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAC/B;YACI,OAAO,EAAE,cAAc;YACvB,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,eAAe;YACzB,eAAe,EAAE,sBAAsB;YACvC,2BAA2B;YAC3B,MAAM,EAAE,MAAM,IAAI,SAAS;YAC3B,OAAO,EAAE,KAAM;YACf,GAAG,MAAM;SACZ,EACD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC;IACN,CAAC;CACJ"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { TTabletHiveResponse } from '../../types/api/tablet';
|
2
|
+
import type { Nullable } from '../../utils/typecheckers';
|
3
|
+
import type { AxiosOptions } from './base';
|
4
|
+
import { BaseYdbAPI } from './base';
|
5
|
+
export declare class TabletsAPI extends BaseYdbAPI {
|
6
|
+
evictVDiskOld({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, }: {
|
7
|
+
groupId: string | number;
|
8
|
+
groupGeneration: string | number;
|
9
|
+
failRealmIdx: string | number;
|
10
|
+
failDomainIdx: string | number;
|
11
|
+
vDiskIdx: string | number;
|
12
|
+
force?: boolean;
|
13
|
+
}): Promise<any>;
|
14
|
+
killTablet(id: string): Promise<string>;
|
15
|
+
stopTablet(id: string, hiveId: string): Promise<string>;
|
16
|
+
resumeTablet(id: string, hiveId: string): Promise<string>;
|
17
|
+
getTabletFromHive({ id, hiveId }: {
|
18
|
+
id: string;
|
19
|
+
hiveId: string;
|
20
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TTabletHiveResponse>>;
|
21
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { BaseYdbAPI } from './base';
|
2
|
+
export class TabletsAPI extends BaseYdbAPI {
|
3
|
+
evictVDiskOld({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, }) {
|
4
|
+
// BSC Id is constant for all ydb clusters
|
5
|
+
const BSC_TABLET_ID = '72057594037932033';
|
6
|
+
return this.post(this.getPath(`/tablets/app?TabletID=${BSC_TABLET_ID}&exec=1`), {
|
7
|
+
Command: {
|
8
|
+
ReassignGroupDisk: {
|
9
|
+
GroupId: groupId,
|
10
|
+
GroupGeneration: groupGeneration,
|
11
|
+
FailRealmIdx: failRealmIdx,
|
12
|
+
FailDomainIdx: failDomainIdx,
|
13
|
+
VDiskIdx: vDiskIdx,
|
14
|
+
},
|
15
|
+
},
|
16
|
+
}, {}, {
|
17
|
+
headers: {
|
18
|
+
// This handler requires exactly this string
|
19
|
+
// Automatic headers may not suit
|
20
|
+
Accept: 'application/json',
|
21
|
+
},
|
22
|
+
});
|
23
|
+
}
|
24
|
+
killTablet(id) {
|
25
|
+
return this.get(this.getPath(`/tablets?KillTabletID=${id}`), {}, { requestConfig: { 'axios-retry': { retries: 0 } } });
|
26
|
+
}
|
27
|
+
stopTablet(id, hiveId) {
|
28
|
+
return this.get(this.getPath(`/tablets/app?TabletID=${hiveId}&page=StopTablet&tablet=${id}`), {}, { requestConfig: { 'axios-retry': { retries: 0 } } });
|
29
|
+
}
|
30
|
+
resumeTablet(id, hiveId) {
|
31
|
+
return this.get(this.getPath(`/tablets/app?TabletID=${hiveId}&page=ResumeTablet&tablet=${id}`), {}, { requestConfig: { 'axios-retry': { retries: 0 } } });
|
32
|
+
}
|
33
|
+
getTabletFromHive({ id, hiveId }, { concurrentId, signal } = {}) {
|
34
|
+
return this.get(this.getPath('/tablets/app'), {
|
35
|
+
TabletID: hiveId,
|
36
|
+
page: 'TabletInfo',
|
37
|
+
tablet: id,
|
38
|
+
}, {
|
39
|
+
concurrentId,
|
40
|
+
requestConfig: { signal },
|
41
|
+
});
|
42
|
+
}
|
43
|
+
}
|
44
|
+
//# sourceMappingURL=tablets.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"tablets.js","sourceRoot":"","sources":["../../../src/services/api/tablets.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,UAAW,SAAQ,UAAU;IACtC,aAAa,CAAC,EACV,OAAO,EACP,eAAe,EACf,YAAY,EACZ,aAAa,EACb,QAAQ,GAQX;QACG,0CAA0C;QAC1C,MAAM,aAAa,GAAG,mBAAmB,CAAC;QAE1C,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,yBAAyB,aAAa,SAAS,CAAC,EAC7D;YACI,OAAO,EAAE;gBACL,iBAAiB,EAAE;oBACf,OAAO,EAAE,OAAO;oBAChB,eAAe,EAAE,eAAe;oBAChC,YAAY,EAAE,YAAY;oBAC1B,aAAa,EAAE,aAAa;oBAC5B,QAAQ,EAAE,QAAQ;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0 +1,33 @@
|
|
1
|
+
import { SECOND_IN_MS } from '../../utils/constants';
|
2
|
+
import { isAxiosError } from '../../utils/response';
|
3
|
+
import { BaseYdbAPI } from './base';
|
4
|
+
const TRACE_RETRY_DELAY = 4 * SECOND_IN_MS;
|
5
|
+
const TRACE_CHECK_TIMEOUT = 10 * SECOND_IN_MS;
|
6
|
+
const TRACE_API_ERROR_RETRY_DELAY = 10 * SECOND_IN_MS;
|
7
|
+
const MAX_TRACE_CHECK_RETRIES = 30;
|
8
|
+
export class TraceAPI extends BaseYdbAPI {
|
9
|
+
checkTrace({ url }, { concurrentId, signal } = {}) {
|
10
|
+
return this.get(url, {}, {
|
11
|
+
concurrentId: concurrentId || 'checkTrace',
|
12
|
+
requestConfig: {
|
13
|
+
signal,
|
14
|
+
timeout: TRACE_CHECK_TIMEOUT,
|
15
|
+
'axios-retry': {
|
16
|
+
retries: MAX_TRACE_CHECK_RETRIES,
|
17
|
+
retryDelay: (_, error) => {
|
18
|
+
var _a;
|
19
|
+
const isTracingError = isAxiosError(error) &&
|
20
|
+
(((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 404 || error.code === 'ERR_NETWORK');
|
21
|
+
if (isTracingError) {
|
22
|
+
return TRACE_RETRY_DELAY;
|
23
|
+
}
|
24
|
+
return TRACE_API_ERROR_RETRY_DELAY;
|
25
|
+
},
|
26
|
+
shouldResetTimeout: true,
|
27
|
+
retryCondition: () => true,
|
28
|
+
},
|
29
|
+
},
|
30
|
+
});
|
31
|
+
}
|
32
|
+
}
|
33
|
+
//# sourceMappingURL=trace.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"trace.js","sourceRoot":"","sources":["../../../src/services/api/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,GAAG,YAAY,CAAC;AAC3C,MAAM,mBAAmB,GAAG,EAAE,GAAG,YAAY,CAAC;AAC9C,MAAM,2BAA2B,GAAG,EAAE,GAAG,YAAY,CAAC;AACtD,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAEnC,MAAM,OAAO,QAAS,SAAQ,UAAU;IACpC,UAAU,CAAC,EAAC,GAAG,EAAgB,EAAE,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QACtE,OAAO,IAAI,CAAC,GAAG,CACX,GAAG,EACH,EAAE,EACF;YACI,YAAY,EAAE,YAAY,IAAI,YAAY;YAC1C,aAAa,EAAE;gBACX,MAAM;gBACN,OAAO,EAAE,mBAAmB;gBAC5B,aAAa,EAAE;oBACX,OAAO,EAAE,uBAAuB;oBAChC,UAAU,EAAE,CAAC,CAAS,EAAE,KAAc,EAAE,EAAE;;wBACtC,MAAM,cAAc,GAChB,YAAY,CAAC,KAAK,CAAC;4BACnB,CAAC,CAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,0CAAE,MAAM,MAAK,GAAG,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;wBAEtE,IAAI,cAAc,EAAE,CAAC;4BACjB,OAAO,iBAAiB,CAAC;wBAC7B,CAAC;wBAED,OAAO,2BAA2B,CAAC;oBACvC,CAAC;oBACD,kBAAkB,EAAE,IAAI;oBACxB,cAAc,EAAE,GAAG,EAAE,CAAC,IAAI;iBAC7B;aACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { ModifyDiskResponse } from '../../types/api/modifyDisk';
|
2
|
+
import { BaseYdbAPI } from './base';
|
3
|
+
export declare class VDiskAPI extends BaseYdbAPI {
|
4
|
+
evictVDisk({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, force, }: {
|
5
|
+
groupId: string | number;
|
6
|
+
groupGeneration: string | number;
|
7
|
+
failRealmIdx: string | number;
|
8
|
+
failDomainIdx: string | number;
|
9
|
+
vDiskIdx: string | number;
|
10
|
+
force?: boolean;
|
11
|
+
}): Promise<ModifyDiskResponse>;
|
12
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { BaseYdbAPI } from './base';
|
2
|
+
export class VDiskAPI extends BaseYdbAPI {
|
3
|
+
evictVDisk({ groupId, groupGeneration, failRealmIdx, failDomainIdx, vDiskIdx, force, }) {
|
4
|
+
return this.post(this.getPath('/vdisk/evict'), {}, {
|
5
|
+
group_id: groupId,
|
6
|
+
group_generation_id: groupGeneration,
|
7
|
+
fail_realm_idx: failRealmIdx,
|
8
|
+
fail_domain_idx: failDomainIdx,
|
9
|
+
vdisk_idx: vDiskIdx,
|
10
|
+
force,
|
11
|
+
}, {
|
12
|
+
requestConfig: { 'axios-retry': { retries: 0 } },
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=vdisk.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"vdisk.js","sourceRoot":"","sources":["../../../src/services/api/vdisk.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAElC,MAAM,OAAO,QAAS,SAAQ,UAAU;IACpC,UAAU,CAAC,EACP,OAAO,EACP,eAAe,EACf,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,KAAK,GAQR;QACG,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,EAC5B,EAAE,EACF;YACI,QAAQ,EAAE,OAAO;YACjB,mBAAmB,EAAE,eAAe;YACpC,cAAc,EAAE,YAAY;YAC5B,eAAe,EAAE,aAAa;YAC9B,SAAS,EAAE,QAAQ;YACnB,KAAK;SACR,EACD;YACI,aAAa,EAAE,EAAC,aAAa,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,EAAC;SAC/C,CACJ,CAAC;IACN,CAAC;CACJ"}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
import type { PlanToSvgQueryParams } from '../../store/reducers/planToSvg';
|
2
|
+
import type { TMetaInfo } from '../../types/api/acl';
|
3
|
+
import type { TQueryAutocomplete } from '../../types/api/autocomplete';
|
4
|
+
import type { CapabilitiesResponse } from '../../types/api/capabilities';
|
5
|
+
import type { TClusterInfo } from '../../types/api/cluster';
|
6
|
+
import type { DescribeConsumerResult } from '../../types/api/consumer';
|
7
|
+
import type { FeatureFlagConfigs } from '../../types/api/featureFlags';
|
8
|
+
import type { HealthCheckAPIResponse } from '../../types/api/healthcheck';
|
9
|
+
import type { JsonHotKeysResponse } from '../../types/api/hotkeys';
|
10
|
+
import type { TNetInfo } from '../../types/api/netInfo';
|
11
|
+
import type { NodesRequestParams, TNodesInfo } from '../../types/api/nodes';
|
12
|
+
import type { TEvNodesInfo } from '../../types/api/nodesList';
|
13
|
+
import type { TEvPDiskStateResponse } from '../../types/api/pdisk';
|
14
|
+
import type { Actions, ErrorResponse, QueryAPIResponse, Stats, Timeout, TracingLevel } from '../../types/api/query';
|
15
|
+
import type { JsonRenderRequestParams, JsonRenderResponse } from '../../types/api/render';
|
16
|
+
import type { TEvDescribeSchemeResult } from '../../types/api/schema';
|
17
|
+
import type { StorageRequestParams, TStorageInfo } from '../../types/api/storage';
|
18
|
+
import type { TEvSystemStateResponse } from '../../types/api/systemState';
|
19
|
+
import type { TDomainKey, TEvTabletStateResponse, UnmergedTEvTabletStateResponse } from '../../types/api/tablet';
|
20
|
+
import type { TTenantInfo, TTenants } from '../../types/api/tenant';
|
21
|
+
import type { DescribeTopicResult } from '../../types/api/topic';
|
22
|
+
import type { TEvVDiskStateResponse } from '../../types/api/vdisk';
|
23
|
+
import type { TUserToken } from '../../types/api/whoami';
|
24
|
+
import type { QuerySyntax, TransactionMode } from '../../types/store/query';
|
25
|
+
import type { Nullable } from '../../utils/typecheckers';
|
26
|
+
import { BaseYdbAPI } from './base';
|
27
|
+
import type { AxiosOptions } from './base';
|
28
|
+
export declare class ViewerAPI extends BaseYdbAPI {
|
29
|
+
getClusterCapabilities({ database }: {
|
30
|
+
database?: string;
|
31
|
+
}): Promise<CapabilitiesResponse>;
|
32
|
+
getClusterInfo(clusterName?: string, { concurrentId, signal }?: AxiosOptions): Promise<TClusterInfo>;
|
33
|
+
getNodeInfo(id?: string | number, { concurrentId, signal }?: AxiosOptions): Promise<TEvSystemStateResponse>;
|
34
|
+
getTenants(clusterName?: string, { concurrentId, signal }?: AxiosOptions): Promise<TTenantInfo>;
|
35
|
+
getTenantInfo({ path, database }: {
|
36
|
+
path: string;
|
37
|
+
database?: string;
|
38
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TTenantInfo>;
|
39
|
+
getNodes({ type, tablets, database, tenant, fieldsRequired, filter, ...params }: NodesRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<TNodesInfo>;
|
40
|
+
getTabletsInfo({ nodeId, path, database }: {
|
41
|
+
nodeId?: string | number;
|
42
|
+
path?: string;
|
43
|
+
database?: string;
|
44
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TEvTabletStateResponse>;
|
45
|
+
getSchema({ path, database }: {
|
46
|
+
path: string;
|
47
|
+
database: string;
|
48
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
|
49
|
+
getDescribe({ path, database, timeout }: {
|
50
|
+
path: string;
|
51
|
+
database: string;
|
52
|
+
timeout?: number;
|
53
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
|
54
|
+
getSchemaAcl({ path, database }: {
|
55
|
+
path: string;
|
56
|
+
database: string;
|
57
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TMetaInfo>;
|
58
|
+
getHeatmapData({ path, database }: {
|
59
|
+
path: string;
|
60
|
+
database: string;
|
61
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
|
62
|
+
getNetwork({ path, database }: {
|
63
|
+
path: string;
|
64
|
+
database: string;
|
65
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TNetInfo>;
|
66
|
+
getTopic({ path, database }: {
|
67
|
+
path: string;
|
68
|
+
database: string;
|
69
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<DescribeTopicResult>;
|
70
|
+
getConsumer({ path, consumer, database }: {
|
71
|
+
path: string;
|
72
|
+
consumer: string;
|
73
|
+
database: string;
|
74
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<DescribeConsumerResult>;
|
75
|
+
getTablet({ id, database }: {
|
76
|
+
id: string;
|
77
|
+
database?: string;
|
78
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TEvTabletStateResponse>;
|
79
|
+
getTabletHistory({ id, database }: {
|
80
|
+
id: string;
|
81
|
+
database?: string;
|
82
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<UnmergedTEvTabletStateResponse>;
|
83
|
+
getNodesList({ concurrentId, signal }?: AxiosOptions): Promise<TEvNodesInfo>;
|
84
|
+
getTenantsList({ concurrentId, signal }?: AxiosOptions): Promise<TTenants>;
|
85
|
+
sendQuery<Action extends Actions>(params: {
|
86
|
+
query?: string;
|
87
|
+
database?: string;
|
88
|
+
action?: Action;
|
89
|
+
syntax?: QuerySyntax;
|
90
|
+
stats?: Stats;
|
91
|
+
tracingLevel?: TracingLevel;
|
92
|
+
transaction_mode?: TransactionMode;
|
93
|
+
timeout?: Timeout;
|
94
|
+
query_id?: string;
|
95
|
+
limit_rows?: number;
|
96
|
+
}, { concurrentId, signal, withRetries }?: AxiosOptions): Promise<ErrorResponse | QueryAPIResponse<Action> | null>;
|
97
|
+
getHotKeys({ path, database, enableSampling }: {
|
98
|
+
path: string;
|
99
|
+
database: string;
|
100
|
+
enableSampling: boolean;
|
101
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<JsonHotKeysResponse>;
|
102
|
+
getTabletDescribe(tenantId: TDomainKey, { concurrentId, signal }?: AxiosOptions): Promise<Nullable<TEvDescribeSchemeResult>>;
|
103
|
+
getStorageInfo({ tenant, database, nodeId, groupId, pDiskId, filter, ...params }: StorageRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<TStorageInfo>;
|
104
|
+
getChartData({ target, from, until, maxDataPoints, database }: JsonRenderRequestParams, { concurrentId, signal }?: AxiosOptions): Promise<JsonRenderResponse>;
|
105
|
+
whoami(): Promise<TUserToken>;
|
106
|
+
autocomplete(params: {
|
107
|
+
database: string;
|
108
|
+
prefix?: string;
|
109
|
+
limit?: number;
|
110
|
+
table?: string[];
|
111
|
+
}): Promise<TQueryAutocomplete>;
|
112
|
+
getClusterConfig(database?: string, { concurrentId, signal }?: AxiosOptions): Promise<FeatureFlagConfigs>;
|
113
|
+
getVDiskInfo({ vDiskSlotId, pDiskId, nodeId, }: {
|
114
|
+
vDiskSlotId: string | number;
|
115
|
+
pDiskId: string | number;
|
116
|
+
nodeId: string | number;
|
117
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TEvVDiskStateResponse>;
|
118
|
+
getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }: {
|
119
|
+
nodeId: string | number;
|
120
|
+
pDiskId: string | number;
|
121
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<TEvPDiskStateResponse>;
|
122
|
+
planToSvg({ database, plan }: PlanToSvgQueryParams, { signal }?: {
|
123
|
+
signal?: AbortSignal;
|
124
|
+
}): Promise<string>;
|
125
|
+
getHealthcheckInfo({ database, maxLevel }: {
|
126
|
+
database: string;
|
127
|
+
maxLevel?: number;
|
128
|
+
}, { concurrentId, signal }?: AxiosOptions): Promise<HealthCheckAPIResponse>;
|
129
|
+
}
|
@@ -0,0 +1,251 @@
|
|
1
|
+
import { BINARY_DATA_IN_PLAIN_TEXT_DISPLAY } from '../../utils/constants';
|
2
|
+
import { settingsManager } from '../settings';
|
3
|
+
import { BaseYdbAPI } from './base';
|
4
|
+
export class ViewerAPI extends BaseYdbAPI {
|
5
|
+
getClusterCapabilities({ database }) {
|
6
|
+
return this.get(this.getPath('/viewer/capabilities'), { database }, {});
|
7
|
+
}
|
8
|
+
getClusterInfo(clusterName, { concurrentId, signal } = {}) {
|
9
|
+
return this.get(this.getPath('/viewer/json/cluster'), {
|
10
|
+
name: clusterName,
|
11
|
+
tablets: true,
|
12
|
+
}, { concurrentId: concurrentId || `getClusterInfo`, requestConfig: { signal } });
|
13
|
+
}
|
14
|
+
getNodeInfo(id, { concurrentId, signal } = {}) {
|
15
|
+
return this.get(this.getPath('/viewer/json/sysinfo?enums=true'), {
|
16
|
+
node_id: id,
|
17
|
+
}, { concurrentId, requestConfig: { signal } });
|
18
|
+
}
|
19
|
+
getTenants(clusterName, { concurrentId, signal } = {}) {
|
20
|
+
return this.get(this.getPath('/viewer/json/tenantinfo'), {
|
21
|
+
tablets: false,
|
22
|
+
storage: true,
|
23
|
+
cluster_name: clusterName,
|
24
|
+
}, { concurrentId, requestConfig: { signal } });
|
25
|
+
}
|
26
|
+
getTenantInfo({ path, database = path }, { concurrentId, signal } = {}) {
|
27
|
+
return this.get(this.getPath('/viewer/json/tenantinfo'), {
|
28
|
+
database,
|
29
|
+
path,
|
30
|
+
tablets: false,
|
31
|
+
storage: true,
|
32
|
+
memory: true,
|
33
|
+
}, { concurrentId, requestConfig: { signal } });
|
34
|
+
}
|
35
|
+
getNodes({ type = 'any', tablets = false, database, tenant, fieldsRequired, filter, ...params }, { concurrentId, signal } = {}) {
|
36
|
+
const preparedFieldsRequired = Array.isArray(fieldsRequired)
|
37
|
+
? this.prepareArrayRequestParam(fieldsRequired)
|
38
|
+
: fieldsRequired;
|
39
|
+
return this.get(this.getPath('/viewer/json/nodes?enums=true'), {
|
40
|
+
type,
|
41
|
+
tablets,
|
42
|
+
// Do not send empty string
|
43
|
+
filter: filter || undefined,
|
44
|
+
// TODO: remove after remove tenant param
|
45
|
+
database: database || tenant,
|
46
|
+
tenant: tenant || database,
|
47
|
+
fields_required: preparedFieldsRequired,
|
48
|
+
...params,
|
49
|
+
}, { concurrentId, requestConfig: { signal } });
|
50
|
+
}
|
51
|
+
getTabletsInfo({ nodeId, path, database }, { concurrentId, signal } = {}) {
|
52
|
+
return this.get(this.getPath('/viewer/json/tabletinfo'), {
|
53
|
+
database,
|
54
|
+
node_id: nodeId,
|
55
|
+
path,
|
56
|
+
enums: true,
|
57
|
+
}, { concurrentId, requestConfig: { signal } });
|
58
|
+
}
|
59
|
+
getSchema({ path, database }, { concurrentId, signal } = {}) {
|
60
|
+
return this.get(this.getPath('/viewer/json/describe'), {
|
61
|
+
database,
|
62
|
+
path,
|
63
|
+
enums: true,
|
64
|
+
backup: false,
|
65
|
+
private: true,
|
66
|
+
partition_config: false,
|
67
|
+
partition_stats: false,
|
68
|
+
partitioning_info: false,
|
69
|
+
subs: 1,
|
70
|
+
}, { concurrentId, requestConfig: { signal } });
|
71
|
+
}
|
72
|
+
getDescribe({ path, database, timeout }, { concurrentId, signal } = {}) {
|
73
|
+
return this.get(this.getPath('/viewer/json/describe'), {
|
74
|
+
database,
|
75
|
+
path,
|
76
|
+
enums: true,
|
77
|
+
partition_stats: true,
|
78
|
+
subs: 0,
|
79
|
+
}, { concurrentId: concurrentId || `getDescribe|${path}`, requestConfig: { signal }, timeout });
|
80
|
+
}
|
81
|
+
getSchemaAcl({ path, database }, { concurrentId, signal } = {}) {
|
82
|
+
return this.get(this.getPath('/viewer/json/acl'), {
|
83
|
+
database,
|
84
|
+
path,
|
85
|
+
merge_rules: true,
|
86
|
+
}, { concurrentId, requestConfig: { signal } });
|
87
|
+
}
|
88
|
+
getHeatmapData({ path, database }, { concurrentId, signal } = {}) {
|
89
|
+
return this.get(this.getPath('/viewer/json/describe'), {
|
90
|
+
database,
|
91
|
+
path,
|
92
|
+
enums: true,
|
93
|
+
backup: false,
|
94
|
+
children: false,
|
95
|
+
partition_config: false,
|
96
|
+
partition_stats: true,
|
97
|
+
}, { concurrentId, requestConfig: { signal } });
|
98
|
+
}
|
99
|
+
getNetwork({ path, database }, { concurrentId, signal } = {}) {
|
100
|
+
return this.get(this.getPath('/viewer/json/netinfo'), {
|
101
|
+
enums: true,
|
102
|
+
database,
|
103
|
+
path,
|
104
|
+
}, { concurrentId, requestConfig: { signal } });
|
105
|
+
}
|
106
|
+
getTopic({ path, database }, { concurrentId, signal } = {}) {
|
107
|
+
return this.get(this.getPath('/viewer/json/describe_topic'), {
|
108
|
+
enums: true,
|
109
|
+
include_stats: true,
|
110
|
+
database,
|
111
|
+
path,
|
112
|
+
}, { concurrentId, requestConfig: { signal } });
|
113
|
+
}
|
114
|
+
getConsumer({ path, consumer, database }, { concurrentId, signal } = {}) {
|
115
|
+
return this.get(this.getPath('/viewer/json/describe_consumer'), {
|
116
|
+
enums: true,
|
117
|
+
include_stats: true,
|
118
|
+
database,
|
119
|
+
path,
|
120
|
+
consumer,
|
121
|
+
}, { concurrentId: concurrentId || 'getConsumer', requestConfig: { signal } });
|
122
|
+
}
|
123
|
+
getTablet({ id, database }, { concurrentId, signal } = {}) {
|
124
|
+
return this.get(this.getPath('/viewer/json/tabletinfo'), {
|
125
|
+
enums: true,
|
126
|
+
database,
|
127
|
+
filter: `(TabletId=${id})`,
|
128
|
+
}, {
|
129
|
+
concurrentId,
|
130
|
+
requestConfig: { signal },
|
131
|
+
});
|
132
|
+
}
|
133
|
+
getTabletHistory({ id, database }, { concurrentId, signal } = {}) {
|
134
|
+
return this.get(this.getPath('/viewer/json/tabletinfo'), {
|
135
|
+
enums: true,
|
136
|
+
merge: false,
|
137
|
+
database,
|
138
|
+
filter: `(TabletId=${id})`,
|
139
|
+
}, {
|
140
|
+
concurrentId,
|
141
|
+
requestConfig: { signal },
|
142
|
+
});
|
143
|
+
}
|
144
|
+
getNodesList({ concurrentId, signal } = {}) {
|
145
|
+
return this.get(this.getPath('/viewer/json/nodelist'), {
|
146
|
+
enums: true,
|
147
|
+
}, {
|
148
|
+
concurrentId,
|
149
|
+
requestConfig: { signal },
|
150
|
+
});
|
151
|
+
}
|
152
|
+
getTenantsList({ concurrentId, signal } = {}) {
|
153
|
+
return this.get(this.getPath('/viewer/json/tenants'), {
|
154
|
+
enums: true,
|
155
|
+
state: 0,
|
156
|
+
}, {
|
157
|
+
concurrentId,
|
158
|
+
requestConfig: { signal },
|
159
|
+
});
|
160
|
+
}
|
161
|
+
sendQuery(params, { concurrentId, signal, withRetries } = {}) {
|
162
|
+
const base64 = !settingsManager.readUserSettingsValue(BINARY_DATA_IN_PLAIN_TEXT_DISPLAY, true);
|
163
|
+
return this.post(this.getPath('/viewer/json/query'), { ...params, base64 }, { schema: 'multi', base64, timeout: params.timeout }, {
|
164
|
+
concurrentId,
|
165
|
+
timeout: params.timeout,
|
166
|
+
requestConfig: {
|
167
|
+
signal,
|
168
|
+
'axios-retry': { retries: withRetries ? this.DEFAULT_RETRIES_COUNT : 0 },
|
169
|
+
},
|
170
|
+
headers: params.tracingLevel
|
171
|
+
? {
|
172
|
+
'X-Trace-Verbosity': params.tracingLevel,
|
173
|
+
}
|
174
|
+
: undefined,
|
175
|
+
});
|
176
|
+
}
|
177
|
+
getHotKeys({ path, database, enableSampling }, { concurrentId, signal } = {}) {
|
178
|
+
return this.get(this.getPath('/viewer/json/hotkeys'), {
|
179
|
+
database,
|
180
|
+
path,
|
181
|
+
enable_sampling: enableSampling,
|
182
|
+
}, { concurrentId: concurrentId || 'getHotKeys', requestConfig: { signal } });
|
183
|
+
}
|
184
|
+
getTabletDescribe(tenantId, { concurrentId, signal } = {}) {
|
185
|
+
return this.get(this.getPath('/viewer/json/describe'), {
|
186
|
+
schemeshard_id: tenantId === null || tenantId === void 0 ? void 0 : tenantId.SchemeShard,
|
187
|
+
path_id: tenantId === null || tenantId === void 0 ? void 0 : tenantId.PathId,
|
188
|
+
}, { concurrentId, requestConfig: { signal } });
|
189
|
+
}
|
190
|
+
getStorageInfo({ tenant, database, nodeId, groupId, pDiskId, filter, ...params }, { concurrentId, signal } = {}) {
|
191
|
+
return this.get(this.getPath(`/viewer/json/storage?enums=true`), {
|
192
|
+
database: database || tenant,
|
193
|
+
tenant: tenant || database,
|
194
|
+
node_id: nodeId,
|
195
|
+
group_id: groupId,
|
196
|
+
pdisk_id: pDiskId,
|
197
|
+
// Do not send empty string
|
198
|
+
filter: filter || undefined,
|
199
|
+
...params,
|
200
|
+
}, { concurrentId, requestConfig: { signal } });
|
201
|
+
}
|
202
|
+
getChartData({ target, from, until, maxDataPoints, database }, { concurrentId, signal } = {}) {
|
203
|
+
const requestString = `${target}&from=${from}&until=${until}&maxDataPoints=${maxDataPoints}&format=json`;
|
204
|
+
return this.post(this.getPath(`/viewer/json/render?database=${database}`), requestString, {}, {
|
205
|
+
concurrentId,
|
206
|
+
headers: {
|
207
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
208
|
+
},
|
209
|
+
requestConfig: { signal },
|
210
|
+
});
|
211
|
+
}
|
212
|
+
whoami() {
|
213
|
+
return this.get(this.getPath('/viewer/json/whoami'), {});
|
214
|
+
}
|
215
|
+
autocomplete(params) {
|
216
|
+
const { table, ...rest } = params;
|
217
|
+
const tablesParam = table === null || table === void 0 ? void 0 : table.join(',');
|
218
|
+
return this.get(this.getPath('/viewer/json/autocomplete'), { ...rest, table: tablesParam }, { concurrentId: 'sql-autocomplete' });
|
219
|
+
}
|
220
|
+
getClusterConfig(database, { concurrentId, signal } = {}) {
|
221
|
+
return this.get(this.getPath('/viewer/feature_flags'), {
|
222
|
+
database,
|
223
|
+
}, { concurrentId, requestConfig: { signal } });
|
224
|
+
}
|
225
|
+
getVDiskInfo({ vDiskSlotId, pDiskId, nodeId, }, { concurrentId, signal } = {}) {
|
226
|
+
return this.get(this.getPath('/viewer/json/vdiskinfo?enums=true'), {
|
227
|
+
node_id: nodeId,
|
228
|
+
filter: `(PDiskId=${pDiskId};VDiskSlotId=${vDiskSlotId})`,
|
229
|
+
}, { concurrentId, requestConfig: { signal } });
|
230
|
+
}
|
231
|
+
getNodeWhiteboardPDiskInfo({ nodeId, pDiskId }, { concurrentId, signal } = {}) {
|
232
|
+
return this.get(this.getPath('/viewer/json/pdiskinfo?enums=true'), {
|
233
|
+
filter: `(NodeId=${nodeId}${pDiskId ? `;PDiskId=${pDiskId}` : ''})`,
|
234
|
+
}, { concurrentId, requestConfig: { signal } });
|
235
|
+
}
|
236
|
+
planToSvg({ database, plan }, { signal } = {}) {
|
237
|
+
return this.post(this.getPath('/viewer/plan2svg'), plan, { database }, {
|
238
|
+
requestConfig: {
|
239
|
+
signal,
|
240
|
+
responseType: 'text',
|
241
|
+
headers: {
|
242
|
+
Accept: 'image/svg+xml',
|
243
|
+
},
|
244
|
+
},
|
245
|
+
});
|
246
|
+
}
|
247
|
+
getHealthcheckInfo({ database, maxLevel }, { concurrentId, signal } = {}) {
|
248
|
+
return this.get(this.getPath('/viewer/json/healthcheck?merge_records=true'), { database, tenant: database, max_level: maxLevel }, { concurrentId, requestConfig: { signal } });
|
249
|
+
}
|
250
|
+
}
|
251
|
+
//# sourceMappingURL=viewer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"viewer.js","sourceRoot":"","sources":["../../../src/services/api/viewer.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAC,iCAAiC,EAAC,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAC,UAAU,EAAC,MAAM,QAAQ,CAAC;AAGlC,MAAM,OAAO,SAAU,SAAQ,UAAU;IACrC,sBAAsB,CAAC,EAAC,QAAQ,EAAsB;QAClD,OAAO,IAAI,CAAC,GAAG,CAAuB,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,CAAC;IAChG,CAAC;IAED,cAAc,CAAC,WAAoB,EAAE,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAC1E,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,sBAAsB,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S,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAuB,EAAE,EAAC,MAAM,KAA4B,EAAE;QACnF,OAAO,IAAI,CAAC,IAAI,CACZ,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAChC,IAAI,EACJ,EAAC,QAAQ,EAAC,EACV;YACI,aAAa,EAAE;gBACX,MAAM;gBACN,YAAY,EAAE,MAAM;gBACpB,OAAO,EAAE;oBACL,MAAM,EAAE,eAAe;iBAC1B;aACJ;SACJ,CACJ,CAAC;IACN,CAAC;IAED,kBAAkB,CACd,EAAC,QAAQ,EAAE,QAAQ,EAAwC,EAC3D,EAAC,YAAY,EAAE,MAAM,KAAkB,EAAE;QAEzC,OAAO,IAAI,CAAC,GAAG,CACX,IAAI,CAAC,OAAO,CAAC,6CAA6C,CAAC,EAC3D,EAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC,EACjD,EAAC,YAAY,EAAE,aAAa,EAAE,EAAC,MAAM,EAAC,EAAC,CAC1C,CAAC;IACN,CAAC;CACJ"}
|
@@ -40,7 +40,7 @@ export const authenticationApi = api.injectEndpoints({
|
|
40
40
|
queryFn: async (_, { dispatch }) => {
|
41
41
|
var _a;
|
42
42
|
try {
|
43
|
-
const data = await window.api.whoami();
|
43
|
+
const data = await window.api.viewer.whoami();
|
44
44
|
dispatch(setUser(data));
|
45
45
|
return { data };
|
46
46
|
}
|
@@ -56,7 +56,7 @@ export const authenticationApi = api.injectEndpoints({
|
|
56
56
|
authenticate: build.mutation({
|
57
57
|
queryFn: async (params, { dispatch }) => {
|
58
58
|
try {
|
59
|
-
const data = await window.api.authenticate(params);
|
59
|
+
const data = await window.api.auth.authenticate(params);
|
60
60
|
dispatch(setIsAuthenticated(true));
|
61
61
|
return { data };
|
62
62
|
}
|
@@ -69,7 +69,7 @@ export const authenticationApi = api.injectEndpoints({
|
|
69
69
|
logout: build.mutation({
|
70
70
|
queryFn: async (_, { dispatch }) => {
|
71
71
|
try {
|
72
|
-
const data = await window.api.logout();
|
72
|
+
const data = await window.api.auth.logout();
|
73
73
|
dispatch(setIsAuthenticated(false));
|
74
74
|
return { data };
|
75
75
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../../../src/store/reducers/authentication/authentication.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAI7C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAI3B,MAAM,YAAY,GAAwB;IACtC,eAAe,EAAE,IAAI;IACrB,IAAI,EAAE,EAAE;CACX,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC7B,IAAI,EAAE,gBAAgB;IACtB,YAAY;IACZ,QAAQ,EAAE;QACN,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAA8B,EAAE,EAAE;YAC1D,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC;YAEvC,KAAK,CAAC,eAAe,GAAG,eAAe,CAAC;YAExC,IAAI,CAAC,eAAe,EAAE,CAAC;gBACnB,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC;YACpB,CAAC;QACL,CAAC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAiC,EAAE,EAAE;YAClD,MAAM,EAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAC,GAAG,MAAM,CAAC,OAAO,CAAC;YAEhE,KAAK,CAAC,IAAI,GAAG,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAExD,wCAAwC;YACxC,mDAAmD;YACnD,kDAAkD;YAClD,yCAAyC;YACzC,KAAK,CAAC,0BAA0B,GAAG,mBAAmB,KAAK,KAAK,CAAC;QACrE,CAAC;KACJ;IACD,SAAS,EAAE;QACP,gCAAgC,E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AAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;oBAC5C,QAAQ,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;oBACpC,OAAO,EAAC,IAAI,EAAC,CAAC;gBAClB,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAC,CAAC;gBACnB,CAAC;YACL,CAAC;SACJ,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
|
@@ -6,7 +6,7 @@ export const cancelQueryApi = api.injectEndpoints({
|
|
6
6
|
queryFn: async ({ queryId, database }, { signal }) => {
|
7
7
|
const action = 'cancel-query';
|
8
8
|
try {
|
9
|
-
const response = await window.api.sendQuery({
|
9
|
+
const response = await window.api.viewer.sendQuery({
|
10
10
|
database,
|
11
11
|
action,
|
12
12
|
query_id: queryId,
|