ydb-embedded-ui 4.10.0 → 4.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/components/InfoViewer/formatters/schema.ts +3 -1
  3. package/dist/components/QueryResultTable/Cell/Cell.tsx +8 -8
  4. package/dist/components/QueryResultTable/i18n/en.json +1 -1
  5. package/dist/components/QueryResultTable/i18n/ru.json +1 -1
  6. package/dist/components/ShortyString/ShortyString.tsx +3 -6
  7. package/dist/components/ShortyString/i18n/en.json +8 -8
  8. package/dist/components/ShortyString/i18n/ru.json +8 -8
  9. package/dist/components/SpeedMultiMeter/i18n/index.ts +0 -2
  10. package/dist/components/Stack/Stack.tsx +16 -16
  11. package/dist/components/TableSkeleton/TableSkeleton.tsx +3 -3
  12. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +32 -0
  13. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.tsx +43 -0
  14. package/dist/containers/AsideNavigation/AsideNavigation.tsx +2 -2
  15. package/dist/containers/Cluster/Cluster.scss +4 -5
  16. package/dist/containers/Cluster/Cluster.tsx +3 -22
  17. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
  18. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +14 -3
  19. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.tsx +1 -1
  20. package/dist/containers/Cluster/utils.tsx +0 -11
  21. package/dist/containers/Header/Header.scss +1 -5
  22. package/dist/containers/Header/Header.tsx +2 -2
  23. package/dist/containers/Header/breadcrumbs.ts +2 -1
  24. package/dist/containers/Heatmap/Heatmap.tsx +4 -3
  25. package/dist/containers/Node/NodeStructure/PDiskTitleBadge.tsx +2 -8
  26. package/dist/containers/Nodes/Nodes.scss +1 -24
  27. package/dist/containers/Nodes/Nodes.tsx +29 -39
  28. package/dist/containers/Storage/EmptyFilter/i18n/en.json +2 -2
  29. package/dist/containers/Storage/EmptyFilter/i18n/ru.json +2 -2
  30. package/dist/containers/Storage/Storage.scss +1 -14
  31. package/dist/containers/Storage/Storage.tsx +15 -18
  32. package/dist/containers/Storage/StorageGroups/i18n/en.json +5 -5
  33. package/dist/containers/Storage/StorageGroups/i18n/ru.json +5 -5
  34. package/dist/containers/Storage/StorageTypeFilter/StorageTypeFilter.tsx +3 -1
  35. package/dist/containers/Storage/{StorageVisibleEntityFilter/StorageVisibleEntityFilter.tsx → StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.tsx} +4 -2
  36. package/dist/containers/Storage/UsageFilter/i18n/en.json +3 -8
  37. package/dist/containers/Storage/UsageFilter/i18n/ru.json +3 -8
  38. package/dist/containers/Tablet/Tablet.tsx +2 -2
  39. package/dist/containers/Tenant/Acl/Acl.scss +1 -9
  40. package/dist/containers/Tenant/Acl/Acl.tsx +137 -0
  41. package/dist/containers/Tenant/Diagnostics/Describe/Describe.tsx +2 -2
  42. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +6 -2
  43. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.ts +6 -0
  44. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.js +3 -3
  45. package/dist/containers/Tenant/Diagnostics/Overview/Overview.tsx +2 -0
  46. package/dist/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.ts +2 -3
  47. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -18
  48. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +95 -88
  49. package/dist/containers/Tenant/Query/Issues/Issues.tsx +27 -23
  50. package/dist/containers/Tenant/Query/Issues/models.ts +0 -11
  51. package/dist/containers/Tenant/Query/Preview/Preview.tsx +3 -3
  52. package/dist/containers/Tenant/Query/i18n/en.json +1 -1
  53. package/dist/containers/Tenant/Query/i18n/ru.json +1 -1
  54. package/dist/containers/Tenant/Schema/SchemaTree/SchemaTree.tsx +2 -2
  55. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.tsx +99 -0
  56. package/dist/containers/Tenant/Tenant.tsx +1 -5
  57. package/dist/containers/Tenant/TenantPages.tsx +9 -14
  58. package/dist/containers/Tenant/i18n/en.json +11 -0
  59. package/dist/containers/Tenant/i18n/index.ts +11 -0
  60. package/dist/containers/Tenant/i18n/ru.json +11 -0
  61. package/dist/containers/Tenant/utils/schema.ts +24 -0
  62. package/dist/containers/Tenant/utils/schemaActions.ts +28 -24
  63. package/dist/containers/Tenants/Tenants.scss +1 -13
  64. package/dist/containers/Tenants/Tenants.tsx +18 -28
  65. package/dist/services/api.ts +6 -7
  66. package/dist/store/index.js +1 -1
  67. package/dist/store/reducers/nodes/nodes.ts +12 -111
  68. package/dist/store/reducers/nodes/selectors.ts +74 -0
  69. package/dist/store/reducers/nodes/types.ts +22 -3
  70. package/dist/store/reducers/nodes/utils.ts +59 -0
  71. package/dist/store/reducers/preview.ts +6 -4
  72. package/dist/store/reducers/schemaAcl/schemaAcl.ts +17 -0
  73. package/dist/store/reducers/schemaAcl/types.ts +9 -7
  74. package/dist/store/reducers/storage/selectors.ts +1 -1
  75. package/dist/store/reducers/tenant/constants.ts +6 -0
  76. package/dist/store/reducers/tenant/tenant.ts +15 -0
  77. package/dist/store/reducers/tenant/types.ts +18 -3
  78. package/dist/store/state-url-mapping.js +3 -0
  79. package/dist/types/api/cluster.ts +1 -1
  80. package/dist/types/api/compute.ts +27 -2
  81. package/dist/types/api/error.ts +2 -2
  82. package/dist/types/api/netInfo.ts +3 -3
  83. package/dist/types/api/nodes.ts +13 -1
  84. package/dist/types/api/query.ts +1 -1
  85. package/dist/types/api/schema/cdcStream.ts +32 -0
  86. package/dist/types/api/schema/columnEntity.ts +138 -0
  87. package/dist/types/api/schema/externalDataSource.ts +24 -0
  88. package/dist/types/api/schema/externalTable.ts +14 -0
  89. package/dist/types/api/schema/index.ts +10 -0
  90. package/dist/types/api/schema/persQueueGroup.ts +191 -0
  91. package/dist/types/api/schema/schema.ts +302 -0
  92. package/dist/types/api/schema/shared.ts +42 -0
  93. package/dist/types/api/schema/table.ts +616 -0
  94. package/dist/types/api/schema/tableIndex.ts +33 -0
  95. package/dist/types/api/storage.ts +1 -1
  96. package/dist/types/assets.d.ts +1 -2
  97. package/dist/types/store/executeQuery.ts +2 -3
  98. package/dist/types/store/executeTopQueries.ts +8 -5
  99. package/dist/types/store/explainQuery.ts +4 -4
  100. package/dist/types/store/query.ts +4 -3
  101. package/dist/types/store/shardsWorkload.ts +8 -5
  102. package/dist/utils/constants.ts +4 -1
  103. package/dist/utils/error.ts +2 -3
  104. package/dist/utils/query.ts +3 -9
  105. package/dist/utils/tests/providers.tsx +6 -9
  106. package/package.json +6 -2
  107. package/dist/assets/icons/versions.svg +0 -3
  108. package/dist/containers/Tenant/Acl/Acl.js +0 -153
  109. package/dist/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js +0 -94
  110. package/dist/types/api/schema.ts +0 -1326
