ydb-embedded-ui 6.19.0 → 6.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/dist/components/CriticalActionDialog/CriticalActionDialog.d.ts +2 -1
  2. package/dist/components/CriticalActionDialog/CriticalActionDialog.js +11 -3
  3. package/dist/components/CriticalActionDialog/CriticalActionDialog.js.map +1 -1
  4. package/dist/components/CriticalActionDialog/i18n/en.json +2 -1
  5. package/dist/components/CriticalActionDialog/i18n/index.d.ts +1 -1
  6. package/dist/components/DiskStateProgressBar/DiskStateProgressBar.scss +7 -36
  7. package/dist/components/PDiskInfo/PDiskInfo.js +2 -1
  8. package/dist/components/PDiskInfo/PDiskInfo.js.map +1 -1
  9. package/dist/components/PDiskInfo/PDiskInfo.scss +0 -14
  10. package/dist/components/StorageGroupInfo/StorageGroupInfo.d.ts +8 -0
  11. package/dist/components/StorageGroupInfo/StorageGroupInfo.js +123 -0
  12. package/dist/components/StorageGroupInfo/StorageGroupInfo.js.map +1 -0
  13. package/dist/components/StorageGroupInfo/i18n/en.json +22 -0
  14. package/dist/components/StorageGroupInfo/i18n/index.d.ts +1 -0
  15. package/dist/components/StorageGroupInfo/i18n/index.js +5 -0
  16. package/dist/components/StorageGroupInfo/i18n/index.js.map +1 -0
  17. package/dist/components/TabletsStatistic/TabletsStatistic.d.ts +2 -4
  18. package/dist/components/TabletsStatistic/TabletsStatistic.js.map +1 -1
  19. package/dist/components/Tag/Tag.d.ts +2 -1
  20. package/dist/components/Tag/Tag.js.map +1 -1
  21. package/dist/components/Tags/Tags.d.ts +2 -1
  22. package/dist/components/Tags/Tags.js.map +1 -1
  23. package/dist/containers/App/Content.js +7 -1
  24. package/dist/containers/App/Content.js.map +1 -1
  25. package/dist/containers/App/appSlots.d.ts +6 -0
  26. package/dist/containers/App/appSlots.js +1 -0
  27. package/dist/containers/App/appSlots.js.map +1 -1
  28. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js +3 -112
  29. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.js.map +1 -1
  30. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +7 -14
  31. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.d.ts +7 -0
  32. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js +43 -0
  33. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.js.map +1 -0
  34. package/dist/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStatsBars.scss +11 -0
  35. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.d.ts +8 -0
  36. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js +8 -0
  37. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.js.map +1 -0
  38. package/dist/containers/Cluster/ClusterInfo/components/NodesState/NodesState.scss +16 -0
  39. package/dist/containers/Cluster/ClusterInfo/shared.d.ts +1 -0
  40. package/dist/containers/Cluster/ClusterInfo/shared.js +3 -0
  41. package/dist/containers/Cluster/ClusterInfo/shared.js.map +1 -0
  42. package/dist/containers/Cluster/ClusterInfo/utils.d.ts +12 -0
  43. package/dist/containers/Cluster/ClusterInfo/utils.js +145 -0
  44. package/dist/containers/Cluster/ClusterInfo/utils.js.map +1 -1
  45. package/dist/containers/Cluster/i18n/en.json +7 -1
  46. package/dist/containers/Cluster/i18n/index.d.ts +1 -1
  47. package/dist/containers/Cluster/i18n/index.js +1 -2
  48. package/dist/containers/Cluster/i18n/index.js.map +1 -1
  49. package/dist/containers/Header/breadcrumbs.js +14 -0
  50. package/dist/containers/Header/breadcrumbs.js.map +1 -1
  51. package/dist/containers/Header/i18n/en.json +2 -1
  52. package/dist/containers/Header/i18n/index.d.ts +1 -1
  53. package/dist/containers/Nodes/Nodes.js +3 -13
  54. package/dist/containers/Nodes/Nodes.js.map +1 -1
  55. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js +1 -1
  56. package/dist/containers/PDiskPage/DecommissionButton/DecommissionButton.js.map +1 -1
  57. package/dist/containers/PDiskPage/PDiskPage.js +1 -1
  58. package/dist/containers/PDiskPage/PDiskPage.js.map +1 -1
  59. package/dist/containers/PDiskPage/PDiskPage.scss +15 -4
  60. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js +3 -1
  61. package/dist/containers/Storage/StorageGroups/columns/getStorageGroupsColumns.js.map +1 -1
  62. package/dist/containers/StorageGroupPage/StorageGroupPage.d.ts +2 -0
  63. package/dist/containers/StorageGroupPage/StorageGroupPage.js +117 -0
  64. package/dist/containers/StorageGroupPage/StorageGroupPage.js.map +1 -0
  65. package/dist/containers/StorageGroupPage/StorageGroupPage.scss +40 -0
  66. package/dist/containers/StorageGroupPage/i18n/en.json +6 -0
  67. package/dist/containers/StorageGroupPage/i18n/index.d.ts +1 -0
  68. package/dist/containers/StorageGroupPage/i18n/index.js +5 -0
  69. package/dist/containers/StorageGroupPage/i18n/index.js.map +1 -0
  70. package/dist/containers/Tenant/Diagnostics/Diagnostics.js +4 -2
  71. package/dist/containers/Tenant/Diagnostics/Diagnostics.js.map +1 -1
  72. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.d.ts +30 -0
  73. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js +5 -0
  74. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.js.map +1 -1
  75. package/dist/containers/UserSettings/i18n/en.json +0 -2
  76. package/dist/containers/UserSettings/i18n/index.d.ts +1 -1
  77. package/dist/containers/UserSettings/settings.d.ts +0 -1
  78. package/dist/containers/UserSettings/settings.js +2 -12
  79. package/dist/containers/UserSettings/settings.js.map +1 -1
  80. package/dist/routes.d.ts +3 -0
  81. package/dist/routes.js +5 -0
  82. package/dist/routes.js.map +1 -1
  83. package/dist/services/api.d.ts +3 -6
  84. package/dist/services/api.js +1 -6
  85. package/dist/services/api.js.map +1 -1
  86. package/dist/services/settings.d.ts +0 -1
  87. package/dist/services/settings.js +1 -2
  88. package/dist/services/settings.js.map +1 -1
  89. package/dist/store/reducers/capabilities/hooks.d.ts +1 -0
  90. package/dist/store/reducers/capabilities/hooks.js +3 -0
  91. package/dist/store/reducers/capabilities/hooks.js.map +1 -1
  92. package/dist/store/reducers/cluster/cluster.js +10 -1
  93. package/dist/store/reducers/cluster/cluster.js.map +1 -1
  94. package/dist/store/reducers/cluster/utils.d.ts +3 -1
  95. package/dist/store/reducers/cluster/utils.js +9 -3
  96. package/dist/store/reducers/cluster/utils.js.map +1 -1
  97. package/dist/store/reducers/executeQuery.js +1 -1
  98. package/dist/store/reducers/executeQuery.js.map +1 -1
  99. package/dist/store/reducers/explainQuery/utils.d.ts +1 -1
  100. package/dist/store/reducers/explainQuery/utils.js.map +1 -1
  101. package/dist/store/reducers/header/types.d.ts +5 -2
  102. package/dist/store/reducers/nodes/nodes.d.ts +1 -2
  103. package/dist/store/reducers/nodes/nodes.js +1 -16
  104. package/dist/store/reducers/nodes/nodes.js.map +1 -1
  105. package/dist/store/reducers/nodes/types.d.ts +2 -6
  106. package/dist/store/reducers/nodes/utils.d.ts +1 -4
  107. package/dist/store/reducers/nodes/utils.js +1 -41
  108. package/dist/store/reducers/nodes/utils.js.map +1 -1
  109. package/dist/store/reducers/storage/types.d.ts +19 -0
  110. package/dist/store/reducers/storage/utils.js +7 -2
  111. package/dist/store/reducers/storage/utils.js.map +1 -1
  112. package/dist/store/reducers/viewSchema/viewSchema.js +1 -1
  113. package/dist/store/reducers/viewSchema/viewSchema.js.map +1 -1
  114. package/dist/styles/mixins.scss +45 -0
  115. package/dist/types/api/capabilities.d.ts +1 -1
  116. package/dist/types/api/cluster.d.ts +31 -1
  117. package/dist/types/api/cluster.js +3 -1
  118. package/dist/types/api/cluster.js.map +1 -1
  119. package/dist/types/api/meta.d.ts +5 -2
  120. package/dist/utils/constants.d.ts +0 -1
  121. package/dist/utils/constants.js +0 -1
  122. package/dist/utils/constants.js.map +1 -1
  123. package/dist/utils/nodes.d.ts +1 -2
  124. package/dist/utils/nodes.js.map +1 -1
  125. package/dist/utils/versions/parseNodesToVersionsValues.d.ts +1 -1
  126. package/dist/utils/versions/parseNodesToVersionsValues.js +3 -2
  127. package/dist/utils/versions/parseNodesToVersionsValues.js.map +1 -1
  128. package/package.json +2 -1
  129. package/dist/containers/Cluster/i18n/ru.json +0 -16
  130. package/dist/types/api/compute.d.ts +0 -57
  131. package/dist/types/api/compute.js +0 -2
  132. package/dist/types/api/compute.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  import type { OrderType } from '@gravity-ui/react-data-table';
