ydb-embedded-ui 6.23.1 → 6.25.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/CellWithPopover/CellWithPopover.js +2 -1
- package/dist/components/CellWithPopover/CellWithPopover.js.map +1 -1
- package/dist/components/NodeHostWrapper/NodeHostWrapper.d.ts +6 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.js.map +1 -1
- package/dist/components/PDiskPopup/PDiskPopup.js +8 -1
- package/dist/components/PDiskPopup/PDiskPopup.js.map +1 -1
- package/dist/components/PaginatedTable/PaginatedTable.d.ts +3 -2
- package/dist/components/PaginatedTable/PaginatedTable.js +15 -21
- package/dist/components/PaginatedTable/PaginatedTable.js.map +1 -1
- package/dist/components/PaginatedTable/TableChunk.d.ts +1 -2
- package/dist/components/PaginatedTable/TableChunk.js +5 -19
- package/dist/components/PaginatedTable/TableChunk.js.map +1 -1
- package/dist/components/PaginatedTable/useScrollBasedChunks.d.ts +9 -0
- package/dist/components/PaginatedTable/useScrollBasedChunks.js +35 -0
- package/dist/components/PaginatedTable/useScrollBasedChunks.js.map +1 -0
- package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js +2 -2
- package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
- package/dist/components/VDisk/VDisk.js +12 -26
- package/dist/components/VDisk/VDisk.js.map +1 -1
- package/dist/components/VDisk/VDisk.scss +2 -0
- package/dist/components/VDisk/VDiskWithDonorsStack.js +2 -2
- package/dist/components/VDisk/VDiskWithDonorsStack.js.map +1 -1
- package/dist/components/VDisk/utils.d.ts +2 -0
- package/dist/components/VDisk/utils.js +23 -0
- package/dist/components/VDisk/utils.js.map +1 -0
- package/dist/components/VDiskInfo/VDiskInfo.js +2 -2
- package/dist/components/VDiskInfo/VDiskInfo.js.map +1 -1
- package/dist/components/VDiskPopup/VDiskPopup.d.ts +2 -3
- package/dist/components/VDiskPopup/VDiskPopup.js +29 -3
- package/dist/components/VDiskPopup/VDiskPopup.js.map +1 -1
- package/dist/components/nodesColumns/columns.d.ts +55 -0
- package/dist/components/nodesColumns/columns.js +187 -0
- package/dist/components/nodesColumns/columns.js.map +1 -0
- package/dist/components/nodesColumns/constants.d.ts +39 -0
- package/dist/components/nodesColumns/constants.js +73 -0
- package/dist/components/nodesColumns/constants.js.map +1 -0
- package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/en.json +4 -3
- package/dist/components/nodesColumns/i18n/index.d.ts +2 -0
- package/dist/{containers/Nodes/columns → components/nodesColumns}/i18n/index.js +1 -1
- package/dist/components/nodesColumns/i18n/index.js.map +1 -0
- package/dist/components/nodesColumns/types.d.ts +8 -0
- package/dist/components/nodesColumns/types.js.map +1 -0
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js +8 -4
- package/dist/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.js.map +1 -1
- package/dist/containers/Authentication/Authentication.js +12 -10
- package/dist/containers/Authentication/Authentication.js.map +1 -1
- package/dist/containers/Cluster/Cluster.js +3 -1
- package/dist/containers/Cluster/Cluster.js.map +1 -1
- package/dist/containers/Cluster/utils.d.ts +4 -0
- package/dist/containers/Cluster/utils.js +6 -1
- package/dist/containers/Cluster/utils.js.map +1 -1
- package/dist/containers/Node/Node.js +1 -1
- package/dist/containers/Node/Node.js.map +1 -1
- package/dist/containers/Nodes/Nodes.js +1 -1
- package/dist/containers/Nodes/Nodes.js.map +1 -1
- package/dist/containers/Nodes/NodesWrapper.d.ts +2 -2
- package/dist/containers/Nodes/NodesWrapper.js +2 -2
- package/dist/containers/Nodes/NodesWrapper.js.map +1 -1
- package/dist/containers/Nodes/PaginatedNodes.d.ts +3 -2
- package/dist/containers/Nodes/PaginatedNodes.js +3 -3
- package/dist/containers/Nodes/PaginatedNodes.js.map +1 -1
- package/dist/containers/Nodes/columns/columns.d.ts +2 -7
- package/dist/containers/Nodes/columns/columns.js +13 -187
- package/dist/containers/Nodes/columns/columns.js.map +1 -1
- package/dist/containers/Nodes/columns/constants.d.ts +1 -38
- package/dist/containers/Nodes/columns/constants.js +0 -68
- package/dist/containers/Nodes/columns/constants.js.map +1 -1
- package/dist/containers/Nodes/columns/hooks.d.ts +3 -3
- package/dist/containers/Nodes/columns/hooks.js +2 -1
- package/dist/containers/Nodes/columns/hooks.js.map +1 -1
- package/dist/containers/PDiskPage/PDiskPage.js +2 -2
- package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
- package/dist/containers/Storage/Disks/Disks.d.ts +2 -2
- package/dist/containers/Storage/Disks/Disks.js +5 -6
- package/dist/containers/Storage/Disks/Disks.js.map +1 -1
- package/dist/containers/Storage/PDisk/PDisk.d.ts +2 -2
- package/dist/containers/Storage/PDisk/PDisk.js +13 -11
- package/dist/containers/Storage/PDisk/PDisk.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorage.d.ts +4 -1
- package/dist/containers/Storage/PaginatedStorage.js +3 -2
- package/dist/containers/Storage/PaginatedStorage.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageGroups.js +7 -6
- package/dist/containers/Storage/PaginatedStorageGroups.js.map +1 -1
- package/dist/containers/Storage/PaginatedStorageNodes.js +9 -8
- package/dist/containers/Storage/PaginatedStorageNodes.js.map +1 -1
- package/dist/containers/Storage/Storage.d.ts +3 -1
- package/dist/containers/Storage/Storage.js +3 -3
- package/dist/containers/Storage/Storage.js.map +1 -1
- package/dist/containers/Storage/StorageControls/StorageControls.js +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.d.ts +3 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js +2 -2
- package/dist/containers/Storage/StorageGroups/PaginatedStorageGroupsTable.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/StorageGroupsColumns.scss +10 -1
- package/dist/containers/Storage/StorageGroups/columns/columns.js +21 -16
- package/dist/containers/Storage/StorageGroups/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js +1 -1
- package/dist/containers/Storage/StorageGroups/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/hooks.d.ts +3 -2
- package/dist/containers/Storage/StorageGroups/columns/hooks.js +5 -5
- package/dist/containers/Storage/StorageGroups/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/en.json +1 -1
- package/dist/containers/Storage/StorageGroups/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageGroups/columns/types.d.ts +3 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.d.ts +3 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js +2 -2
- package/dist/containers/Storage/StorageNodes/PaginatedStorageNodesTable.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/columns.d.ts +2 -38
- package/dist/containers/Storage/StorageNodes/columns/columns.js +34 -71
- package/dist/containers/Storage/StorageNodes/columns/columns.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/constants.d.ts +20 -4
- package/dist/containers/Storage/StorageNodes/columns/constants.js +4 -32
- package/dist/containers/Storage/StorageNodes/columns/constants.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/hooks.d.ts +2 -39
- package/dist/containers/Storage/StorageNodes/columns/hooks.js +4 -4
- package/dist/containers/Storage/StorageNodes/columns/hooks.js.map +1 -1
- package/dist/containers/Storage/StorageNodes/columns/i18n/en.json +0 -8
- package/dist/containers/Storage/StorageNodes/columns/i18n/index.d.ts +1 -1
- package/dist/containers/Storage/StorageNodes/columns/types.d.ts +5 -5
- package/dist/containers/Storage/StorageWrapper.d.ts +6 -3
- package/dist/containers/Storage/StorageWrapper.js +10 -3
- package/dist/containers/Storage/StorageWrapper.js.map +1 -1
- package/dist/containers/Storage/types.d.ts +6 -0
- package/dist/containers/Storage/types.js +2 -0
- package/dist/containers/Storage/types.js.map +1 -0
- package/dist/containers/Storage/utils/index.d.ts +4 -6
- package/dist/containers/Storage/utils/index.js +35 -9
- package/dist/containers/Storage/utils/index.js.map +1 -1
- package/dist/containers/StorageGroupPage/StorageGroupPage.js +2 -2
- package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -1
- package/dist/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +2 -9
- package/dist/containers/Tablets/Tablets.js +2 -123
- package/dist/containers/Tablets/Tablets.js.map +1 -1
- package/dist/containers/Tablets/TabletsTable.d.ts +10 -0
- package/dist/containers/Tablets/TabletsTable.js +129 -0
- package/dist/containers/Tablets/TabletsTable.js.map +1 -0
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -4
- package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.d.ts +4 -0
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js +18 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js +22 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js +23 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js +2 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +2 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js +4 -2
- package/dist/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.js.map +1 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js +2 -1
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.js.map +1 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js +5 -7
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.js.map +1 -1
- package/dist/containers/Tenant/Query/ExplainResult/components/SimplifiedPlan/SimplifiedPlan.scss +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +3 -2
- package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -4
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.d.ts +4 -4
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenants/Tenants.js +10 -2
- package/dist/containers/Tenants/Tenants.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 -7
- package/dist/containers/UserSettings/settings.js.map +1 -1
- package/dist/containers/VDiskPage/VDiskPage.js +3 -4
- package/dist/containers/VDiskPage/VDiskPage.js.map +1 -1
- package/dist/services/api.d.ts +3 -4
- package/dist/services/api.js +1 -3
- package/dist/services/api.js.map +1 -1
- package/dist/services/settings.d.ts +1 -2
- package/dist/services/settings.js +1 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js +62 -40
- package/dist/store/reducers/cluster/__test__/parseGroupsStatsQueryResponse.test.js.map +1 -1
- package/dist/store/reducers/cluster/cluster.js +0 -1
- package/dist/store/reducers/cluster/cluster.js.map +1 -1
- package/dist/store/reducers/cluster/utils.d.ts +1 -1
- package/dist/store/reducers/cluster/utils.js +2 -1
- package/dist/store/reducers/cluster/utils.js.map +1 -1
- package/dist/store/reducers/executeQuery.d.ts +0 -2
- package/dist/store/reducers/executeQuery.js +1 -2
- package/dist/store/reducers/executeQuery.js.map +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.d.ts +1 -1
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js +4 -4
- package/dist/store/reducers/executeTopQueries/executeTopQueries.js.map +1 -1
- package/dist/store/reducers/nodes/types.d.ts +2 -7
- package/dist/store/reducers/nodes/utils.js +0 -6
- package/dist/store/reducers/nodes/utils.js.map +1 -1
- package/dist/store/reducers/preview.js +1 -1
- package/dist/store/reducers/preview.js.map +1 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js +0 -1
- package/dist/store/reducers/shardsWorkload/shardsWorkload.js.map +1 -1
- package/dist/store/reducers/storage/types.d.ts +6 -7
- package/dist/store/reducers/storage/utils.js +23 -9
- package/dist/store/reducers/storage/utils.js.map +1 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js +0 -1
- package/dist/store/reducers/tenantOverview/executeTopTables/executeTopTables.js.map +1 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js +0 -1
- package/dist/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.js.map +1 -1
- package/dist/store/reducers/tenants/types.d.ts +1 -0
- package/dist/store/reducers/tenants/utils.js +4 -2
- package/dist/store/reducers/tenants/utils.js.map +1 -1
- package/dist/store/reducers/viewSchema/viewSchema.js +2 -2
- package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
- package/dist/types/additionalProps.d.ts +1 -1
- package/dist/types/api/cluster.d.ts +2 -0
- package/dist/types/api/cluster.js +3 -1
- package/dist/types/api/cluster.js.map +1 -1
- package/dist/types/api/nodes.d.ts +3 -0
- package/dist/types/api/nodes.js.map +1 -1
- package/dist/types/api/query.d.ts +16 -30
- package/dist/types/api/storage.d.ts +2 -2
- package/dist/types/store/query.d.ts +0 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/constants.js +0 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js +1 -2
- package/dist/utils/disks/__test__/calculateVDiskSeverity.test.js.map +1 -1
- package/dist/utils/disks/calculateVDiskSeverity.js +2 -3
- package/dist/utils/disks/calculateVDiskSeverity.js.map +1 -1
- package/dist/utils/disks/prepareDisks.js +3 -0
- package/dist/utils/disks/prepareDisks.js.map +1 -1
- package/dist/utils/disks/types.d.ts +1 -0
- package/dist/utils/nodes.d.ts +4 -2
- package/dist/utils/nodes.js +10 -1
- package/dist/utils/nodes.js.map +1 -1
- package/dist/utils/query.d.ts +5 -5
- package/dist/utils/query.js +7 -22
- package/dist/utils/query.js.map +1 -1
- package/dist/utils/query.test.js +221 -56
- package/dist/utils/query.test.js.map +1 -1
- package/dist/utils/storage.d.ts +1 -0
- package/dist/utils/storage.js +3 -0
- package/dist/utils/storage.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/PaginatedTable/useIntersectionObserver.d.ts +0 -9
- package/dist/components/PaginatedTable/useIntersectionObserver.js +0 -28
- package/dist/components/PaginatedTable/useIntersectionObserver.js.map +0 -1
- package/dist/containers/Nodes/columns/i18n/index.d.ts +0 -2
- package/dist/containers/Nodes/columns/i18n/index.js.map +0 -1
- package/dist/containers/Nodes/columns/types.d.ts +0 -9
- package/dist/containers/Nodes/columns/types.js.map +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.d.ts +0 -2
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js +0 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.js.map +0 -1
- /package/dist/{containers/Nodes/columns → components/nodesColumns}/types.js +0 -0
@@ -0,0 +1,129 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { ArrowsRotateRight } from '@gravity-ui/icons';
|
3
|
+
import { Icon, Text } from '@gravity-ui/uikit';
|
4
|
+
import { ButtonWithConfirmDialog } from '../../components/ButtonWithConfirmDialog/ButtonWithConfirmDialog';
|
5
|
+
import { DeveloperUILinkButton } from '../../components/DeveloperUILinkButton/DeveloperUILinkButton';
|
6
|
+
import { EntityStatus } from '../../components/EntityStatus/EntityStatus';
|
7
|
+
import { InternalLink } from '../../components/InternalLink';
|
8
|
+
import { ResizeableDataTable } from '../../components/ResizeableDataTable/ResizeableDataTable';
|
9
|
+
import { TabletState } from '../../components/TabletState/TabletState';
|
10
|
+
import { getTabletPagePath } from '../../routes';
|
11
|
+
import { selectIsUserAllowedToMakeChanges } from '../../store/reducers/authentication/authentication';
|
12
|
+
import { tabletApi } from '../../store/reducers/tablet';
|
13
|
+
import { ETabletState } from '../../types/api/tablet';
|
14
|
+
import { DEFAULT_TABLE_SETTINGS, EMPTY_DATA_PLACEHOLDER } from '../../utils/constants';
|
15
|
+
import { calcUptime } from '../../utils/dataFormatters/dataFormatters';
|
16
|
+
import { createTabletDeveloperUIHref } from '../../utils/developerUI/developerUI';
|
17
|
+
import { useTypedSelector } from '../../utils/hooks';
|
18
|
+
import { getDefaultNodePath } from '../Node/NodePages';
|
19
|
+
import i18n from './i18n';
|
20
|
+
function getColumns({ database }) {
|
21
|
+
const columns = [
|
22
|
+
{
|
23
|
+
name: 'Type',
|
24
|
+
width: 150,
|
25
|
+
get header() {
|
26
|
+
return i18n('Type');
|
27
|
+
},
|
28
|
+
render: ({ row }) => {
|
29
|
+
const isFollower = row.Leader === false;
|
30
|
+
return (_jsxs("span", { children: [row.Type, " ", isFollower ? _jsx(Text, { color: "secondary", children: "follower" }) : ''] }));
|
31
|
+
},
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: 'TabletId',
|
35
|
+
width: 220,
|
36
|
+
get header() {
|
37
|
+
return i18n('Tablet');
|
38
|
+
},
|
39
|
+
render: ({ row }) => {
|
40
|
+
var _a;
|
41
|
+
if (!row.TabletId) {
|
42
|
+
return EMPTY_DATA_PLACEHOLDER;
|
43
|
+
}
|
44
|
+
const tabletPath = getTabletPagePath(row.TabletId, {
|
45
|
+
nodeId: row.NodeId,
|
46
|
+
type: row.Type,
|
47
|
+
tenantName: database,
|
48
|
+
});
|
49
|
+
return (_jsx(EntityStatus, { name: (_a = row.TabletId) === null || _a === void 0 ? void 0 : _a.toString(), path: tabletPath, hasClipboardButton: true, showStatus: false, additionalControls: _jsx(DeveloperUILinkButton, { href: createTabletDeveloperUIHref(row.TabletId) }) }));
|
50
|
+
},
|
51
|
+
},
|
52
|
+
{
|
53
|
+
name: 'State',
|
54
|
+
get header() {
|
55
|
+
return i18n('State');
|
56
|
+
},
|
57
|
+
render: ({ row }) => {
|
58
|
+
return _jsx(TabletState, { state: row.State });
|
59
|
+
},
|
60
|
+
},
|
61
|
+
{
|
62
|
+
name: 'NodeId',
|
63
|
+
get header() {
|
64
|
+
return i18n('Node ID');
|
65
|
+
},
|
66
|
+
render: ({ row }) => {
|
67
|
+
const nodePath = row.NodeId === undefined ? undefined : getDefaultNodePath(row.NodeId);
|
68
|
+
return _jsx(InternalLink, { to: nodePath, children: row.NodeId });
|
69
|
+
},
|
70
|
+
align: 'right',
|
71
|
+
},
|
72
|
+
{
|
73
|
+
name: 'fqdn',
|
74
|
+
get header() {
|
75
|
+
return i18n('Node FQDN');
|
76
|
+
},
|
77
|
+
render: ({ row }) => {
|
78
|
+
if (!row.fqdn) {
|
79
|
+
return _jsx("span", { children: "\u2014" });
|
80
|
+
}
|
81
|
+
return _jsx(EntityStatus, { name: row.fqdn, showStatus: false, hasClipboardButton: true });
|
82
|
+
},
|
83
|
+
},
|
84
|
+
{
|
85
|
+
name: 'Generation',
|
86
|
+
get header() {
|
87
|
+
return i18n('Generation');
|
88
|
+
},
|
89
|
+
align: 'right',
|
90
|
+
},
|
91
|
+
{
|
92
|
+
name: 'Uptime',
|
93
|
+
get header() {
|
94
|
+
return i18n('Uptime');
|
95
|
+
},
|
96
|
+
render: ({ row }) => {
|
97
|
+
return calcUptime(row.ChangeTime);
|
98
|
+
},
|
99
|
+
sortAccessor: (row) => -Number(row.ChangeTime),
|
100
|
+
align: 'right',
|
101
|
+
},
|
102
|
+
{
|
103
|
+
name: 'Actions',
|
104
|
+
sortable: false,
|
105
|
+
resizeable: false,
|
106
|
+
header: '',
|
107
|
+
render: ({ row }) => {
|
108
|
+
return _jsx(TabletActions, { ...row });
|
109
|
+
},
|
110
|
+
},
|
111
|
+
];
|
112
|
+
return columns;
|
113
|
+
}
|
114
|
+
function TabletActions(tablet) {
|
115
|
+
const isDisabledRestart = tablet.State === ETabletState.Stopped;
|
116
|
+
const isUserAllowedToMakeChanges = useTypedSelector(selectIsUserAllowedToMakeChanges);
|
117
|
+
const [killTablet] = tabletApi.useKillTabletMutation();
|
118
|
+
const id = tablet.TabletId;
|
119
|
+
if (!id) {
|
120
|
+
return null;
|
121
|
+
}
|
122
|
+
return (_jsx(ButtonWithConfirmDialog, { buttonView: "outlined", dialogHeader: i18n('dialog.kill-header'), dialogText: i18n('dialog.kill-text'), onConfirmAction: () => {
|
123
|
+
return killTablet({ id }).unwrap();
|
124
|
+
}, buttonDisabled: isDisabledRestart || !isUserAllowedToMakeChanges, withPopover: true, popoverContent: i18n('controls.kill-not-allowed'), popoverDisabled: isUserAllowedToMakeChanges, children: _jsx(Icon, { data: ArrowsRotateRight }) }));
|
125
|
+
}
|
126
|
+
export function TabletsTable({ database, tablets, className }) {
|
127
|
+
return (_jsx(ResizeableDataTable, { wrapperClassName: className, columns: getColumns({ database }), data: tablets, settings: DEFAULT_TABLE_SETTINGS, emptyDataMessage: i18n('noTabletsData') }));
|
128
|
+
}
|
129
|
+
//# sourceMappingURL=TabletsTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TabletsTable.js","sourceRoot":"","sources":["../../../src/containers/Tablets/TabletsTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,kEAAkE,CAAC;AACzG,OAAO,EAAC,qBAAqB,EAAC,MAAM,8DAA8D,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAC,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAC,mBAAmB,EAAC,MAAM,0DAA0D,CAAC;AAC7F,OAAO,EAAC,WAAW,EAAC,MAAM,0CAA0C,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAC,gCAAgC,EAAC,MAAM,oDAAoD,CAAC;AACpG,OAAO,EAAC,SAAS,EAAC,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAAC,UAAU,EAAC,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAC,2BAA2B,EAAC,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CA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;QACrC,CAAC,EACD,cAAc,EAAE,iBAAiB,IAAI,CAAC,0BAA0B,EAChE,WAAW,QACX,cAAc,EAAE,IAAI,CAAC,2BAA2B,CAAC,EACjD,eAAe,EAAE,0BAA0B,YAE3C,KAAC,IAAI,IAAC,IAAI,EAAE,iBAAiB,GAAI,GACX,CAC7B,CAAC;AACN,CAAC;AAUD,MAAM,UAAU,YAAY,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAoB;IAC1E,OAAO,CACH,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,SAAS,EAC3B,OAAO,EAAE,UAAU,CAAC,EAAC,QAAQ,EAAC,CAAC,EAC/B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,sBAAsB,EAChC,gBAAgB,EAAE,IAAI,CAAC,eAAe,CAAC,GACzC,CACL,CAAC;AACN,CAAC"}
|
@@ -31,7 +31,7 @@ import { TopShards } from './TopShards';
|
|
31
31
|
import './Diagnostics.scss';
|
32
32
|
const b = cn('kv-tenant-diagnostics');
|
33
33
|
function Diagnostics(props) {
|
34
|
-
const
|
34
|
+
const containerRef = React.useRef(null);
|
35
35
|
const dispatch = useTypedDispatch();
|
36
36
|
const { diagnosticsTab = TENANT_DIAGNOSTICS_TABS_IDS.overview } = useTypedSelector((state) => state.tenant);
|
37
37
|
const [queryParams] = useQueryParams({
|
@@ -69,13 +69,13 @@ function Diagnostics(props) {
|
|
69
69
|
return _jsx(TopShards, { tenantName: tenantName, path: path, type: type });
|
70
70
|
}
|
71
71
|
case TENANT_DIAGNOSTICS_TABS_IDS.nodes: {
|
72
|
-
return (_jsx(NodesWrapper, { path: path, database: tenantName, additionalNodesProps: props.additionalNodesProps,
|
72
|
+
return (_jsx(NodesWrapper, { path: path, database: tenantName, additionalNodesProps: props.additionalNodesProps, parentRef: containerRef }));
|
73
73
|
}
|
74
74
|
case TENANT_DIAGNOSTICS_TABS_IDS.tablets: {
|
75
75
|
return _jsx(Tablets, { path: path, database: tenantName });
|
76
76
|
}
|
77
77
|
case TENANT_DIAGNOSTICS_TABS_IDS.storage: {
|
78
|
-
return _jsx(StorageWrapper, { database: tenantName,
|
78
|
+
return _jsx(StorageWrapper, { database: tenantName, parentRef: containerRef });
|
79
79
|
}
|
80
80
|
case TENANT_DIAGNOSTICS_TABS_IDS.network: {
|
81
81
|
return _jsx(Network, { tenantName: tenantName });
|
@@ -112,7 +112,7 @@ function Diagnostics(props) {
|
|
112
112
|
return (_jsx(Link, { to: path, className: b('tab'), children: node }, id));
|
113
113
|
}, allowNotSelected: true }), _jsx(AutoRefreshControl, {})] }) }));
|
114
114
|
};
|
115
|
-
return (_jsxs("div", { className: b(),
|
115
|
+
return (_jsxs("div", { className: b(), children: [activeTab ? (_jsx(Helmet, { children: _jsx("title", { children: activeTab.title }) })) : null, renderTabs(), _jsx("div", { className: b('page-wrapper'), ref: containerRef, children: renderTabContent() })] }));
|
116
116
|
}
|
117
117
|
export default Diagnostics;
|
118
118
|
//# sourceMappingURL=Diagnostics.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Diagnostics.js","sourceRoot":"","sources":["../../../../src/containers/Tenant/Diagnostics/Diagnostics.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,IAAI,EAAC,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACtC,OAAO,EAAC,WAAW,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,2DAA2D,CAAC;AAC7F,OAAO,MAAM,EAAE,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAA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EAAE,CAEhB,CACV,CAAC;wBACN,CAAC,EACD,gBAAgB,EAAE,IAAI,GACxB,EACF,KAAC,kBAAkB,KAAG,IACpB,GACJ,CACT,CAAC;IACN,CAAC,CAAC;IAEF,OAAO,CACH,eAAK,SAAS,EAAE,CAAC,EAAE,aACd,SAAS,CAAC,CAAC,CAAC,CACT,KAAC,MAAM,cACH,0BAAQ,SAAS,CAAC,KAAK,GAAS,GAC3B,CACZ,CAAC,CAAC,CAAC,IAAI,EACP,UAAU,EAAE,EACb,cAAK,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,YAAY,YAC/C,gBAAgB,EAAE,GACjB,IACJ,CACT,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC"}
|
@@ -1,4 +1,8 @@
|
|
1
|
+
import type { Column } from '@gravity-ui/react-data-table';
|
2
|
+
import type { GetNodesColumnsParams } from '../../../../../components/nodesColumns/types';
|
3
|
+
import type { NodesPreparedEntity } from '../../../../../store/reducers/nodes/types';
|
1
4
|
import type { AdditionalNodesProps } from '../../../../../types/additionalProps';
|
5
|
+
export declare function getTopNodesByCpuColumns(params: GetNodesColumnsParams): Column<NodesPreparedEntity>[];
|
2
6
|
interface TopNodesByCpuProps {
|
3
7
|
tenantName: string;
|
4
8
|
additionalNodesProps?: AdditionalNodesProps;
|
@@ -1,18 +1,33 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { getCpuColumn, getHostColumn, getNodeIdColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
+
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
2
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
3
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
4
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
5
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
6
|
-
import { getTopNodesByCpuColumns } from '../../../../Nodes/columns/columns';
|
7
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../Nodes/columns/constants';
|
8
8
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
9
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
10
|
import { getSectionTitle } from '../getSectionTitle';
|
11
11
|
import i18n from '../i18n';
|
12
|
+
export function getTopNodesByCpuColumns(params) {
|
13
|
+
const hostColumn = { ...getHostColumn(params), width: undefined };
|
14
|
+
const columns = [
|
15
|
+
getCpuColumn(),
|
16
|
+
getNodeIdColumn(),
|
17
|
+
hostColumn,
|
18
|
+
];
|
19
|
+
return columns.map((column) => ({
|
20
|
+
...column,
|
21
|
+
sortable: false,
|
22
|
+
}));
|
23
|
+
}
|
12
24
|
export function TopNodesByCpu({ tenantName, additionalNodesProps }) {
|
13
25
|
const query = useSearchQuery();
|
14
26
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
15
|
-
const columns = getTopNodesByCpuColumns(
|
27
|
+
const columns = getTopNodesByCpuColumns({
|
28
|
+
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
29
|
+
database: tenantName,
|
30
|
+
});
|
16
31
|
const { currentData, isFetching, error } = nodesApi.useGetNodesQuery({
|
17
32
|
tenant: tenantName,
|
18
33
|
type: 'any',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByCpu.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"TopNodesByCpu.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,YAAY,EACZ,aAAa,EACb,eAAe,GAClB,MAA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AAE,KAAK,EAAC,GAAG,QAAQ,CAAC,gBAAgB,CAC9D;QACI,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,4BAA4B;KACtC,EACD,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,QAAQ,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC;QAC/B,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,KAAK;SACvE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -1,18 +1,37 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { getHostColumn, getLoadColumn, getNodeIdColumn, getVersionColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
+
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
2
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
3
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
4
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
5
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
6
|
-
import { getTopNodesByLoadColumns } from '../../../../Nodes/columns/columns';
|
7
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../Nodes/columns/constants';
|
8
8
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
9
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
10
|
import { getSectionTitle } from '../getSectionTitle';
|
11
11
|
import i18n from '../i18n';
|
12
|
+
function getTopNodesByLoadColumns(params) {
|
13
|
+
const hostColumn = {
|
14
|
+
...getHostColumn(params),
|
15
|
+
width: undefined,
|
16
|
+
};
|
17
|
+
const columns = [
|
18
|
+
getLoadColumn(),
|
19
|
+
getNodeIdColumn(),
|
20
|
+
hostColumn,
|
21
|
+
getVersionColumn(),
|
22
|
+
];
|
23
|
+
return columns.map((column) => ({
|
24
|
+
...column,
|
25
|
+
sortable: false,
|
26
|
+
}));
|
27
|
+
}
|
12
28
|
export function TopNodesByLoad({ tenantName, additionalNodesProps }) {
|
13
29
|
const query = useSearchQuery();
|
14
30
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
15
|
-
const columns = getTopNodesByLoadColumns(
|
31
|
+
const columns = getTopNodesByLoadColumns({
|
32
|
+
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
33
|
+
database: tenantName,
|
34
|
+
});
|
16
35
|
const { currentData, isFetching, error } = nodesApi.useGetNodesQuery({
|
17
36
|
tenant: tenantName,
|
18
37
|
type: 'any',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
1
|
+
{"version":3,"file":"TopNodesByLoad.js","sourceRoot":"","sources":["../../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,CAAC;QACrC,UAAU,EAAE,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,UAAU;QAC5C,QAAQ,EAAE,UAAU;KACvB,CAAC,CAAC;IAEH,MAAM,EAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAC,GAAG,QAAQ,CAAC,gBAAgB,CAC9D;QACI,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,4BAA4B;KACtC,EACD,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,QAAQ,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,KAAK;SACvE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -14,6 +14,7 @@ import { getSectionTitle } from '../getSectionTitle';
|
|
14
14
|
import i18n from '../i18n';
|
15
15
|
import { b } from '../utils';
|
16
16
|
export function TopQueries({ tenantName }) {
|
17
|
+
var _a, _b;
|
17
18
|
const dispatch = useTypedDispatch();
|
18
19
|
const location = useLocation();
|
19
20
|
const history = useHistory();
|
@@ -22,7 +23,7 @@ export function TopQueries({ tenantName }) {
|
|
22
23
|
const columns = TENANT_OVERVIEW_TOP_QUERUES_COLUMNS;
|
23
24
|
const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({ database: tenantName }, { pollingInterval: autoRefreshInterval });
|
24
25
|
const loading = isFetching && currentData === undefined;
|
25
|
-
const
|
26
|
+
const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
26
27
|
const handleRowClick = React.useCallback((row) => {
|
27
28
|
const { QueryText: input } = row;
|
28
29
|
dispatch(changeUserInput({ input }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EACH,oBAAoB,EACpB,aAAa,GAChB,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,gBAAgB,EAChB,oBAAoB,GACvB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACH,mCAAmC,EACnC,gCAAgC,GACnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAM3B,MAAM,UAAU,UAAU,CAAC,EAAC,UAAU,EAAkB
|
1
|
+
{"version":3,"file":"TopQueries.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,UAAU,EAAE,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,eAAe,EAAC,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EACH,oBAAoB,EACpB,aAAa,GAChB,MAAM,mEAAmE,CAAC;AAC3E,OAAO,EACH,2BAA2B,EAC3B,WAAW,EACX,gBAAgB,EAChB,oBAAoB,GACvB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACH,mCAAmC,EACnC,gCAAgC,GACnC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAC,CAAC,EAAC,MAAM,UAAU,CAAC;AAM3B,MAAM,UAAU,UAAU,CAAC,EAAC,UAAU,EAAkB;;IACpD,MAAM,QAAQ,GAAG,gBAAgB,EAAE,CAAC;IAC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,IAAI,CAAC,SAAS,CAAC;QACvB,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,EAAC,eAAe,EAAE,IAAI,CAAC,oBAAoB,CAAC,EAAC,CAAC;QAC3E,OAAO,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,oBAAoB,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAC,CAAC,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,UAAU;SAC5E,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,gCAAgC,EACnD,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,cAAc,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,EACrC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAC1C,CACL,CAAC;AACN,CAAC"}
|
@@ -11,12 +11,13 @@ import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
|
11
11
|
import { getSectionTitle } from '../getSectionTitle';
|
12
12
|
import i18n from '../i18n';
|
13
13
|
export const TopShards = ({ tenantName, path }) => {
|
14
|
+
var _a, _b;
|
14
15
|
const location = useLocation();
|
15
16
|
const query = parseQuery(location);
|
16
17
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
17
18
|
const { currentData, isFetching, error } = topShardsApi.useGetTopShardsQuery({ database: tenantName, path }, { pollingInterval: autoRefreshInterval });
|
18
19
|
const loading = isFetching && currentData === undefined;
|
19
|
-
const
|
20
|
+
const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
20
21
|
const columns = getTopShardsColumns(tenantName, location);
|
21
22
|
const title = getSectionTitle({
|
22
23
|
entity: i18n('shards'),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,YAAY,EAAC,MAAM,gFAAgF,CAAC;AAC5G,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,gBAAgB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACH,+BAA+B,EAC/B,mBAAmB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAO3B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAC,UAAU,EAAE,IAAI,EAAiB,EAAE,EAAE
|
1
|
+
{"version":3,"file":"TopShards.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAC,2BAA2B,EAAC,MAAM,gDAAgD,CAAC;AAC3F,OAAO,EAAC,YAAY,EAAC,MAAM,gFAAgF,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,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,SAAS;SAC3E,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,+BAA+B,EAClD,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GACvC,CACL,CAAC;AACN,CAAC,CAAC"}
|
@@ -1,19 +1,40 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { getHostColumn, getLoadColumn, getMemoryColumn, getNodeIdColumn, getSessionsColumn, getSharedCacheUsageColumn, getTabletsColumn, getUptimeColumn, } from '../../../../../components/nodesColumns/columns';
|
3
|
+
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../../components/nodesColumns/constants';
|
2
4
|
import { nodesApi } from '../../../../../store/reducers/nodes/nodes';
|
3
5
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
4
6
|
import { TENANT_OVERVIEW_TABLES_LIMIT } from '../../../../../utils/constants';
|
5
7
|
import { useAutoRefreshInterval, useSearchQuery } from '../../../../../utils/hooks';
|
6
|
-
import { getTopNodesByMemoryColumns } from '../../../../Nodes/columns/columns';
|
7
|
-
import { NODES_COLUMNS_WIDTH_LS_KEY } from '../../../../Nodes/columns/constants';
|
8
8
|
import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
9
9
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
10
10
|
import { getSectionTitle } from '../getSectionTitle';
|
11
11
|
import i18n from '../i18n';
|
12
|
+
function getTopNodesByMemoryColumns(params) {
|
13
|
+
const memoryColumn = {
|
14
|
+
...getMemoryColumn(),
|
15
|
+
header: i18n('column-header.process'),
|
16
|
+
};
|
17
|
+
const columns = [
|
18
|
+
getNodeIdColumn(),
|
19
|
+
getHostColumn(params),
|
20
|
+
getUptimeColumn(),
|
21
|
+
getLoadColumn(),
|
22
|
+
memoryColumn,
|
23
|
+
getSharedCacheUsageColumn(),
|
24
|
+
getSessionsColumn(),
|
25
|
+
getTabletsColumn(params),
|
26
|
+
];
|
27
|
+
return columns.map((column) => ({
|
28
|
+
...column,
|
29
|
+
sortable: false,
|
30
|
+
}));
|
31
|
+
}
|
12
32
|
export function TopNodesByMemory({ tenantName, additionalNodesProps }) {
|
13
33
|
const query = useSearchQuery();
|
14
34
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
15
35
|
const columns = getTopNodesByMemoryColumns({
|
16
36
|
getNodeRef: additionalNodesProps === null || additionalNodesProps === void 0 ? void 0 : additionalNodesProps.getNodeRef,
|
37
|
+
database: tenantName,
|
17
38
|
});
|
18
39
|
const { currentData, isFetching, error } = nodesApi.useGetNodesQuery({
|
19
40
|
tenant: tenantName,
|
package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"TopNodesByMemory.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx"],"names":[],"mappings":";AAEA,OAAO,EACH,aAAa,EACb,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,GAClB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAC,0BAA0B,EAAC,MAAM,kDAAkD,CAAC;AAE5F,OAAO,EAAC,QAAQ,EAAC,MAAM,2CAA2C,CAAC;AAEnE,OAAO,EAAC,2BAA2B,EAA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AG,QAAQ,CAAC,gBAAgB,CAC9D;QACI,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,4BAA4B;KACtC,EACD,EAAC,eAAe,EAAE,mBAAmB,EAAC,CACzC,CAAC;IAEF,MAAM,OAAO,GAAG,UAAU,IAAI,WAAW,KAAK,SAAS,CAAC;IAExD,MAAM,QAAQ,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,EAAE,CAAC;IAE1C,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC;QAC1B,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,KAAK;SACvE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,0BAA0B,EAC7C,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,gBAAgB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAChD,CACL,CAAC;AACN,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import React from 'react';
|
3
2
|
import { useCapabilitiesLoaded, useStorageGroupsHandlerAvailable, } from '../../../../../store/reducers/capabilities/hooks';
|
4
3
|
import { storageApi } from '../../../../../store/reducers/storage/storage';
|
5
4
|
import { TENANT_DIAGNOSTICS_TABS_IDS } from '../../../../../store/reducers/tenant/constants';
|
@@ -11,7 +10,6 @@ import { TenantTabsGroups, getTenantPath } from '../../../TenantPages';
|
|
11
10
|
import { TenantOverviewTableLayout } from '../TenantOverviewTableLayout';
|
12
11
|
import { getSectionTitle } from '../getSectionTitle';
|
13
12
|
import i18n from '../i18n';
|
14
|
-
import { prepareTopStorageGroups } from './utils';
|
15
13
|
export function TopGroups({ tenant }) {
|
16
14
|
const query = useSearchQuery();
|
17
15
|
const capabilitiesLoaded = useCapabilitiesLoaded();
|
@@ -29,9 +27,7 @@ export function TopGroups({ tenant }) {
|
|
29
27
|
skip: !capabilitiesLoaded,
|
30
28
|
});
|
31
29
|
const loading = isFetching && currentData === undefined;
|
32
|
-
const
|
33
|
-
return prepareTopStorageGroups(currentData);
|
34
|
-
}, [currentData]);
|
30
|
+
const groups = (currentData === null || currentData === void 0 ? void 0 : currentData.groups) || [];
|
35
31
|
const title = getSectionTitle({
|
36
32
|
entity: i18n('groups'),
|
37
33
|
postfix: i18n('by-usage'),
|
@@ -40,6 +36,6 @@ export function TopGroups({ tenant }) {
|
|
40
36
|
[TenantTabsGroups.diagnosticsTab]: TENANT_DIAGNOSTICS_TABS_IDS.storage,
|
41
37
|
}),
|
42
38
|
});
|
43
|
-
return (_jsx(TenantOverviewTableLayout, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data:
|
39
|
+
return (_jsx(TenantOverviewTableLayout, { columnsWidthLSKey: STORAGE_GROUPS_COLUMNS_WIDTH_LS_KEY, data: groups, columns: columns, title: title, loading: loading || !capabilitiesLoaded, error: error }));
|
44
40
|
}
|
45
41
|
//# sourceMappingURL=TopGroups.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
1
|
+
{"version":3,"file":"TopGroups.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,qBAAqB,EACrB,g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AAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,KAAI,EAAE,CAAC;IAEzC,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC;QACzB,IAAI,EAAE,aAAa,CAAC;YAChB,GAAG,KAAK;YACR,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,2BAA2B,CAAC,OAAO;SACzE,CAAC;KACL,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,mCAAmC,EACtD,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,kBAAkB,EACvC,KAAK,EAAE,KAAK,GACd,CACL,CAAC;AACN,CAAC"}
|
@@ -13,11 +13,12 @@ import i18n from '../i18n';
|
|
13
13
|
import '../TenantOverview.scss';
|
14
14
|
const TOP_TABLES_COLUMNS_WIDTH_LS_KEY = 'topTablesTableColumnsWidth';
|
15
15
|
export function TopTables({ path }) {
|
16
|
+
var _a, _b;
|
16
17
|
const location = useLocation();
|
17
18
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
18
19
|
const { currentData, error, isFetching } = topTablesApi.useGetTopTablesQuery({ path }, { pollingInterval: autoRefreshInterval });
|
19
20
|
const loading = isFetching && currentData === undefined;
|
20
|
-
const
|
21
|
+
const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
21
22
|
const formatSize = (value) => {
|
22
23
|
const size = getSizeWithSignificantDigits((data === null || data === void 0 ? void 0 : data.length) ? Number(data[0].Size) : 0, 0);
|
23
24
|
return formatBytes({ value, size, precision: 1 });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopTables.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,eAAe,EAAC,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAC,kBAAkB,EAAC,MAAM,iEAAiE,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,gFAAgF,CAAC;AAE5G,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAC,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAC,yBAAyB,EAAC,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,wBAAwB,CAAC;AAMhC,MAAM,+BAA+B,GAAG,4BAA4B,CAAC;AAErE,MAAM,UAAU,SAAS,CAAC,EAAC,IAAI,EAAiB
|
1
|
+
{"version":3,"file":"TopTables.js","sourceRoot":"","sources":["../../../../../../src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAC,eAAe,EAAC,MAAM,2DAA2D,CAAC;AAC1F,OAAO,EAAC,kBAAkB,EAAC,MAAM,iEAAiE,CAAC;AACnG,OAAO,EAAC,YAAY,EAAC,MAAM,gFAAgF,CAAC;AAE5G,OAAO,EAAC,WAAW,EAAE,4BAA4B,EAAC,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B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,EAAE,KAAK;YACf,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/C,KAAK,EAAE,SAAS,CAAC,KAAK;SACzB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CACd,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CACP,KAAC,eAAe,IAAC,OAAO,EAAE,GAAG,CAAC,IAAI,YAC9B,KAAC,kBAAkB,IAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,QAAQ,YACzD,GAAG,CAAC,IAAI,GACQ,GACP,CACrB,CAAC,CAAC,CAAC,IAAI;SACf;KACJ,CAAC;IACF,MAAM,KAAK,GAAG,eAAe,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KAC3B,CAAC,CAAC;IAEH,OAAO,CACH,KAAC,yBAAyB,IACtB,iBAAiB,EAAE,+BAA+B,EAClD,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAuB,CAAC,KAAK,CAAC,GACvC,CACL,CAAC;AACN,CAAC"}
|
@@ -28,5 +28,6 @@
|
|
28
28
|
"storage.tablet-storage-description": "Size of user data and indexes stored in schema objects (tables, topics, etc.)",
|
29
29
|
"storage.db-storage-title": "Database storage",
|
30
30
|
"storage.db-storage-description": "Size of data stored in distributed storage with all overheads for redundancy",
|
31
|
-
"executed-last-hour": "executed in the last hour"
|
31
|
+
"executed-last-hour": "executed in the last hour",
|
32
|
+
"column-header.process": "Process"
|
32
33
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const _default: (key: "queries" | "nodes" | "no-data" | "top" | "groups" | "shards" | "tables" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour", params?: import("@gravity-ui/i18n").Params) => string;
|
1
|
+
declare const _default: (key: "queries" | "nodes" | "no-data" | "top" | "groups" | "shards" | "tables" | "no-pools-data" | "top-nodes.empty-data" | "top-groups.empty-data" | "by-pools-usage" | "by-cpu-time" | "by-cpu-usage" | "by-load" | "by-memory" | "by-usage" | "by-size" | "cards.cpu-label" | "cards.storage-label" | "cards.memory-label" | "charts.queries-per-second" | "charts.transaction-latency" | "charts.cpu-usage" | "charts.storage-usage" | "charts.memory-usage" | "storage.tablet-storage-title" | "storage.tablet-storage-description" | "storage.db-storage-title" | "storage.db-storage-description" | "executed-last-hour" | "column-header.process", params?: import("@gravity-ui/i18n").Params) => string;
|
2
2
|
export default _default;
|
@@ -10,12 +10,14 @@ import { QUERY_TABLE_SETTINGS } from '../../utils/constants';
|
|
10
10
|
import { RUNNING_QUERIES_COLUMNS, RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, } from './getTopQueriesColumns';
|
11
11
|
import i18n from './i18n';
|
12
12
|
export const RunningQueriesData = ({ database }) => {
|
13
|
+
var _a;
|
13
14
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
14
15
|
const filters = useTypedSelector((state) => state.executeTopQueries);
|
15
|
-
const { currentData
|
16
|
+
const { currentData, isFetching, error } = topQueriesApi.useGetRunningQueriesQuery({
|
16
17
|
database,
|
17
18
|
filters,
|
18
19
|
}, { pollingInterval: autoRefreshInterval });
|
19
|
-
|
20
|
+
const data = ((_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0].result) || [];
|
21
|
+
return (_jsxs(React.Fragment, { children: [error ? _jsx(ResponseError, { error: parseQueryErrorToString(error) }) : null, _jsx(TableWithControlsLayout.Table, { loading: isFetching && data === undefined, children: _jsx(ResizeableDataTable, { emptyDataMessage: i18n('no-data'), columnsWidthLSKey: RUNNING_QUERIES_COLUMNS_WIDTH_LS_KEY, columns: RUNNING_QUERIES_COLUMNS, data: data, settings: QUERY_TABLE_SETTINGS }) })] }));
|
20
22
|
};
|
21
23
|
//# sourceMappingURL=RunningQueriesData.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RunningQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAAC;AACnG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wEAAwE,CAAC;AAC/G,OAAO,EAAC,aAAa,EAAC,MAAM,gEAAgE,CAAC;AAC7F,OAAO,EAAC,sBAAsB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EACH,uBAAuB,EACvB,oCAAoC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAM1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAC,QAAQ,EAAQ,EAAE,EAAE
|
1
|
+
{"version":3,"file":"RunningQueriesData.js","sourceRoot":"","sources":["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,KAAK,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACxE,KAAC,uBAAuB,CAAC,KAAK,IAAC,OAAO,EAAE,UAAU,IAAI,IAAI,KAAK,SAAS,YACpE,KAAC,mBAAmB,IAChB,gBAAgB,EAAE,IAAI,CAAC,SAAS,CAAC,EACjC,iBAAiB,EAAE,oCAAoC,EACvD,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,oBAAoB,GAChC,GAC0B,IACnB,CACpB,CAAC;AACN,CAAC,CAAC"}
|
@@ -13,13 +13,14 @@ import { TOP_QUERIES_COLUMNS, TOP_QUERIES_COLUMNS_WIDTH_LS_KEY } from './getTopQ
|
|
13
13
|
import i18n from './i18n';
|
14
14
|
const b = cn('kv-top-queries');
|
15
15
|
export const TopQueriesData = ({ database, onRowClick }) => {
|
16
|
+
var _a, _b;
|
16
17
|
const [autoRefreshInterval] = useAutoRefreshInterval();
|
17
18
|
const filters = useTypedSelector((state) => state.executeTopQueries);
|
18
19
|
const { currentData, isFetching, error } = topQueriesApi.useGetTopQueriesQuery({
|
19
20
|
database,
|
20
21
|
filters,
|
21
22
|
}, { pollingInterval: autoRefreshInterval });
|
22
|
-
const
|
23
|
+
const data = ((_b = (_a = currentData === null || currentData === void 0 ? void 0 : currentData.resultSets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) || [];
|
23
24
|
const rawColumns = TOP_QUERIES_COLUMNS;
|
24
25
|
const columns = rawColumns.map((column) => ({
|
25
26
|
...column,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TopQueriesData.js","sourceRoot":"","sources":["../../../../../src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,aAAa,EAAC,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAC,mBAAmB,EAAC,MAAM,gEAAgE,CAA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