@@ -0,0 +1,42 @@
1
+ export interface TStorageSettings {
2
+ PreferredPoolKind?: string;
3
+ AllowOtherKinds?: boolean;
4
+ }
5
+
6
+ export interface TPathID {
7
+ /** fixed64 */
8
+ OwnerId?: string;
9
+ /** uint64 */
10
+ LocalId?: string;
11
+ }
12
+
13
+ export interface TTypeInfo {
14
+ PgTypeId?: number;
15
+ }
16
+
17
+ export interface TColumnDescription {
18
+ Name?: string;
19
+ Type?: string;
20
+ TypeId?: number;
21
+ TypeInfo?: TTypeInfo;
22
+ Id?: number;
23
+ Family?: number;
24
+ FamilyName?: string;
25
+ /** Path to sequence for default values */
26
+ DefaultFromSequence?: string;
27
+ NotNull?: boolean;
28
+ }
29
+
30
+ export enum EColumnCodec {
31
+ ColumnCodecPlain = 'ColumnCodecPlain',
32
+ ColumnCodecLZ4 = 'ColumnCodecLZ4',
33
+ ColumnCodecZSTD = 'ColumnCodecZSTD',
34
+ }
35
+
36
+ export enum EUnit {
37
+ UNIT_AUTO = 'UNIT_AUTO',
38
+ UNIT_SECONDS = 'UNIT_SECONDS',
39
+ UNIT_MILLISECONDS = 'UNIT_MILLISECONDS',
40
+ UNIT_MICROSECONDS = 'UNIT_MICROSECONDS',
41
+ UNIT_NANOSECONDS = 'UNIT_NANOSECONDS',
42
+ }
@@ -0,0 +1,616 @@
1
+ import type {TCdcStreamDescription} from './cdcStream';
2
+ import type {TIndexDescription} from './tableIndex';
3
+ import type {EColumnCodec, EUnit, TColumnDescription, TPathID, TStorageSettings} from './shared';
4
+
5
+ export interface TTableDescription {
6
+ Name?: string;
7
+ /**
8
+ * @deprecated LocalPathId
9
+ *
10
+ * uint64
11
+ */
12
+ Id_Deprecated?: string;
13
+ Columns?: TColumnDescription[];
14
+ KeyColumnNames?: string[];
15
+ KeyColumnIds?: number[];
16
+ /**
17
+ * Describes uniform partitioning on first key column int on ranges.
18
+ * The first key column must be of integer type
19
+ */
20
+ UniformPartitionsCount?: number;
21
+
22
+ PartitionConfig?: TPartitionConfig;
23
+ DropColumns?: TColumnDescription[];
24
+ Path?: string;
25
+
26
+ /** bytes */
27
+ PartitionRangeBegin?: unknown;
28
+ /** bytes */
29
+ PartitionRangeEnd?: unknown;
30
+ PartitionRangeBeginIsInclusive?: boolean;
31
+ PartitionRangeEndIsInclusive?: boolean;
32
+
33
+ CopyFromTable?: string;
34
+ /** Boundaries for non-uniform split */
35
+ SplitBoundary?: TSplitBoundary[];
36
+
37
+ TableIndexes?: TIndexDescription[];
38
+ /** uint64 */
39
+ TableSchemaVersion?: string;
40
+
41
+ PathId?: TPathID;
42
+
43
+ TTLSettings?: TTTLSettings;
44
+
45
+ /**
46
+ * used with CopyFromTable
47
+ *
48
+ * default false
49
+ */
50
+ OmitFollowers?: boolean;
51
+ /** default false */
52
+ IsBackup?: boolean;
53
+
54
+ CdcStreams?: TCdcStreamDescription[];
55
+ Sequences?: TSequenceDescription[];
56
+ }
57
+
58
+ export interface TTTLSettings {
59
+ Enabled?: TEnabled;
60
+ Disabled?: {};
61
+ UseTiering?: string;
62
+ }
63
+
64
+ interface TEnabled {
65
+ ColumnName?: string;
66
+ ExpireAfterSeconds?: number;
67
+ ColumnUnit?: EUnit;
68
+ SysSettings?: TSysSettings;
69
+ }
70
+
71
+ interface TSysSettings {
72
+ /**
73
+ * default 3600000000 (1 hour)
74
+ *
75
+ * uint64
76
+ */
77
+ RunInterval?: string;
78
+ /**
79
+ * default 300000000 (5 minutes)
80
+ *
81
+ * uint64
82
+ */
83
+ RetryInterval?: string;
84
+ /** default 512000 */
85
+ BatchMaxBytes?: number;
86
+ /** default 1 */
87
+ BatchMinKeys?: number;
88
+ /** default 256 */
89
+ BatchMaxKeys?: number;
90
+ /**
91
+ * zero means no limit
92
+ *
93
+ * default 0
94
+ */
95
+ MaxShardsInFlight?: number;
96
+ }
97
+
98
+ interface TSplitBoundary {
99
+ /** A tuple representing full key or key prefix */
100
+ KeyPrefix?: unknown;
101
+ /**
102
+ * Or same as KeyPrefix but already serialized
103
+ *
104
+ * bytes
105
+ */
106
+ SerializedKeyPrefix?: unknown;
107
+ }
108
+
109
+ interface TSequenceDescription {
110
+ Name?: string;
111
+ /** sequence path id, assigned by schemeshard */
112
+ PathId?: TPathID;
113
+ /**
114
+ * incremented every time sequence is altered
115
+ *
116
+ * uint64
117
+ */
118
+ Version?: string;
119
+ /**
120
+ * current sequenceshard, assigned by schemeshard
121
+ *
122
+ * uint64
123
+ */
124
+ SequenceShard?: string;
125
+ /**
126
+ * minimum value, defaults to 1 or Min<i64>
127
+ *
128
+ * sint64
129
+ */
130
+ MinValue?: string;
131
+ /**
132
+ * maximum value, defaults to Max<i64> or -1
133
+ *
134
+ * sint64
135
+ */
136
+ MaxValue?: string;
137
+ /**
138
+ * start value, defaults to MinValue
139
+ *
140
+ * sint64
141
+ */
142
+ StartValue?: string;
143
+ /**
144
+ * number of items to cache, defaults to 1
145
+ *
146
+ * uint64
147
+ */
148
+ Cache?: string;
149
+ /**
150
+ * increment at each call, defaults to 1
151
+ *
152
+ * sint64
153
+ */
154
+ Increment?: string;
155
+ /** true when cycle on overflow is allowed */
156
+ Cycle?: boolean;
157
+ }
158
+
159
+ export interface TTableStats {
160
+ /** uint64 */
161
+ DataSize?: string;
162
+ /** uint64 */
163
+ RowCount?: string;
164
+ /** uint64 */
165
+ IndexSize?: string;
166
+ /** uint64 */
167
+ InMemSize?: string;
168
+
169
+ /**
170
+ * uint64
171
+ * unix time in millisec
172
+ */
173
+ LastAccessTime?: string;
174
+ /**
175
+ * uint64
176
+ * unix time in millisec
177
+ */
178
+ LastUpdateTime?: string;
179
+
180
+ RowCountHistogram?: THistogram;
181
+ DataSizeHistogram?: THistogram;
182
+
183
+ /** uint64 */
184
+ ImmediateTxCompleted?: string;
185
+ /** uint64 */
186
+ PlannedTxCompleted?: string;
187
+ /** uint64 */
188
+ TxRejectedByOverload?: string;
189
+ /** uint64 */
190
+ TxRejectedBySpace?: string;
191
+ /** uint64 */
192
+ TxCompleteLagMsec?: string;
193
+ /** uint64 */
194
+ InFlightTxCount?: string;
195
+
196
+ /** uint64 */
197
+ RowUpdates?: string;
198
+ /** uint64 */
199
+ RowDeletes?: string;
200
+ /** uint64 */
201
+ RowReads?: string;
202
+ /** uint64 */
203
+ RangeReads?: string;
204
+ /** uint64 */
205
+ RangeReadRows?: string;
206
+
207
+ /** uint64 */
208
+ PartCount?: string;
209
+
210
+ KeyAccessSample?: THistogram;
211
+
212
+ /** uint64 */
213
+ SearchHeight?: string;
214
+
215
+ /**
216
+ * uint64
217
+ * seconds since epoch
218
+ */
219
+ LastFullCompactionTs?: string;
220
+
221
+ // i.e. this shard lent to other shards
222
+ HasLoanedParts?: boolean;
223
+ }
224
+
225
+ interface THistogram {
226
+ Buckets?: THistogramBucket[];
227
+ }
228
+
229
+ interface THistogramBucket {
230
+ Key?: string;
231
+ /** uint64 */
232
+ Value?: string;
233
+ }
234
+
235
+ export interface TPartitionConfig {
236
+ /** One of the predefined policies*/
237
+ NamedCompactionPolicy?: string;
238
+ /** Customized policy */
239
+ CompactionPolicy?: TCompactionPolicy;
240
+ /** uint64 */
241
+ FollowerCount?: string;
242
+ /**
243
+ * Cache size for the whole tablet including all user and system tables
244
+ *
245
+ * uint64
246
+ */
247
+ ExecutorCacheSize?: string;
248
+ /**
249
+ * if true followers can upgrade to leader, if false followers only handle reads
250
+ *
251
+ * default true
252
+ */
253
+ AllowFollowerPromotion?: boolean;
254
+ /**
255
+ * Maximum size in bytes that is allowed to be read by a single Tx
256
+ *
257
+ * uint64
258
+ */
259
+ TxReadSizeLimit?: string;
260
+ /** @deprecated use FollowerGroups */
261
+ CrossDataCenterFollowerCount?: number;
262
+ /** for configuring erasure and disk categories */
263
+ ChannelProfileId?: number;
264
+ PartitioningPolicy?: TPartitioningPolicy;
265
+ PipelineConfig?: TPipelineConfig;
266
+ ColumnFamilies?: TFamilyDescription[];
267
+ ResourceProfile?: string;
268
+ DisableStatisticsCalculation?: boolean;
269
+ /**
270
+ * Build and use per-part bloom filter for fast key non-existence check
271
+ *
272
+ * default false
273
+ */
274
+ EnableFilterByKey?: boolean;
275
+ /**
276
+ * Commit log faster at the expense of bandwidth for cross-DC
277
+ *
278
+ * default true
279
+ */
280
+ ExecutorFastLogPolicy?: boolean;
281
+ StorageRooms?: TStorageRoom[];
282
+ /**
283
+ * Use erase cache for faster iteration over erased rows
284
+ *
285
+ * default true
286
+ */
287
+ EnableEraseCache?: boolean;
288
+ /**
289
+ * Minimum number of erased rows worth caching
290
+ *
291
+ * default 16
292
+ */
293
+ EraseCacheMinRows?: number;
294
+ /**
295
+ * Maximum number of bytes to use for cached rows
296
+ *
297
+ * default 1MB
298
+ */
299
+ EraseCacheMaxBytes?: number;
300
+ FreezeState?: EFreezeState;
301
+ ShadowData?: boolean;
302
+ /** 0 or 1 items */
303
+ FollowerGroups?: TFollowerGroup[];
304
+ /** uint64 milliseconds */
305
+ KeepSnapshotTimeout?: string;
306
+ }
307
+
308
+ export interface TFollowerGroup {
309
+ FollowerCount?: number;
310
+ AllowLeaderPromotion?: boolean;
311
+ AllowClientRead?: boolean;
312
+ AllowedNodeIDs?: number[];
313
+ /** @deprecated use AllowedDataCenters */
314
+ AllowedDataCenterNumIDs?: number[];
315
+ RequireAllDataCenters?: boolean;
316
+ LocalNodeOnly?: boolean;
317
+ RequireDifferentNodes?: boolean;
318
+ FollowerCountPerDataCenter?: boolean; // multiplies FollowerCount by number of DataCenters
319
+ AllowedDataCenters?: string[];
320
+ }
321
+
322
+ interface TStorageRoom {
323
+ RoomId?: number;
324
+ Explanation?: TChannelPurpose[];
325
+ }
326
+
327
+ interface TPipelineConfig {
328
+ /** default 8 */
329
+ NumActiveTx?: number;
330
+ DataTxCacheSize?: number;
331
+ /** default true */
332
+ EnableOutOfOrder?: boolean;
333
+ DisableImmediate?: boolean;
334
+ EnableSoftUpdates?: boolean;
335
+ }
336
+
337
+ interface TFamilyDescription {
338
+ Id?: number;
339
+ Room?: number;
340
+ /** @deprecated use ColumnCodec */
341
+ Codec?: number;
342
+ /** @deprecated use ColumnCache */
343
+ InMemory?: boolean;
344
+ Name?: string;
345
+ ColumnCodec?: EColumnCodec;
346
+ ColumnCache?: EColumnCache;
347
+ /** @deprecated use StorageConfig */
348
+ Storage?: EColumnStorage;
349
+ StorageConfig?: TStorageConfig;
350
+ }
351
+
352
+ interface TChannelPurpose {
353
+ Purpose?: EPurpose;
354
+ Channel?: number;
355
+ }
356
+
357
+ interface TStorageConfig {
358
+ SysLog?: TStorageSettings;
359
+ Log?: TStorageSettings;
360
+ Data?: TStorageSettings;
361
+ External?: TStorageSettings;
362
+ DataThreshold?: number;
363
+ ExternalThreshold?: number;
364
+ }
365
+
366
+ interface TPartitioningPolicy {
367
+ /**
368
+ * Partition gets split when this threshold is exceeded
369
+ *
370
+ * uint64
371
+ */
372
+ SizeToSplit?: string;
373
+
374
+ MinPartitionsCount?: number;
375
+ MaxPartitionsCount?: number;
376
+
377
+ FastSplitSettings?: TFastSplitSettings;
378
+ SplitByLoadSettings?: TSplitByLoadSettings;
379
+ }
380
+
381
+ interface TFastSplitSettings {
382
+ /** uint64 */
383
+ SizeThreshold?: string;
384
+ /** uint64 */
385
+ RowCountThreshold?: string;
386
+ CpuPercentageThreshold?: number;
387
+ }
388
+
389
+ interface TSplitByLoadSettings {
390
+ Enabled?: boolean;
391
+ CpuPercentageThreshold?: number;
392
+ }
393
+
394
+ interface TCompactionPolicy {
395
+ /** uint64 */
396
+ InMemSizeToSnapshot?: string;
397
+ /** snapshot inmem state when size AND steps from last snapshot passed */
398
+ InMemStepsToSnapshot?: number;
399
+ InMemForceStepsToSnapshot?: number;
400
+ /** uint64 */
401
+ InMemForceSizeToSnapshot?: string;
402
+ /** @deprecated default 0 */
403
+ InMemCompactionBrokerQueue?: number;
404
+ /** uint64 default 67108864 */
405
+ ReadAheadHiThreshold?: string;
406
+ /** uint64 default 16777216 */
407
+ ReadAheadLoThreshold?: string;
408
+ /** default 7168 */
409
+ MinDataPageSize?: number;
410
+ /** @deprecated default 0*/
411
+ SnapBrokerQueue?: number;
412
+ /** @deprecated default 1*/
413
+ BackupBrokerQueue?: number;
414
+ /** default 5 */
415
+ DefaultTaskPriority?: number;
416
+ BackgroundSnapshotPolicy?: TBackgroundPolicy;
417
+ InMemResourceBrokerTask?: string;
418
+ SnapshotResourceBrokerTask?: string;
419
+ BackupResourceBrokerTask?: string;
420
+ /** uint64 */
421
+ LogOverheadSizeToSnapshot?: string;
422
+ LogOverheadCountToSnapshot?: number;
423
+ DroppedRowsPercentToCompact?: number;
424
+ /** default CompactionStrategyUnset */
425
+ CompactionStrategy?: ECompactionStrategy;
426
+ ShardPolicy?: TShardPolicy;
427
+ KeepEraseMarkers?: boolean;
428
+ Generation?: TGenerationPolicy[];
429
+ }
430
+
431
+ interface TShardPolicy {
432
+ /**
433
+ * Adjacent shards smaller than this will be merged
434
+ *
435
+ * default 33554432
436
+ *
437
+ * uint64
438
+ */
439
+ MinShardSize?: string;
440
+ /**
441
+ * Shards bigger than this will split in two or more pieces
442
+ *
443
+ * default 134217728
444
+ *
445
+ * uint64
446
+ */
447
+ MaxShardSize?: string;
448
+ /**
449
+ * Slices smaller than this will get prioritized compaction
450
+ *
451
+ * default 2097152
452
+ *
453
+ * uint64
454
+ */
455
+ MinSliceSize?: string;
456
+ /**
457
+ * Level will be compacted when there are more than this number of slices
458
+ *
459
+ * default 256
460
+ */
461
+ MaxSlicesPerLevel?: number;
462
+ /**
463
+ * Shard will be compacted when there are more than this number of levels
464
+ *
465
+ * default 16
466
+ */
467
+ MaxTotalLevels?: number;
468
+ /**
469
+ * Shard will avoid compacting less than this number of levels
470
+ *
471
+ * default 2
472
+ */
473
+ MinLevelsToCompact?: number;
474
+ /**
475
+ * Level will be compacted when it has X% of its data in upper levels
476
+ *
477
+ * default 100
478
+ */
479
+ NewDataPercentToCompact?: number;
480
+ /**
481
+ * Level will be compacted when it has X% of its rows in upper levels
482
+ *
483
+ * default 0
484
+ */
485
+ NewRowsPercentToCompact?: number;
486
+ /**
487
+ * Resource broker task type for compactions
488
+ *
489
+ * default 'compaction_gen1'
490
+ */
491
+ ResourceBrokerTask?: string;
492
+ /**
493
+ * Base priority for compaction tasks
494
+ *
495
+ * default 1000
496
+ */
497
+ TaskPriorityBase?: number;
498
+ /**
499
+ * Task priority will be increased for every N levels over the minimum
500
+ *
501
+ * default 1
502
+ */
503
+ TaskPriorityLevelsBoost?: number;
504
+ /**
505
+ * Task priority will be decreased for every N bytes of input
506
+ *
507
+ * default 4194304
508
+ *
509
+ * uint64
510
+ */
511
+ TaskPrioritySizePenalty?: string;
512
+ /**
513
+ * Part data may be reused, unless it would leave this much garbage
514
+ *
515
+ * default 20
516
+ */
517
+ MaxGarbagePercentToReuse?: number;
518
+ /**
519
+ * Minimum slice that that may be reused
520
+ *
521
+ * default 524288
522
+ *
523
+ * uint64
524
+ */
525
+ MinSliceSizeToReuse?: string;
526
+ }
527
+
528
+ interface TGenerationPolicy {
529
+ GenerationId?: number;
530
+ /** uint64 */
531
+ SizeToCompact?: string;
532
+ CountToCompact?: number;
533
+ ForceCountToCompact?: number;
534
+ /** uint64 */
535
+ ForceSizeToCompact?: string;
536
+ /** @deprecated */
537
+ CompactionBrokerQueue?: number;
538
+ KeepInCache?: boolean;
539
+ BackgroundCompactionPolicy?: TBackgroundPolicy;
540
+ ResourceBrokerTask?: string;
541
+ ExtraCompactionPercent?: number;
542
+ /** uint64 */
543
+ ExtraCompactionMinSize?: string;
544
+ ExtraCompactionExpPercent?: number;
545
+ /** uint64 */
546
+ ExtraCompactionExpMaxSize?: string;
547
+ /** uint64 */
548
+ UpliftPartSize?: string;
549
+ }
550
+
551
+ interface TBackgroundPolicy {
552
+ /**
553
+ * How much (in %) of forced compaction criteria should be met to submit background task.
554
+ *
555
+ * default 101 - no background compaction by default
556
+ */
557
+ Threshold?: number;
558
+ /**
559
+ * Base background compaction priority value (less priority means more important task).
560
+ * Value is used to compute real task priority basing on compaction criteria, time in queue etc.
561
+ *
562
+ * default 100
563
+ */
564
+ PriorityBase?: number;
565
+
566
+ /**
567
+ * Submitted background task may become more prioritized over time.
568
+ * New priority is computed as priority /= max(log(elapsed_seconds) * factor, 1);
569
+ *
570
+ * default 1.0
571
+ *
572
+ * double
573
+ */
574
+ TimeFactor?: number;
575
+
576
+ /** @deprecated default 5*/
577
+ TaskType?: number;
578
+ ResourceBrokerTask?: string;
579
+ }
580
+
581
+ enum EPurpose {
582
+ SysLog = 'SysLog',
583
+ Log = 'Log',
584
+ Data = 'Data',
585
+ External = 'External',
586
+ }
587
+
588
+ enum EFreezeState {
589
+ Unspecified = 'Unspecified',
590
+ Freeze = 'Freeze',
591
+ Unfreeze = 'Unfreeze',
592
+ }
593
+
594
+ enum EColumnCache {
595
+ ColumnCacheNone = 'ColumnCacheNone',
596
+ ColumnCacheOnce = 'ColumnCacheOnce',
597
+ ColumnCacheEver = 'ColumnCacheEver',
598
+ }
599
+
600
+ enum EColumnStorage {
601
+ ColumnStorage1 = 'ColumnStorage1',
602
+ ColumnStorage2 = 'ColumnStorage2',
603
+ ColumnStorage1Ext1 = 'ColumnStorage1Ext1',
604
+ ColumnStorage1Ext2 = 'ColumnStorage1Ext2',
605
+ ColumnStorage2Ext1 = 'ColumnStorage2Ext1',
606
+ ColumnStorage2Ext2 = 'ColumnStorage2Ext2',
607
+ ColumnStorage1Med2Ext2 = 'ColumnStorage1Med2Ext2',
608
+ ColumnStorage2Med2Ext2 = 'ColumnStorage2Med2Ext2',
609
+ ColumnStorageTest_1_2_1k = 'ColumnStorageTest_1_2_1k',
610
+ }
611
+
612
+ enum ECompactionStrategy {
613
+ CompactionStrategyUnset = 'CompactionStrategyUnset',
614
+ CompactionStrategyGenerational = 'CompactionStrategyGenerational',
615
+ CompactionStrategySharded = 'CompactionStrategySharded',
616
+ }
@@ -0,0 +1,33 @@
1
+ export interface TIndexDescription {
2
+ Name?: string;
3
+ /** uint64 */
4
+ LocalPathId?: string;
5
+
6
+ Type?: EIndexType;
7
+ State?: EIndexState;
8
+
9
+ KeyColumnNames?: string[];
10
+
11
+ /** uint64 */
12
+ SchemaVersion?: string;
13
+
14
+ /** uint64 */
15
+ PathOwnerId?: string;
16
+
17
+ DataColumnNames?: string[];
18
+ /** uint64 */
19
+ DataSize?: string;
20
+ }
21
+
22
+ enum EIndexType {
23
+ EIndexTypeInvalid = 'EIndexTypeInvalid',
24
+ EIndexTypeGlobal = 'EIndexTypeGlobal',
25
+ EIndexTypeGlobalAsync = 'EIndexTypeGlobalAsync',
26
+ }
27
+
28
+ enum EIndexState {
29
+ EIndexStateInvalid = 'EIndexStateInvalid',
30
+ EIndexStateReady = 'EIndexStateReady',
31
+ EIndexStateNotReady = 'EIndexStateNotReady',
32
+ EIndexStateWriteOnly = 'EIndexStateWriteOnly',
33
+ }
@@ -3,7 +3,7 @@ import {TVDiskStateInfo} from './vdisk';
3
3
 
4
4
  /**
5
5
  * endpoint: /viewer/json/storage
6
- *
6
+ *
7
7
  * source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
8
8
  */
9
9
  export interface TStorageInfo {
@@ -8,5 +8,4 @@ declare module '*.jpg';
8
8
  declare module '*.jpeg';
9
9
  declare module '*.ico';
10
10
 
11
- declare type SVGIconData =
12
- import('@gravity-ui/uikit/build/esm/components/Icon/types').SVGIconData;
11
+ declare type SVGIconData = import('@gravity-ui/uikit/build/esm/components/Icon/types').SVGIconData;