2
- import type { EVersion, TTabletStateInfo as TComputeTabletStateInfo } from '../../../types/api/compute';
3
2
  import type { EFlag } from '../../../types/api/enums';
4
3
  import type { TEndpoint, TPoolStats } from '../../../types/api/nodes';
5
4
  import type { TTabletStateInfo as TFullTabletStateInfo } from '../../../types/api/tablet';
@@ -25,7 +24,7 @@ export interface NodesPreparedEntity {
25
24
  PoolStats?: TPoolStats[];
26
25
  LoadAverage?: number[];
27
26
  LoadAveragePercents?: number[];
28
- Tablets?: TFullTabletStateInfo[] | TComputeTabletStateInfo[];
27
+ Tablets?: TFullTabletStateInfo[];
29
28
  Endpoints?: TEndpoint[];
30
29
  TotalSessions?: number;
31
30
  }
@@ -50,6 +49,7 @@ export interface NodesGeneralRequestParams extends Partial<NodesSortParams> {
50
49
  }
51
50
  export interface NodesApiRequestParams extends NodesGeneralRequestParams {
52
51
  node_id?: number | string;
52
+ group_id?: number | string;
53
53
  path?: string;
54
54
  database?: string;
55
55
  /** @deprecated use database instead */
@@ -60,10 +60,6 @@ export interface NodesApiRequestParams extends NodesGeneralRequestParams {
60
60
  tablets?: boolean;
61
61
  group?: string;
62
62
  }
63
- export interface ComputeApiRequestParams extends NodesGeneralRequestParams {
64
- path: string;
65
- version?: EVersion;
66
- }
67
63
  export interface NodesGroup {
68
64
  name: string;
69
65
  count: number;
@@ -1,7 +1,4 @@
1
- import type { TComputeInfo, TComputeNodeInfo, TComputeTenantInfo } from '../../../types/api/compute';
2
1
  import type { TNodesInfo } from '../../../types/api/nodes';
3
- import type { NodesHandledResponse, NodesPreparedEntity } from './types';
4
- export declare const prepareComputeNodes: (nodes?: TComputeNodeInfo[], tenants?: TComputeTenantInfo[]) => NodesPreparedEntity[];
5
- export declare const prepareComputeNodesData: (data: TComputeInfo) => NodesHandledResponse;
2
+ import type { NodesHandledResponse } from './types';
6
3
  export declare const prepareNodesData: (data: TNodesInfo) => NodesHandledResponse;
7
4
  export declare const getLoadSeverityForNode: (value: number) => "success" | "danger" | "warning" | undefined;
@@ -1,45 +1,5 @@
1
- import { calcUptime } from '../../../utils/dataFormatters/dataFormatters';
2
1
  import { generateEvaluator } from '../../../utils/generateEvaluator';
3
- import { calculateLoadAveragePercents, prepareNodeSystemState } from '../../../utils/nodes';
4
- const prepareComputeNode = (node, tenantName) => {
5
- var _a;
6
- return {
7
- ...node,
8
- // v2 response has tenant name, v1 - doesn't
9
- TenantName: (_a = node.Tenant) !== null && _a !== void 0 ? _a : tenantName,
10
- SystemState: node === null || node === void 0 ? void 0 : node.Overall,
11
- Uptime: calcUptime(node === null || node === void 0 ? void 0 : node.StartTime),
12
- LoadAveragePercents: calculateLoadAveragePercents(node),
13
- DC: node.DataCenter,
14
- };
15
- };
16
- export const prepareComputeNodes = (nodes, tenants) => {
17
- var _a;
18
- const preparedNodes = [];
19
- // First try to parse v2 response in case backend supports it
20
- // Else parse v1 response
21
- if (nodes) {
22
- nodes.forEach((node) => {
23
- preparedNodes.push(prepareComputeNode(node));
24
- });
25
- }
26
- else if (tenants) {
27
- for (const tenant of tenants) {
28
- (_a = tenant.Nodes) === null || _a === void 0 ? void 0 : _a.forEach((node) => {
29
- preparedNodes.push(prepareComputeNode(node, tenant.Name));
30
- });
31
- }
32
- }
33
- return preparedNodes;
34
- };
35
- export const prepareComputeNodesData = (data) => {
36
- const preparedNodes = prepareComputeNodes(data.Nodes, data.Tenants);
37
- return {
38
- Nodes: preparedNodes,
39
- TotalNodes: Number(data.TotalNodes) || preparedNodes.length,
40
- FoundNodes: Number(data.FoundNodes),
41
- };
42
- };
2
+ import { prepareNodeSystemState } from '../../../utils/nodes';
43
3
  export const prepareNodesData = (data) => {
44
4
  var _a;
45
5
  const rawNodes = data.Nodes || [];
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/nodes/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,8CAA8C,CAAC;AACxE,OAAO,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAC,4BAA4B,EAAE,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAI1F,MAAM,kBAAkB,GAAG,CAAC,IAAsB,EAAE,UAAmB,EAAuB,EAAE;;IAC5F,OAAO;QACH,GAAG,IAAI;QACP,4CAA4C;QAC5C,UAAU,EAAE,MAAA,IAAI,CAAC,MAAM,mCAAI,UAAU;QACrC,WAAW,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO;QAC1B,MAAM,EAAE,UAAU,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,CAAC;QACnC,mBAAmB,EAAE,4BAA4B,CAAC,IAAI,CAAC;QAEvD,EAAE,EAAE,IAAI,CAAC,UAAU;KACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,KAA0B,EAAE,OAA8B,EAAE,EAAE;;IAC9F,MAAM,aAAa,GAA0B,EAAE,CAAC;IAEhD,6DAA6D;IAC7D,yBAAyB;IAEzB,IAAI,KAAK,EAAE,CAAC;QACR,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;YACnB,aAAa,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;IACP,CAAC;SAAM,IAAI,OAAO,EAAE,CAAC;QACjB,KAAK,M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AAC;YAC3C,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,0CAAG,CAAC,CAAC;YAC1C,eAAe,EAAE,MAAA,IAAI,CAAC,WAAW,CAAC,gBAAgB,0CAAE,SAAS;YAC7D,gBAAgB,EAAE,gBAAgB;SACrC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,MAAA,IAAI,CAAC,UAAU,0CAAE,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACpD,IAAI,EAAE,KAAK,CAAC,SAAS;QACrB,KAAK,EAAE,KAAK,CAAC,SAAS;KACzB,CAAC,CAAC,CAAC;IAEJ,OAAO;QACH,KAAK,EAAE,aAAa;QACpB,UAAU,EAAE,cAAc;QAC1B,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,aAAa,CAAC,MAAM;QAC3D,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;KACtC,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC"}
@@ -43,6 +43,7 @@ export interface PreparedStorageGroup {
43
43
  Encryption?: boolean;
44
44
  ErasureSpecies?: string;
45
45
  Degraded: number;
46
+ Overall?: EFlag;
46
47
  GroupId?: string | number;
47
48
  Usage: number;
48
49
  Read: number;
@@ -51,6 +52,24 @@ export interface PreparedStorageGroup {
51
52
  Limit: number;
52
53
  DiskSpace: EFlag;
53
54
  VDisks?: PreparedVDisk[];
55
+ Kind?: string;
56
+ ChangeTime?: number | string;
57
+ GroupGeneration?: string;
58
+ Latency?: EFlag;
59
+ AcquiredUnits?: string;
60
+ AcquiredIOPS?: number;
61
+ AcquiredThroughput?: string;
62
+ AcquiredSize?: string;
63
+ MaximumIOPS?: number;
64
+ MaximumThroughput?: string;
65
+ MaximumSize?: string;
66
+ AllocationUnits?: string | number;
67
+ State?: string;
68
+ MissingDisks?: string | number;
69
+ Available?: string;
70
+ LatencyPutTabletLog?: number;
71
+ LatencyPutUserData?: number;
72
+ LatencyGetFast?: number;
54
73
  }
55
74
  export interface UsageFilter {
56
75
  threshold: number;
@@ -53,7 +53,9 @@ export const prepareStorageGroupData = (group, pool) => {
53
53
  const diskSpaceStatus = getGroupDiskSpaceStatus(group);
54
54
  return {
55
55
  ...group,
56
+ GroupGeneration: group.GroupGeneration ? String(group.GroupGeneration) : undefined,
56
57
  GroupId: group.GroupID,
58
+ Overall: group.Overall,
57
59
  VDisks: vDisks,
58
60
  Usage: usage,
59
61
  Read: readSpeedBytesPerSec,
@@ -67,7 +69,7 @@ export const prepareStorageGroupData = (group, pool) => {
67
69
  };
68
70
  };
69
71
  export const prepareStorageGroupDataV2 = (group) => {
70
- const { VDisks = [], PoolName, Usage = 0, Read = 0, Write = 0, Used = 0, Limit = 0, Degraded = 0, Kind, MediaType, GroupID, } = group;
72
+ const { VDisks = [], PoolName, Usage = 0, Read = 0, Write = 0, Used = 0, Limit = 0, Degraded = 0, Kind, MediaType, GroupID, Overall, GroupGeneration, } = group;
71
73
  const vDisks = VDisks.map((vdisk) => prepareVDisk(vdisk, PoolName));
72
74
  const usage = Math.floor(Number(Usage) * 100);
73
75
  const diskSpaceStatus = getGroupDiskSpaceStatus(group);
@@ -78,6 +80,8 @@ export const prepareStorageGroupDataV2 = (group) => {
78
80
  MediaType: MediaType || Kind,
79
81
  VDisks: vDisks,
80
82
  Usage: usage,
83
+ Overall,
84
+ GroupGeneration: GroupGeneration ? String(GroupGeneration) : undefined,
81
85
  Read: Number(Read),
82
86
  Write: Number(Write),
83
87
  Used: Number(Used),
@@ -149,7 +153,7 @@ export const prepareStorageResponse = (data) => {
149
153
  export function prepareGroupsResponse(data) {
150
154
  const { FoundGroups, TotalGroups, StorageGroups = [] } = data;
151
155
  const preparedGroups = StorageGroups.map((group) => {
152
- const { Usage, Read, Write, Used, Limit, MissingDisks, VDisks = [] } = group;
156
+ const { Usage, Read, Write, Used, Limit, MissingDisks, VDisks = [], Overall } = group;
153
157
  const vDisks = VDisks.map((disk) => {
154
158
  var _a;
155
159
  const whiteboardVDisk = disk.Whiteboard;
@@ -173,6 +177,7 @@ export function prepareGroupsResponse(data) {
173
177
  Used: Number(Used),
174
178
  Limit: Number(Limit),
175
179
  Degraded: Number(MissingDisks),
180
+ Overall,
176
181
  VDisks: vDisks,
177
182
  DiskSpace: diskSpaceStatus,
178
183
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/store/reducers/storage/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AASrD,OAAO,EAAC,WAAW,EAAC,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAC,gBAAgB,EAAE,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAC;AAIhD,2BAA2B;AAE3B,SAAS,uBAAuB,CAAC,KAAkD;IAC/E,MAAM,EAAC,SAAS,EAAE,MAAM,GAAG,EAAE,EAAC,GAAG,KAAK,CAAC;IAEvC,OAAO,CACH,SAAS;QACT,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CACxF,CAAC;AACN,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,KAAsB,EAAE,QAA4B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AG,eAAe;gBAClB,OAAO;gBACP,MAAM;gBACN,KAAK,EAAE,EAAC,GAAG,eAAe,EAAE,MAAM,EAAC;aACtC,CAAC;YAEF,OAAO,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;QAEvD,OAAO;YACH,GAAG,KAAK;YACR,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;YACrC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;YACpB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;YACpB,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC;YAC9B,OAAO;YAEP,MAAM,EAAE,MAAM;YAEd,SAAS,EAAE,eAAe;SAC7B,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,OAAO;QACH,MAAM,EAAE,cAAc;QACtB,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,cAAc,CAAC,MAAM;QACnD,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;KAC7B,CAAC;AACN,CAAC"}
@@ -17,7 +17,7 @@ export const viewSchemaApi = api.injectEndpoints({
17
17
  if (isQueryErrorResponse(response)) {
18
18
  return { error: response };
19
19
  }
20
- return { data: response.columns || [] };
20
+ return { data: (response === null || response === void 0 ? void 0 : response.columns) || [] };
21
21
  }
22
22
  catch (error) {
23
23
  return { error: error };
@@ -1 +1 @@
1
- {"version":3,"file":"viewSchema.js","sourceRoot":"","sources":["../../../../src/store/reducers/viewSchema/viewSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,SA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AAC;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC,eAAe,CAAC;IAC7C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC;YACvB,OAAO,EAAE,KAAK,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAmC,EAAE,EAAE;gBAClE,IAAI,CAAC;oBACD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,SAAS,CACvC;wBACI,MAAM,EAAE,QAAQ;wBAChB,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC;wBAClC,QAAQ;wBACR,MAAM,EAAE,cAAc;qBACzB,EACD,EAAC,WAAW,EAAE,IAAI,EAAC,CACtB,CAAC;oBAEF,IAAI,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC;wBACjC,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAC,CAAC;oBAC7B,CAAC;oBAED,OAAO,EAAC,IAAI,EAAE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,KAAI,EAAE,EAAC,CAAC;gBAC3C,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACb,OAAO,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC;gBAC1B,CAAC;YACL,CAAC;YACD,YAAY,EAAE,CAAC,KAAK,CAAC;SACxB,CAAC;KACL,CAAC;IACF,gBAAgB,EAAE,OAAO;CAC5B,CAAC,CAAC"}
@@ -323,3 +323,48 @@
323
323
  }
324
324
  }
325
325
  }
326
+
327
+ @mixin entity-state-colors {
328
+ --entity-state-border-color: var(--g-color-base-misc-heavy);
329
+ --entity-state-background-color: var(--g-color-base-misc-light);
330
+ --entity-state-fill-color: var(--g-color-base-misc-medium);
331
+ --entity-state-font-color: var(--g-color-text-primary);
332
+
333
+ &_green {
334
+ --entity-state-font-color: var(--g-color-text-positive);
335
+ --entity-state-border-color: var(--g-color-base-positive-heavy);
336
+ --entity-state-background-color: var(--g-color-base-positive-light);
337
+ --entity-state-fill-color: var(--g-color-base-positive-medium);
338
+ }
339
+
340
+ &_blue {
341
+ --entity-state-font-color: var(--g-color-text-info);
342
+ --entity-state-border-color: var(--g-color-base-info-heavy);
343
+ --entity-state-background-color: var(--g-color-base-info-light);
344
+ --entity-state-fill-color: var(--g-color-base-info-medium);
345
+ }
346
+
347
+ &_yellow {
348
+ --entity-state-font-color: var(--g-color-text-warning);
349
+ --entity-state-border-color: var(--g-color-base-warning-heavy);
350
+ --entity-state-background-color: var(--g-color-base-yellow-light);
351
+ --entity-state-fill-color: var(--g-color-base-yellow-medium);
352
+ }
353
+
354
+ &_orange {
355
+ --entity-state-font-color: var(--g-color-text-warning-heavy);
356
+ --entity-state-border-color: var(--ydb-color-status-orange);
357
+ --entity-state-background-color: var(--g-color-base-warning-light);
358
+ --entity-state-fill-color: var(--g-color-base-warning-medium);
359
+ }
360
+ &_red {
361
+ --entity-state-font-color: var(--g-color-text-danger);
362
+ --entity-state-border-color: var(--g-color-base-danger-heavy);
363
+ --entity-state-background-color: var(--g-color-base-danger-light);
364
+ --entity-state-fill-color: var(--g-color-base-danger-medium);
365
+ }
366
+ &__grey {
367
+ --entity-state-font-color: var(--g-color-text-secondary);
368
+ --entity-state-border-color: var(--g-color-line-generic-hover);
369
+ }
370
+ }
@@ -4,4 +4,4 @@
4
4
  export interface CapabilitiesResponse {
5
5
  Capabilities: Record<Partial<Capability>, number>;
6
6
  }
7
- export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query';
7
+ export type Capability = '/pdisk/info' | '/scheme/directory' | '/storage/groups' | '/viewer/query' | '/viewer/feature_flags';
@@ -6,7 +6,7 @@ import type { TTraceCheck, TTraceView } from './trace';
6
6
  *
7
7
  * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
8
8
  */
9
- export interface TClusterInfo {
9
+ export interface TClusterInfoV1 {
10
10
  Name?: string;
11
11
  Overall?: EFlag;
12
12
  NodesTotal?: number;
@@ -38,3 +38,33 @@ export interface TClusterInfo {
38
38
  TraceView?: TTraceView;
39
39
  TraceCheck?: TTraceCheck;
40
40
  }
41
+ export interface TStorageStats {
42
+ PDiskFilter?: string;
43
+ ErasureSpecies?: string;
44
+ CurrentAvailableSize?: string;
45
+ /** uint64 */
46
+ CurrentAllocatedSize?: string;
47
+ CurrentGroupsCreated?: number;
48
+ AvailableGroupsToCreate?: number;
49
+ }
50
+ export interface TClusterInfoV2 extends TClusterInfoV1 {
51
+ MapDataCenters?: {
52
+ [key: string]: number;
53
+ };
54
+ MapNodeStates?: Partial<Record<EFlag, number>>;
55
+ /** value is uint64 */
56
+ MapStorageTotal?: {
57
+ [key: string]: string;
58
+ };
59
+ /** value is uint64 */
60
+ MapStorageUsed?: {
61
+ [key: string]: string;
62
+ };
63
+ MapVersions?: {
64
+ [key: string]: number;
65
+ };
66
+ StorageStats?: TStorageStats[];
67
+ Version?: number;
68
+ }
69
+ export type TClusterInfo = TClusterInfoV1 | TClusterInfoV2;
70
+ export declare function isClusterInfoV2(info?: TClusterInfo): info is TClusterInfoV2;
@@ -1,2 +1,4 @@
1
- export {};
1
+ export function isClusterInfoV2(info) {
2
+ return info ? 'Version' in info && info.Version === 2 : false;
3
+ }
2
4
  //# sourceMappingURL=cluster.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"cluster.js","sourceRoot":"","sources":["../../../src/types/api/cluster.ts"],"names":[],"mappings":"AA6EA,MAAM,UAAU,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AAClE,CAAC"}
@@ -17,6 +17,9 @@ export interface MetaExtendedClusterInfo extends MetaGeneralClusterInfo {
17
17
  hosts?: Record<string, number>;
18
18
  versions?: MetaClusterVersion[];
19
19
  }
20
+ export interface MetaBaseClusters {
21
+ clusters: MetaBaseClusterInfo[];
22
+ }
20
23
  export interface MetaBaseClusterInfo {
21
24
  owner?: string;
22
25
  location?: string;
@@ -39,9 +42,9 @@ export interface MetaBaseClusterInfo {
39
42
  export interface MetaGeneralClusterInfo extends MetaBaseClusterInfo {
40
43
  cluster?: MetaViewerClusterInfo;
41
44
  }
42
- export interface MetaViewerClusterInfo extends TClusterInfo {
45
+ export type MetaViewerClusterInfo = TClusterInfo & {
43
46
  error?: string;
44
- }
47
+ };
45
48
  export interface MetaClusterVersion {
46
49
  version: string;
47
50
  version_base_color_index?: number;
@@ -55,7 +55,6 @@ export declare const TENANT_DEFAULT_TITLE = "Database";
55
55
  export declare const THEME_KEY = "theme";
56
56
  export declare const LANGUAGE_KEY = "language";
57
57
  export declare const INVERTED_DISKS_KEY = "invertedDisks";
58
- export declare const USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY = "useNodesEndpointInDiagnostics";
59
58
  export declare const SAVED_QUERIES_KEY = "saved_queries";
60
59
  export declare const ASIDE_HEADER_COMPACT_KEY = "asideHeaderCompact";
61
60
  export declare const QUERIES_HISTORY_KEY = "queries_history";
@@ -71,7 +71,6 @@ export const TENANT_DEFAULT_TITLE = 'Database';
71
71
  export const THEME_KEY = 'theme';
72
72
  export const LANGUAGE_KEY = 'language';
73
73
  export const INVERTED_DISKS_KEY = 'invertedDisks';
74
- export const USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY = 'useNodesEndpointInDiagnostics';
75
74
  export const SAVED_QUERIES_KEY = 'saved_queries';
76
75
  export const ASIDE_HEADER_COMPACT_KEY = 'asideHeaderCompact';
77
76
  export const QUERIES_HISTORY_KEY = 'queries_history';
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM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AM,wBAAwB,GAAG,2BAA2B,CAAC;AAEpE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE7D,kDAAkD;AAClD,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,4BAA4B,CAAC;AAEhF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE3D,MAAM,CAAC,MAAM,0BAA0B,GAAG,qBAAqB,CAAC;AAEhE,MAAM,CAAC,MAAM,mCAAmC,GAAG,iCAAiC,CAAC;AAErF,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { NodesPreparedEntity } from '../store/reducers/nodes/types';
3
3
  import type { ProblemFilterValue } from '../store/reducers/settings/types';
4
- import type { TComputeNodeInfo } from '../types/api/compute';
5
4
  import type { TSystemStateInfo } from '../types/api/nodes';
6
5
  import type { TNodeInfo } from '../types/api/nodesList';
7
6
  import type { ValueOf } from '../types/common';
@@ -17,7 +16,7 @@ export declare const NodesUptimeFilterTitles: {
17
16
  };
18
17
  export declare const isUnavailableNode: (node: NodesPreparedEntity | TSystemStateInfo) => boolean;
19
18
  export declare const prepareNodesMap: (nodesList?: TNodeInfo[]) => NodesMap | undefined;
20
- export declare function calculateLoadAveragePercents(node?: TSystemStateInfo | TComputeNodeInfo): number[] | undefined;
19
+ export declare function calculateLoadAveragePercents(node?: TSystemStateInfo): number[] | undefined;
21
20
  export interface PreparedNodeSystemState extends TSystemStateInfo {
22
21
  Rack?: string;
23
22
  DC?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../src/utils/nodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AA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,UAAU,KAAI,WAAW,CAAC,UAAU,CAAC;IAEtE,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAEjD,MAAM,mBAAmB,GAAG,4BAA4B,CAAC,WAAW,CAAC,CAAC;IAEtE,OAAO;QACH,GAAG,WAAW;QACd,IAAI;QACJ,EAAE;QACF,MAAM;QACN,mBAAmB;KACtB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,aAA6C,EAAE,EAAE;IAClF,OAAO,aAAa,KAAK,mBAAmB,CAAC,QAAQ,CAAC;AAC1D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,iBAAsD,EAAE,EAAE;IAC1F,OAAO,iBAAiB,KAAK,uBAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AACnG,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;IACV,WAAW,EAAE,aAAa;CACpB,CAAC;AAIX,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAa,EAA2B,EAAE,CAC9E,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import type { NodesGroup } from '../../store/reducers/nodes/types';
2
2
  import type { TSystemStateInfo } from '../../types/api/nodes';
3
3
  import type { VersionToColorMap, VersionValue } from '../../types/versions';
4
4
  export declare const parseNodesToVersionsValues: (nodes?: TSystemStateInfo[], versionsToColor?: VersionToColorMap) => VersionValue[];
5
- export declare function parseNodeGroupsToVersionsValues(groups: NodesGroup[], versionsToColor?: VersionToColorMap): {
5
+ export declare function parseNodeGroupsToVersionsValues(groups: NodesGroup[], versionsToColor?: VersionToColorMap, total?: number): {
6
6
  title: string;
7
7
  version: string;
8
8
  color: string | undefined;
@@ -20,13 +20,14 @@ export const parseNodesToVersionsValues = (nodes = [], versionsToColor) => {
20
20
  };
21
21
  });
22
22
  };
23
- export function parseNodeGroupsToVersionsValues(groups, versionsToColor) {
23
+ export function parseNodeGroupsToVersionsValues(groups, versionsToColor, total) {
24
+ const normalizedTotal = total !== null && total !== void 0 ? total : groups.reduce((acc, group) => acc + group.count, 0);
24
25
  return groups.map((group) => {
25
26
  return {
26
27
  title: group.name,
27
28
  version: group.name,
28
29
  color: versionsToColor === null || versionsToColor === void 0 ? void 0 : versionsToColor.get(group.name),
29
- value: group.count,
30
+ value: (group.count / normalizedTotal) * 100,
30
31
  };
31
32
  });
32
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"parseNodesToVersionsValues.js","sourceRoot":"","sources":["../../../src/utils/versions/parseNodesToVersionsValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACtC,QAA4B,EAAE,EAC9B,eAAmC,EACrB,EAAE;IAChB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACrE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;gBACpB,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC9C,CAAC;iBAAM,CAAC;gBACJ,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC1B,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAC9C,OAAO;YACH,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,OAAO;YAChB,KAAK,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YACrD,KAAK,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG;SACvD,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC3C,MAAoB,EACpB,eAAmC;IAEnC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACxB,OAAO;YACH,KAAK,EAAE,KAAK,CAAC,IAAI;YACjB,OAAO,EAAE,KAAK,CAAC,IAAI;YACnB,KAAK,EAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YACvC,KAAK,EAAE,KAAK,CAAC,KAAK;SACrB,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"parseNodesToVersionsValues.js","sourceRoot":"","sources":["../../../src/utils/versions/parseNodesToVersionsValues.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,eAAe,EAAC,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACtC,QAA4B,EAAE,EAC9B,eAAmC,EACrB,EAAE;IAChB,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAyB,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;QACrE,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO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G;SAC/C,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "6.19.0",
3
+ "version": "6.21.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -147,6 +147,7 @@
147
147
  "husky": "^9.0.11",
148
148
  "jest-transform-css": "^6.0.1",
149
149
  "lint-staged": "^15.2.7",
150
+ "mini-css-extract-plugin": "^2.9.1",
150
151
  "monaco-editor-webpack-plugin": "^7.1.0",
151
152
  "monaco-yql-languages": "^1.0.6",
152
153
  "npm-run-all": "^4.1.5",
@@ -1,16 +0,0 @@
1
- {
2
- "disk-type": "Тип диска",
3
- "erasure": "Режим",
4
- "allocated": "Использовано",
5
- "available": "Доступно",
6
- "usage": "Потребление",
7
- "dc": "ДЦ",
8
- "tablets": "Таблетки",
9
- "databases": "Базы данных",
10
- "nodes": "Узлы",
11
- "load": "Нагрузка",
12
- "storage-size": "Размер хранилища",
13
- "storage-groups": "Группы хранения, {{diskType}}",
14
- "links": "Ссылки",
15
- "versions": "Версии"
16
- }
@@ -1,57 +0,0 @@
1
- import type { EFlag } from './enums';
2
- import type { TEndpoint, TLegacyNodeLocation, TPoolStats } from './nodes';
3
- import type { TMetrics } from './tenant';
4
- /**
5
- * endpoint: viewer/json/compute
6
- *
7
- * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
8
- *
9
- * response has 2 versions, depending on version param in request
10
- */
11
- export interface TComputeInfo {
12
- Overall: EFlag;
13
- Tenants?: TComputeTenantInfo[];
14
- Errors?: string[];
15
- /** uint64 */
16
- TotalNodes: string;
17
- /** uint64 */
18
- FoundNodes: string;
19
- Nodes?: TComputeNodeInfo[];
20
- }
21
- export interface TComputeTenantInfo {
22
- Overall: EFlag;
23
- Name: string;
24
- Nodes?: TComputeNodeInfo[];
25
- }
26
- export interface TComputeNodeInfo {
27
- /** uint64 */
28
- StartTime: string;
29
- /** uint64 */
30
- ChangeTime: string;
31
- SystemLocation: TLegacyNodeLocation;
32
- /** double */
33
- LoadAverage: number[];
34
- NumberOfCpus: number;
35
- Overall: EFlag;
36
- NodeId: number;
37
- DataCenter: string;
38
- Rack: string;
39
- Host: string;
40
- Version: string;
41
- PoolStats?: TPoolStats[];
42
- Endpoints?: TEndpoint[];
43
- Roles?: string[];
44
- /** uint64 */
45
- MemoryUsed?: string;
46
- /** uint64 */
47
- MemoryLimit?: string;
48
- Metrics: TMetrics;
49
- Tablets?: TTabletStateInfo[];
50
- Tenant?: string;
51
- }
52
- export interface TTabletStateInfo {
53
- Type: string;
54
- State: EFlag;
55
- Count: number;
56
- }
57
- export type EVersion = 'v1' | 'v2';
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=compute.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"compute.js","sourceRoot":"","sources":["../../../src/types/api/compute.ts"],"names":[],"mappings":""}