ydb-embedded-ui 4.10.0 → 4.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/components/InfoViewer/formatters/schema.ts +3 -1
  3. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.scss +32 -0
  4. package/dist/components/TableWithControlsLayout/TableWithControlsLayout.tsx +43 -0
  5. package/dist/containers/AsideNavigation/AsideNavigation.tsx +2 -2
  6. package/dist/containers/Cluster/Cluster.scss +4 -5
  7. package/dist/containers/Cluster/Cluster.tsx +3 -22
  8. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -0
  9. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +7 -0
  10. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.tsx +1 -1
  11. package/dist/containers/Cluster/utils.tsx +0 -11
  12. package/dist/containers/Header/Header.scss +1 -5
  13. package/dist/containers/Nodes/Nodes.scss +1 -24
  14. package/dist/containers/Nodes/Nodes.tsx +28 -38
  15. package/dist/containers/Storage/Storage.scss +1 -14
  16. package/dist/containers/Storage/Storage.tsx +15 -18
  17. package/dist/containers/Storage/StorageTypeFilter/StorageTypeFilter.tsx +3 -1
  18. package/dist/containers/Storage/{StorageVisibleEntityFilter/StorageVisibleEntityFilter.tsx → StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.tsx} +4 -2
  19. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +6 -2
  20. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +3 -12
  21. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -7
  22. package/dist/containers/Tenant/Query/i18n/en.json +1 -1
  23. package/dist/containers/Tenant/Query/i18n/ru.json +1 -1
  24. package/dist/containers/Tenants/Tenants.scss +1 -13
  25. package/dist/containers/Tenants/Tenants.tsx +17 -24
  26. package/dist/store/reducers/nodes/nodes.ts +4 -112
  27. package/dist/store/reducers/nodes/selectors.ts +74 -0
  28. package/dist/store/reducers/nodes/utils.ts +46 -0
  29. package/dist/store/reducers/storage/selectors.ts +1 -1
  30. package/dist/types/api/compute.ts +27 -2
  31. package/dist/types/api/nodes.ts +12 -1
  32. package/dist/types/api/schema/cdcStream.ts +32 -0
  33. package/dist/types/api/schema/columnEntity.ts +138 -0
  34. package/dist/types/api/schema/externalDataSource.ts +24 -0
  35. package/dist/types/api/schema/externalTable.ts +14 -0
  36. package/dist/types/api/schema/index.ts +10 -0
  37. package/dist/types/api/schema/persQueueGroup.ts +191 -0
  38. package/dist/types/api/schema/schema.ts +299 -0
  39. package/dist/types/api/schema/shared.ts +42 -0
  40. package/dist/types/api/schema/table.ts +616 -0
  41. package/dist/types/api/schema/tableIndex.ts +33 -0
  42. package/package.json +1 -1
  43. package/dist/assets/icons/versions.svg +0 -3
  44. package/dist/types/api/schema.ts +0 -1326
@@ -1,1326 +0,0 @@
1
- import {TMetrics} from './tenant';
2
-
3
- export interface TEvDescribeSchemeResult {
4
- Status?: EStatus;
5
- Reason?: string;
6
- Path?: string;
7
- PathDescription?: TPathDescription;
8
- /** fixed64 */
9
- PathOwner?: string;
10
- /** fixed64 */
11
- PathId?: string;
12
-
13
- LastExistedPrefixPath?: string;
14
- /** fixed64 */
15
- LastExistedPrefixPathId?: string;
16
- LastExistedPrefixDescription?: TPathDescription;
17
- /** fixed64 */
18
- PathOwnerId?: string;
19
- }
20
-
21
- enum EStatus {
22
- StatusSuccess = 'StatusSuccess',
23
- StatusAccepted = 'StatusAccepted',
24
- StatusPathDoesNotExist = 'StatusPathDoesNotExist',
25
- StatusPathIsNotDirectory = 'StatusPathIsNotDirectory',
26
- StatusAlreadyExists = 'StatusAlreadyExists',
27
- StatusSchemeError = 'StatusSchemeError',
28
- StatusNameConflict = 'StatusNameConflict',
29
- StatusInvalidParameter = 'StatusInvalidParameter',
30
- StatusMultipleModifications = 'StatusMultipleModifications',
31
- StatusReadOnly = 'StatusReadOnly',
32
- StatusTxIdNotExists = 'StatusTxIdNotExists',
33
- StatusTxIsNotCancellable = 'StatusTxIsNotCancellable',
34
- StatusAccessDenied = 'StatusAccessDenied',
35
- StatusNotAvailable = 'StatusNotAvailable',
36
- StatusPreconditionFailed = 'StatusPreconditionFailed',
37
- StatusRedirectDomain = 'StatusRedirectDomain',
38
- StatusQuotaExceeded = 'StatusQuotaExceeded',
39
- StatusResourceExhausted = 'StatusResourceExhausted',
40
- }
41
-
42
- // source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/protos/flat_scheme_op.proto
43
- // incomplete interface, only currently used fields are covered
44
- export interface TPathDescription {
45
- /** info about the path itself */
46
- Self?: TDirEntry;
47
- DomainDescription?: TDomainDescription;
48
-
49
- // for directory
50
- Children?: TDirEntry[];
51
-
52
- // for table
53
- Table?: TTableDescription;
54
- TableStats?: TTableStats;
55
- TabletMetrics?: TMetrics;
56
- TablePartitions?: TTablePartition[];
57
- TablePartitionStats?: TTableStats[];
58
- TablePartitionMetrics?: TMetrics[];
59
-
60
- ColumnStoreDescription?: TColumnStoreDescription;
61
- ColumnTableDescription?: TColumnTableDescription;
62
-
63
- TableIndex?: TIndexDescription;
64
-
65
- CdcStreamDescription?: TCdcStreamDescription;
66
- PersQueueGroup?: TPersQueueGroupDescription;
67
- }
68
-
69
- export interface TDirEntry {
70
- Name?: string;
71
- /** uint64 */
72
- PathId?: string;
73
- /** uint64 */
74
- SchemeshardId?: string;
75
- PathType?: EPathType;
76
- CreateFinished?: boolean;
77
- /** uint64 */
78
- CreateTxId?: string;
79
- /** uint64 */
80
- CreateStep?: string;
81
- /** uint64 */
82
- ParentPathId?: string;
83
- PathState?: EPathState;
84
- Owner?: string;
85
- ACL?: string;
86
- EffectiveACL?: string;
87
- /** uint64 */
88
- PathVersion?: string;
89
- PathSubType?: EPathSubType;
90
- Version?: TPathVersion;
91
- }
92
-
93
- interface TDomainDescription {
94
- ProcessingParams?: TProcessingParams;
95
-
96
- DomainKey?: TDomainKey;
97
-
98
- StoragePools?: TStoragePool[];
99
-
100
- /** uint64 */
101
- PathsInside?: string;
102
- /** uint64 */
103
- PathsLimit?: string;
104
- /** uint64 */
105
- ShardsInside?: string;
106
- /** uint64 */
107
- ShardsLimit?: string;
108
-
109
- ResourcesDomainKey?: TDomainKey;
110
-
111
- DiskSpaceUsage?: TDiskSpaceUsage;
112
-
113
- /** uint64 */
114
- PQPartitionsInside?: string;
115
- /** uint64 */
116
- PQPartitionsLimit?: string;
117
-
118
- DomainState?: TDomainState;
119
-
120
- DeclaredSchemeQuotas?: TSchemeQuotas;
121
- DatabaseQuotas?: DatabaseQuotas;
122
- SecurityState?: TSecurityState;
123
- }
124
-
125
- interface TDomainKey {
126
- /** fixed64 */
127
- SchemeShard?: string;
128
- /** fixed64 */
129
- PathId?: string;
130
- }
131
-
132
- interface TProcessingParams {
133
- Version?: number;
134
- /** uint64 */
135
- PlanResolution?: string;
136
- /** fixed64 */
137
- Coordinators?: string[];
138
- /** uint64 */
139
- TimeCastBucketsPerMediator?: string;
140
- /** fixed64 */
141
- Mediators?: string[];
142
- /** fixed64 */
143
- SchemeShard?: string;
144
- /** fixed64 */
145
- Hive?: string;
146
- /** fixed64 */
147
- SysViewProcessor?: string;
148
- }
149
-
150
- interface TDomainState {
151
- DiskQuotaExceeded?: boolean;
152
- }
153
-
154
- interface TDiskSpaceUsage {
155
- Tables?: TTables;
156
- }
157
-
158
- interface TTables {
159
- /** uint64 */
160
- TotalSize?: string;
161
- /** uint64 */
162
- DataSize?: string;
163
- /** uint64 */
164
- IndexSize?: string;
165
- }
166
-
167
- interface TStoragePool {
168
- Name?: string;
169
- Kind?: string;
170
- }
171
-
172
- interface TSchemeQuotas {
173
- SchemeQuotas?: TSchemeQuota[];
174
- }
175
-
176
- interface TSchemeQuota {
177
- /** double */
178
- BucketSize?: number;
179
- /** uint64 */
180
- BucketSeconds?: string;
181
- }
182
-
183
- interface TSecurityState {
184
- PublicKeys?: TPublicKey[];
185
- Sids?: TSid[];
186
- Audience: string;
187
- }
188
-
189
- interface TPublicKey {
190
- /** uint64 */
191
- KeyId: string;
192
- KeyDataPEM: string;
193
- /** uint64 */
194
- ExpiresAt: string;
195
- }
196
-
197
- interface TSid {
198
- Name: string;
199
- Type: SidType;
200
-
201
- Hash: string;
202
- Members?: string[];
203
- }
204
-
205
- enum SidType {
206
- 'UNKNOWN' = 'UNKNOWN',
207
- 'USER' = 'USER',
208
- 'GROUP' = 'GROUP',
209
- }
210
-
211
- interface DatabaseQuotas {
212
- /** uint64 */
213
- // eslint-disable-next-line camelcase
214
- data_size_hard_quota: string;
215
-
216
- /** uint64 */
217
- // eslint-disable-next-line camelcase
218
- data_size_soft_quota: string;
219
-
220
- /** uint64 */
221
- // eslint-disable-next-line camelcase
222
- data_stream_shards_quota: string;
223
-
224
- /** uint64 */
225
- // eslint-disable-next-line camelcase
226
- data_stream_reserved_storage_quota: string;
227
-
228
- // eslint-disable-next-line camelcase
229
- ttl_min_run_internal_seconds: number;
230
- }
231
-
232
- export interface TTableDescription {
233
- Name?: string;
234
- /**
235
- * @deprecated LocalPathId
236
- *
237
- * uint64
238
- */
239
- Id_Deprecated?: string;
240
- Columns?: TColumnDescription[];
241
- KeyColumnNames?: string[];
242
- KeyColumnIds?: number[];
243
- /**
244
- * Describes uniform partitioning on first key column int on ranges.
245
- * The first key column must be of integer type
246
- */
247
- UniformPartitionsCount?: number;
248
-
249
- PartitionConfig?: TPartitionConfig;
250
- DropColumns?: TColumnDescription[];
251
- Path?: string;
252
-
253
- /** bytes */
254
- PartitionRangeBegin?: unknown;
255
- /** bytes */
256
- PartitionRangeEnd?: unknown;
257
- PartitionRangeBeginIsInclusive?: boolean;
258
- PartitionRangeEndIsInclusive?: boolean;
259
-
260
- CopyFromTable?: string;
261
- /** Boundaries for non-uniform split */
262
- SplitBoundary?: TSplitBoundary[];
263
-
264
- TableIndexes?: TIndexDescription[];
265
- /** uint64 */
266
- TableSchemaVersion?: string;
267
-
268
- PathId?: TPathID;
269
-
270
- TTLSettings?: TTTLSettings;
271
-
272
- /**
273
- * used with CopyFromTable
274
- *
275
- * default false
276
- */
277
- OmitFollowers?: boolean;
278
- /** default false */
279
- IsBackup?: boolean;
280
-
281
- CdcStreams?: TCdcStreamDescription[];
282
- Sequences?: TSequenceDescription[];
283
- }
284
-
285
- interface TColumnDescription {
286
- Name?: string;
287
- Type?: string;
288
- TypeId?: number;
289
- TypeInfo?: TTypeInfo;
290
- Id?: number;
291
- Family?: number;
292
- FamilyName?: string;
293
- /** Path to sequence for default values */
294
- DefaultFromSequence?: string;
295
- NotNull?: boolean;
296
- }
297
-
298
- interface TSplitBoundary {
299
- /** A tuple representing full key or key prefix */
300
- KeyPrefix?: unknown;
301
- /**
302
- * Or same as KeyPrefix but already serialized
303
- *
304
- * bytes
305
- */
306
- SerializedKeyPrefix?: unknown;
307
- }
308
-
309
- export interface TTTLSettings {
310
- Enabled?: TEnabled;
311
- Disabled?: {};
312
- UseTiering?: string;
313
- }
314
-
315
- interface TEnabled {
316
- ColumnName?: string;
317
- ExpireAfterSeconds?: number;
318
- ColumnUnit?: EUnit;
319
- SysSettings?: TSysSettings;
320
- }
321
-
322
- interface TSysSettings {
323
- /**
324
- * default 3600000000 (1 hour)
325
- *
326
- * uint64
327
- */
328
- RunInterval?: string;
329
- /**
330
- * default 300000000 (5 minutes)
331
- *
332
- * uint64
333
- */
334
- RetryInterval?: string;
335
- /** default 512000 */
336
- BatchMaxBytes?: number;
337
- /** default 1 */
338
- BatchMinKeys?: number;
339
- /** default 256 */
340
- BatchMaxKeys?: number;
341
- /**
342
- * zero means no limit
343
- *
344
- * default 0
345
- */
346
- MaxShardsInFlight?: number;
347
- }
348
-
349
- interface TSequenceDescription {
350
- Name?: string;
351
- /** sequence path id, assigned by schemeshard */
352
- PathId?: TPathID;
353
- /**
354
- * incremented every time sequence is altered
355
- *
356
- * uint64
357
- */
358
- Version?: string;
359
- /**
360
- * current sequenceshard, assigned by schemeshard
361
- *
362
- * uint64
363
- */
364
- SequenceShard?: string;
365
- /**
366
- * minimum value, defaults to 1 or Min<i64>
367
- *
368
- * sint64
369
- */
370
- MinValue?: string;
371
- /**
372
- * maximum value, defaults to Max<i64> or -1
373
- *
374
- * sint64
375
- */
376
- MaxValue?: string;
377
- /**
378
- * start value, defaults to MinValue
379
- *
380
- * sint64
381
- */
382
- StartValue?: string;
383
- /**
384
- * number of items to cache, defaults to 1
385
- *
386
- * uint64
387
- */
388
- Cache?: string;
389
- /**
390
- * increment at each call, defaults to 1
391
- *
392
- * sint64
393
- */
394
- Increment?: string;
395
- /** true when cycle on overflow is allowed */
396
- Cycle?: boolean;
397
- }
398
-
399
- export interface TPartitionConfig {
400
- /** One of the predefined policies*/
401
- NamedCompactionPolicy?: string;
402
- /** Customized policy */
403
- CompactionPolicy?: TCompactionPolicy;
404
- /** uint64 */
405
- FollowerCount?: string;
406
- /**
407
- * Cache size for the whole tablet including all user and system tables
408
- *
409
- * uint64
410
- */
411
- ExecutorCacheSize?: string;
412
- /**
413
- * if true followers can upgrade to leader, if false followers only handle reads
414
- *
415
- * default true
416
- */
417
- AllowFollowerPromotion?: boolean;
418
- /**
419
- * Maximum size in bytes that is allowed to be read by a single Tx
420
- *
421
- * uint64
422
- */
423
- TxReadSizeLimit?: string;
424
- /** @deprecated use FollowerGroups */
425
- CrossDataCenterFollowerCount?: number;
426
- /** for configuring erasure and disk categories */
427
- ChannelProfileId?: number;
428
- PartitioningPolicy?: TPartitioningPolicy;
429
- PipelineConfig?: TPipelineConfig;
430
- ColumnFamilies?: TFamilyDescription[];
431
- ResourceProfile?: string;
432
- DisableStatisticsCalculation?: boolean;
433
- /**
434
- * Build and use per-part bloom filter for fast key non-existence check
435
- *
436
- * default false
437
- */
438
- EnableFilterByKey?: boolean;
439
- /**
440
- * Commit log faster at the expense of bandwidth for cross-DC
441
- *
442
- * default true
443
- */
444
- ExecutorFastLogPolicy?: boolean;
445
- StorageRooms?: TStorageRoom[];
446
- /**
447
- * Use erase cache for faster iteration over erased rows
448
- *
449
- * default true
450
- */
451
- EnableEraseCache?: boolean;
452
- /**
453
- * Minimum number of erased rows worth caching
454
- *
455
- * default 16
456
- */
457
- EraseCacheMinRows?: number;
458
- /**
459
- * Maximum number of bytes to use for cached rows
460
- *
461
- * default 1MB
462
- */
463
- EraseCacheMaxBytes?: number;
464
- FreezeState?: EFreezeState;
465
- ShadowData?: boolean;
466
- /** 0 or 1 items */
467
- FollowerGroups?: TFollowerGroup[];
468
- /** uint64 milliseconds */
469
- KeepSnapshotTimeout?: string;
470
- }
471
-
472
- enum EPurpose {
473
- SysLog,
474
- Log,
475
- Data,
476
- External,
477
- }
478
-
479
- interface TChannelPurpose {
480
- Purpose?: EPurpose;
481
- Channel?: number;
482
- }
483
-
484
- interface TStorageRoom {
485
- RoomId?: number;
486
- Explanation?: TChannelPurpose[];
487
- }
488
-
489
- interface TPipelineConfig {
490
- /** default 8 */
491
- NumActiveTx?: number;
492
- DataTxCacheSize?: number;
493
- /** default true */
494
- EnableOutOfOrder?: boolean;
495
- DisableImmediate?: boolean;
496
- EnableSoftUpdates?: boolean;
497
- }
498
- interface TFamilyDescription {
499
- Id?: number;
500
- Room?: number;
501
- /** @deprecated use ColumnCodec */
502
- Codec?: number;
503
- /** @deprecated use ColumnCache */
504
- InMemory?: boolean;
505
- Name?: string;
506
- ColumnCodec?: EColumnCodec;
507
- ColumnCache?: EColumnCache;
508
- /** @deprecated use StorageConfig */
509
- Storage?: EColumnStorage;
510
- StorageConfig?: TStorageConfig;
511
- }
512
-
513
- interface TStorageConfig {
514
- SysLog?: TStorageSettings;
515
- Log?: TStorageSettings;
516
- Data?: TStorageSettings;
517
- External?: TStorageSettings;
518
- DataThreshold?: number;
519
- ExternalThreshold?: number;
520
- }
521
-
522
- enum EColumnCache {
523
- ColumnCacheNone,
524
- ColumnCacheOnce,
525
- ColumnCacheEver,
526
- }
527
-
528
- enum EColumnStorage {
529
- ColumnStorage1,
530
- ColumnStorage2,
531
- ColumnStorage1Ext1,
532
- ColumnStorage1Ext2,
533
- ColumnStorage2Ext1,
534
- ColumnStorage2Ext2,
535
- ColumnStorage1Med2Ext2,
536
- ColumnStorage2Med2Ext2,
537
- ColumnStorageTest_1_2_1k,
538
- }
539
-
540
- enum EFreezeState {
541
- Unspecified,
542
- Freeze,
543
- Unfreeze,
544
- }
545
-
546
- interface TPartitioningPolicy {
547
- /**
548
- * Partition gets split when this threshold is exceeded
549
- *
550
- * uint64
551
- */
552
- SizeToSplit?: string;
553
-
554
- MinPartitionsCount?: number;
555
- MaxPartitionsCount?: number;
556
-
557
- FastSplitSettings?: TFastSplitSettings;
558
- SplitByLoadSettings?: TSplitByLoadSettings;
559
- }
560
-
561
- interface TFastSplitSettings {
562
- /** uint64 */
563
- SizeThreshold?: string;
564
- /** uint64 */
565
- RowCountThreshold?: string;
566
- CpuPercentageThreshold?: number;
567
- }
568
-
569
- interface TSplitByLoadSettings {
570
- Enabled?: boolean;
571
- CpuPercentageThreshold?: number;
572
- }
573
-
574
- interface TCompactionPolicy {
575
- /** uint64 */
576
- InMemSizeToSnapshot?: string;
577
- /** snapshot inmem state when size AND steps from last snapshot passed */
578
- InMemStepsToSnapshot?: number;
579
- InMemForceStepsToSnapshot?: number;
580
- /** uint64 */
581
- InMemForceSizeToSnapshot?: string;
582
- /** @deprecated default 0 */
583
- InMemCompactionBrokerQueue?: number;
584
- /** uint64 default 67108864 */
585
- ReadAheadHiThreshold?: string;
586
- /** uint64 default 16777216 */
587
- ReadAheadLoThreshold?: string;
588
- /** default 7168 */
589
- MinDataPageSize?: number;
590
- /** @deprecated default 0*/
591
- SnapBrokerQueue?: number;
592
- /** @deprecated default 1*/
593
- BackupBrokerQueue?: number;
594
- /** default 5 */
595
- DefaultTaskPriority?: number;
596
- BackgroundSnapshotPolicy?: TBackgroundPolicy;
597
- InMemResourceBrokerTask?: string;
598
- SnapshotResourceBrokerTask?: string;
599
- BackupResourceBrokerTask?: string;
600
- /** uint64 */
601
- LogOverheadSizeToSnapshot?: string;
602
- LogOverheadCountToSnapshot?: number;
603
- DroppedRowsPercentToCompact?: number;
604
- /** default CompactionStrategyUnset */
605
- CompactionStrategy?: ECompactionStrategy;
606
- ShardPolicy?: TShardPolicy;
607
- KeepEraseMarkers?: boolean;
608
- Generation?: TGenerationPolicy[];
609
- }
610
-
611
- enum ECompactionStrategy {
612
- CompactionStrategyUnset,
613
- CompactionStrategyGenerational,
614
- CompactionStrategySharded,
615
- }
616
-
617
- interface TShardPolicy {
618
- /**
619
- * Adjacent shards smaller than this will be merged
620
- *
621
- * default 33554432
622
- *
623
- * uint64
624
- */
625
- MinShardSize?: string;
626
- /**
627
- * Shards bigger than this will split in two or more pieces
628
- *
629
- * default 134217728
630
- *
631
- * uint64
632
- */
633
- MaxShardSize?: string;
634
- /**
635
- * Slices smaller than this will get prioritized compaction
636
- *
637
- * default 2097152
638
- *
639
- * uint64
640
- */
641
- MinSliceSize?: string;
642
- /**
643
- * Level will be compacted when there are more than this number of slices
644
- *
645
- * default 256
646
- */
647
- MaxSlicesPerLevel?: number;
648
- /**
649
- * Shard will be compacted when there are more than this number of levels
650
- *
651
- * default 16
652
- */
653
- MaxTotalLevels?: number;
654
- /**
655
- * Shard will avoid compacting less than this number of levels
656
- *
657
- * default 2
658
- */
659
- MinLevelsToCompact?: number;
660
- /**
661
- * Level will be compacted when it has X% of its data in upper levels
662
- *
663
- * default 100
664
- */
665
- NewDataPercentToCompact?: number;
666
- /**
667
- * Level will be compacted when it has X% of its rows in upper levels
668
- *
669
- * default 0
670
- */
671
- NewRowsPercentToCompact?: number;
672
- /**
673
- * Resource broker task type for compactions
674
- *
675
- * default 'compaction_gen1'
676
- */
677
- ResourceBrokerTask?: string;
678
- /**
679
- * Base priority for compaction tasks
680
- *
681
- * default 1000
682
- */
683
- TaskPriorityBase?: number;
684
- /**
685
- * Task priority will be increased for every N levels over the minimum
686
- *
687
- * default 1
688
- */
689
- TaskPriorityLevelsBoost?: number;
690
- /**
691
- * Task priority will be decreased for every N bytes of input
692
- *
693
- * default 4194304
694
- *
695
- * uint64
696
- */
697
- TaskPrioritySizePenalty?: string;
698
- /**
699
- * Part data may be reused, unless it would leave this much garbage
700
- *
701
- * default 20
702
- */
703
- MaxGarbagePercentToReuse?: number;
704
- /**
705
- * Minimum slice that that may be reused
706
- *
707
- * default 524288
708
- *
709
- * uint64
710
- */
711
- MinSliceSizeToReuse?: string;
712
- }
713
-
714
- interface TGenerationPolicy {
715
- GenerationId?: number;
716
- /** uint64 */
717
- SizeToCompact?: string;
718
- CountToCompact?: number;
719
- ForceCountToCompact?: number;
720
- /** uint64 */
721
- ForceSizeToCompact?: string;
722
- /** @deprecated */
723
- CompactionBrokerQueue?: number;
724
- KeepInCache?: boolean;
725
- BackgroundCompactionPolicy?: TBackgroundPolicy;
726
- ResourceBrokerTask?: string;
727
- ExtraCompactionPercent?: number;
728
- /** uint64 */
729
- ExtraCompactionMinSize?: string;
730
- ExtraCompactionExpPercent?: number;
731
- /** uint64 */
732
- ExtraCompactionExpMaxSize?: string;
733
- /** uint64 */
734
- UpliftPartSize?: string;
735
- }
736
-
737
- interface TBackgroundPolicy {
738
- /**
739
- * How much (in %) of forced compaction criteria should be met to submit background task.
740
- *
741
- * default 101 - no background compaction by default
742
- */
743
- Threshold?: number;
744
- /**
745
- * Base background compaction priority value (less priority means more important task).
746
- * Value is used to compute real task priority basing on compaction criteria, time in queue etc.
747
- *
748
- * default 100
749
- */
750
- PriorityBase?: number;
751
-
752
- /**
753
- * Submitted background task may become more prioritized over time.
754
- * New priority is computed as priority /= max(log(elapsed_seconds) * factor, 1);
755
- *
756
- * default 1.0
757
- *
758
- * double
759
- */
760
- TimeFactor?: number;
761
-
762
- /** @deprecated default 5*/
763
- TaskType?: number;
764
- ResourceBrokerTask?: string;
765
- }
766
-
767
- export interface TFollowerGroup {
768
- FollowerCount?: number;
769
- AllowLeaderPromotion?: boolean;
770
- AllowClientRead?: boolean;
771
- AllowedNodeIDs?: number[];
772
- /** @deprecated use AllowedDataCenters */
773
- AllowedDataCenterNumIDs?: number[];
774
- RequireAllDataCenters?: boolean;
775
- LocalNodeOnly?: boolean;
776
- RequireDifferentNodes?: boolean;
777
- FollowerCountPerDataCenter?: boolean; // multiplies FollowerCount by number of DataCenters
778
- AllowedDataCenters?: string[];
779
- }
780
-
781
- export interface TTableStats {
782
- /** uint64 */
783
- DataSize?: string;
784
- /** uint64 */
785
- RowCount?: string;
786
- /** uint64 */
787
- IndexSize?: string;
788
- /** uint64 */
789
- InMemSize?: string;
790
-
791
- /**
792
- * uint64
793
- * unix time in millisec
794
- */
795
- LastAccessTime?: string;
796
- /**
797
- * uint64
798
- * unix time in millisec
799
- */
800
- LastUpdateTime?: string;
801
-
802
- RowCountHistogram?: THistogram;
803
- DataSizeHistogram?: THistogram;
804
-
805
- /** uint64 */
806
- ImmediateTxCompleted?: string;
807
- /** uint64 */
808
- PlannedTxCompleted?: string;
809
- /** uint64 */
810
- TxRejectedByOverload?: string;
811
- /** uint64 */
812
- TxRejectedBySpace?: string;
813
- /** uint64 */
814
- TxCompleteLagMsec?: string;
815
- /** uint64 */
816
- InFlightTxCount?: string;
817
-
818
- /** uint64 */
819
- RowUpdates?: string;
820
- /** uint64 */
821
- RowDeletes?: string;
822
- /** uint64 */
823
- RowReads?: string;
824
- /** uint64 */
825
- RangeReads?: string;
826
- /** uint64 */
827
- RangeReadRows?: string;
828
-
829
- /** uint64 */
830
- PartCount?: string;
831
-
832
- KeyAccessSample?: THistogram;
833
-
834
- /** uint64 */
835
- SearchHeight?: string;
836
-
837
- /**
838
- * uint64
839
- * seconds since epoch
840
- */
841
- LastFullCompactionTs?: string;
842
-
843
- // i.e. this shard lent to other shards
844
- HasLoanedParts?: boolean;
845
- }
846
-
847
- interface THistogram {
848
- Buckets?: THistogramBucket[];
849
- }
850
-
851
- interface THistogramBucket {
852
- Key?: string;
853
- /** uint64 */
854
- Value?: string;
855
- }
856
-
857
- export interface TIndexDescription {
858
- Name?: string;
859
- /** uint64 */
860
- LocalPathId?: string;
861
-
862
- Type?: EIndexType;
863
- State?: EIndexState;
864
-
865
- KeyColumnNames?: string[];
866
-
867
- /** uint64 */
868
- SchemaVersion?: string;
869
-
870
- /** uint64 */
871
- PathOwnerId?: string;
872
-
873
- DataColumnNames?: string[];
874
- /** uint64 */
875
- DataSize?: string;
876
- }
877
-
878
- enum ECdcStreamMode {
879
- ECdcStreamModeInvalid = 'ECdcStreamModeInvalid',
880
- ECdcStreamModeKeysOnly = 'ECdcStreamModeKeysOnly',
881
- ECdcStreamModeUpdate = 'ECdcStreamModeUpdate',
882
- ECdcStreamModeNewImage = 'ECdcStreamModeNewImage',
883
- ECdcStreamModeOldImage = 'ECdcStreamModeOldImage',
884
- ECdcStreamModeNewAndOldImages = 'ECdcStreamModeNewAndOldImages',
885
- }
886
-
887
- enum ECdcStreamFormat {
888
- ECdcStreamFormatInvalid = 'ECdcStreamFormatInvalid',
889
- ECdcStreamFormatProto = 'ECdcStreamFormatProto',
890
- ECdcStreamFormatJson = 'ECdcStreamFormatJson',
891
- }
892
-
893
- enum ECdcStreamState {
894
- ECdcStreamStateInvalid = 'ECdcStreamStateInvalid',
895
- ECdcStreamStateReady = 'ECdcStreamStateReady',
896
- ECdcStreamStateDisabled = 'ECdcStreamStateDisabled',
897
- }
898
-
899
- interface TPathID {
900
- /** fixed64 */
901
- OwnerId?: string;
902
- /** uint64 */
903
- LocalId?: string;
904
- }
905
-
906
- export interface TCdcStreamDescription {
907
- Name?: string;
908
- Mode?: ECdcStreamMode;
909
- Format?: ECdcStreamFormat;
910
- PathId?: TPathID;
911
- State?: ECdcStreamState;
912
- /** uint64 */
913
- SchemaVersion?: string;
914
- }
915
-
916
- // incomplete
917
- export enum EPathType {
918
- EPathTypeInvalid = 'EPathTypeInvalid',
919
- EPathTypeDir = 'EPathTypeDir',
920
- EPathTypeTable = 'EPathTypeTable',
921
- EPathTypePersQueueGroup = 'EPathTypePersQueueGroup',
922
- EPathTypeSubDomain = 'EPathTypeSubDomain',
923
-
924
- EPathTypeTableIndex = 'EPathTypeTableIndex',
925
- EPathTypeExtSubDomain = 'EPathTypeExtSubDomain',
926
-
927
- EPathTypeColumnStore = 'EPathTypeColumnStore',
928
- EPathTypeColumnTable = 'EPathTypeColumnTable',
929
- EPathTypeCdcStream = 'EPathTypeCdcStream',
930
- }
931
-
932
- export enum EPathSubType {
933
- EPathSubTypeEmpty = 'EPathSubTypeEmpty',
934
- EPathSubTypeSyncIndexImplTable = 'EPathSubTypeSyncIndexImplTable',
935
- EPathSubTypeAsyncIndexImplTable = 'EPathSubTypeAsyncIndexImplTable',
936
- EPathSubTypeStreamImpl = 'EPathSubTypeStreamImpl',
937
- }
938
-
939
- enum EPathState {
940
- EPathStateNotExist = 'EPathStateNotExist',
941
- EPathStateNoChanges = 'EPathStateNoChanges',
942
- EPathStateCreate = 'EPathStateCreate',
943
- EPathStateAlter = 'EPathStateAlter',
944
- EPathStateDrop = 'EPathStateDrop',
945
- EPathStateCopying = 'EPathStateCopying',
946
- EPathStateBackup = 'EPathStateBackup',
947
- EPathStateUpgrade = 'EPathStateUpgrade',
948
- EPathStateMigrated = 'EPathStateMigrated',
949
- EPathStateRestore = 'EPathStateRestore',
950
- EPathStateMoving = 'EPathStateMoving',
951
- }
952
-
953
- enum EIndexType {
954
- EIndexTypeInvalid = 'EIndexTypeInvalid',
955
- EIndexTypeGlobal = 'EIndexTypeGlobal',
956
- EIndexTypeGlobalAsync = 'EIndexTypeGlobalAsync',
957
- }
958
-
959
- enum EIndexState {
960
- EIndexStateInvalid = 'EIndexStateInvalid',
961
- EIndexStateReady = 'EIndexStateReady',
962
- EIndexStateNotReady = 'EIndexStateNotReady',
963
- EIndexStateWriteOnly = 'EIndexStateWriteOnly',
964
- }
965
-
966
- // incomplete
967
- interface TPathVersion {
968
- /** uint64 */
969
- GeneralVersion?: string;
970
- }
971
-
972
- interface TPartitionKeyRange {
973
- // Inclusive left border. Emptiness means -inf.
974
- FromBound?: string;
975
- // Exclusive right border. Emptiness means +inf.
976
- ToBound?: string;
977
- }
978
-
979
- interface TPartition {
980
- PartitionId?: number;
981
- /** uint64 */
982
- TabletId?: string;
983
- KeyRange?: TPartitionKeyRange;
984
- }
985
-
986
- interface TPartitionToAdd {
987
- PartitionId?: number;
988
- GroupId?: number;
989
- }
990
-
991
- interface TCodecs {
992
- /** int64 */
993
- Ids?: string[];
994
- Codecs?: string[];
995
- }
996
-
997
- interface TKeyComponentSchema {
998
- Name?: string;
999
- TypeId?: number;
1000
- }
1001
-
1002
- export enum EMeteringMode {
1003
- METERING_MODE_RESERVED_CAPACITY = 'METERING_MODE_RESERVED_CAPACITY',
1004
- METERING_MODE_REQUEST_UNITS = 'METERING_MODE_REQUEST_UNITS',
1005
- }
1006
-
1007
- interface TReadQuota {
1008
- ClientId?: string;
1009
- /** uint64 */
1010
- SpeedInBytesPerSecond?: string;
1011
- /** uint64 */
1012
- BurstSize?: string;
1013
- }
1014
-
1015
- interface TChannelProfile {
1016
- PoolKind?: string;
1017
- /** uint64 */
1018
- Size?: string;
1019
- ReadIops?: number;
1020
- ReadBandwidth?: number;
1021
- WriteIops?: number;
1022
- WriteBandwidth?: number;
1023
- }
1024
-
1025
- interface IamCredentials {
1026
- Endpoint?: string;
1027
- ServiceAccountKey?: string;
1028
- }
1029
-
1030
- interface TCredentials {
1031
- OauthToken?: string;
1032
- JwtParams?: string;
1033
- Iam?: IamCredentials;
1034
- }
1035
-
1036
- interface TMirrorPartitionConfig {
1037
- Endpoint?: string;
1038
- EndpointPort?: number;
1039
- Topic?: string;
1040
- Consumer?: string;
1041
- /** uint64 */
1042
- ReadFromTimestampsMs?: string;
1043
- Credentials?: TCredentials;
1044
- Database?: string;
1045
- UseSecureConnection?: boolean;
1046
- SyncWriteTime?: boolean;
1047
- }
1048
-
1049
- export interface TPQPartitionConfig {
1050
- MaxCountInPartition?: number;
1051
- /** int64 */
1052
- MaxSizeInPartition?: string;
1053
- LifetimeSeconds: number;
1054
- /** uint64 */
1055
- StorageLimitBytes?: string;
1056
-
1057
- ImportantClientId?: string[];
1058
- LowWatermark?: number;
1059
- SourceIdLifetimeSeconds?: number;
1060
- SourceIdMaxCounts?: number;
1061
-
1062
- /** uint64 */
1063
- WriteSpeedInBytesPerSecond?: string;
1064
- /** uint64 */
1065
- BurstSize?: string;
1066
-
1067
- ReadQuota?: TReadQuota[];
1068
- /** uint64 */
1069
- MaxWriteInflightSize?: string;
1070
- /** uint64 */
1071
- BorderWriteInflightSize?: string;
1072
-
1073
- NumChannels?: number;
1074
-
1075
- TotalPartitions?: number;
1076
-
1077
- ExplicitChannelProfiles?: TChannelProfile[];
1078
-
1079
- MirrorFrom?: TMirrorPartitionConfig;
1080
- }
1081
-
1082
- export interface TPQTabletConfig {
1083
- /** uint64 */
1084
- CacheSize?: string;
1085
- PartitionConfig: TPQPartitionConfig;
1086
- /** @deprecated use Partitions */
1087
- PartitionIds?: number[];
1088
- TopicName?: string;
1089
- Version?: number;
1090
- LocalDC?: boolean;
1091
- RequireAuthWrite?: boolean;
1092
- RequireAuthRead?: boolean;
1093
- Producer?: string;
1094
- Ident?: string;
1095
- Topic?: string;
1096
- DC?: string;
1097
-
1098
- ReadRules?: string[];
1099
- /** uint64[] */
1100
- ReadFromTimestampsMs?: number[];
1101
- /** uint64[] */
1102
- ConsumerFormatVersions?: number[];
1103
-
1104
- ConsumerCodecs?: TCodecs[];
1105
- ReadRuleServiceTypes?: string;
1106
-
1107
- /** uint64 */
1108
- FormatVersion?: string;
1109
- Codecs?: TCodecs;
1110
-
1111
- /** uint64[] */
1112
- ReadRuleVersions?: string[];
1113
- /** uint64[] */
1114
- ReadRuleGenerations?: string[];
1115
-
1116
- TopicPath?: string;
1117
-
1118
- YcCloudId?: string;
1119
- YcFolderId?: string;
1120
- YdbDatabaseId?: string;
1121
- YdbDatabasePath?: string;
1122
- FederationAccount?: string;
1123
-
1124
- PartitionKeySchema?: TKeyComponentSchema[];
1125
-
1126
- Partitions?: TPartition[];
1127
-
1128
- MeteringMode?: EMeteringMode;
1129
- }
1130
-
1131
- interface TMessageGroup {
1132
- // Id of message group (SourceId)
1133
- Id?: string;
1134
- // Range of the key to which it is allowed to write.
1135
- KeyRange?: TPartitionKeyRange;
1136
- }
1137
-
1138
- interface TBootstrapConfig {
1139
- ExplicitMessageGroups?: TMessageGroup[];
1140
- }
1141
-
1142
- export interface TPersQueueGroupDescription {
1143
- Name: string;
1144
- /** uint64 */
1145
- PathId?: string;
1146
- TotalGroupCount: number;
1147
-
1148
- PartitionsToAdd?: TPartitionToAdd[];
1149
- PartitionsToDelete?: number[];
1150
- NextPartitionId?: number;
1151
- PartitionPerTablet?: number;
1152
- PQTabletConfig: TPQTabletConfig;
1153
- Partitions?: TPartition[];
1154
- /** uint64 */
1155
- AlterVersion?: string;
1156
- /** uint64 */
1157
- BalancerTabletID?: string;
1158
-
1159
- PartitionBoundaries?: any;
1160
-
1161
- BootstrapConfig?: TBootstrapConfig;
1162
- }
1163
-
1164
- export interface TColumnTableDescription {
1165
- Name?: string;
1166
-
1167
- Schema?: TColumnTableSchema;
1168
- TtlSettings?: TColumnDataLifeCycle;
1169
-
1170
- SchemaPresetId?: number;
1171
- SchemaPresetName?: string;
1172
-
1173
- ColumnStorePathId?: TPathID;
1174
-
1175
- ColumnShardCount?: number;
1176
- Sharding?: TColumnTableSharding;
1177
-
1178
- /** uint64 */
1179
- SchemaPresetVersionAdj?: string;
1180
- /** uint64 */
1181
- TtlSettingsPresetVersionAdj?: string;
1182
-
1183
- StorageConfig?: TColumnStorageConfig;
1184
- }
1185
-
1186
- interface TColumnTableSchema {
1187
- Columns?: TOlapColumnDescription[];
1188
- KeyColumnNames?: string[];
1189
- Engine?: EColumnTableEngine;
1190
- NextColumnId?: number;
1191
-
1192
- /** uint64 */
1193
- Version?: string;
1194
-
1195
- DefaultCompression?: TCompressionOptions;
1196
- EnableTiering?: boolean;
1197
- }
1198
-
1199
- interface TOlapColumnDescription {
1200
- Id?: number;
1201
- Name?: string;
1202
- Type?: string;
1203
- TypeId?: number;
1204
- TypeInfo?: TTypeInfo;
1205
- }
1206
-
1207
- interface TTypeInfo {
1208
- PgTypeId?: number;
1209
- }
1210
-
1211
- enum EColumnTableEngine {
1212
- COLUMN_ENGINE_NONE = 'COLUMN_ENGINE_NONE',
1213
- COLUMN_ENGINE_REPLACING_TIMESERIES = 'COLUMN_ENGINE_REPLACING_TIMESERIES',
1214
- }
1215
-
1216
- interface TCompressionOptions {
1217
- CompressionCodec?: EColumnCodec;
1218
- CompressionLevel?: number;
1219
- }
1220
-
1221
- enum EColumnCodec {
1222
- ColumnCodecPlain = 'ColumnCodecPlain',
1223
- ColumnCodecLZ4 = 'ColumnCodecLZ4',
1224
- ColumnCodecZSTD = 'ColumnCodecZSTD',
1225
- }
1226
-
1227
- export interface TColumnDataLifeCycle {
1228
- Enabled?: TTtl;
1229
- Disabled?: {};
1230
- Tiering?: TStorageTiering;
1231
-
1232
- /** uint64 */
1233
- Version?: string;
1234
- }
1235
-
1236
- interface TTtl {
1237
- ColumnName?: string;
1238
-
1239
- ExpireAfterSeconds?: number;
1240
-
1241
- /** uint64 */
1242
- ExpireAfterBytes?: string;
1243
-
1244
- ColumnUnit?: EUnit;
1245
- }
1246
-
1247
- interface TStorageTier {
1248
- Name?: string;
1249
- Eviction?: TTtl;
1250
- }
1251
- interface TStorageTiering {
1252
- Tiers?: TStorageTier[];
1253
- }
1254
-
1255
- enum EUnit {
1256
- UNIT_AUTO = 'UNIT_AUTO',
1257
- UNIT_SECONDS = 'UNIT_SECONDS',
1258
- UNIT_MILLISECONDS = 'UNIT_MILLISECONDS',
1259
- UNIT_MICROSECONDS = 'UNIT_MICROSECONDS',
1260
- UNIT_NANOSECONDS = 'UNIT_NANOSECONDS',
1261
- }
1262
-
1263
- interface TColumnTableSharding {
1264
- /** uint64 */
1265
- Version?: string;
1266
-
1267
- /** uint64 */
1268
- ColumnShards?: string[];
1269
-
1270
- /** uint64 */
1271
- AdditionalColumnShards?: string[];
1272
-
1273
- UniquePrimaryKey?: boolean;
1274
-
1275
- RandomSharding?: {};
1276
- HashSharding?: THashSharding;
1277
- }
1278
-
1279
- interface THashSharding {
1280
- Function?: EHashFunction;
1281
- Columns?: string[];
1282
- UniqueShardKey?: boolean;
1283
- ActiveShardsCount?: number;
1284
- }
1285
- enum EHashFunction {
1286
- HASH_FUNCTION_MODULO_N = 'HASH_FUNCTION_MODULO_N',
1287
- HASH_FUNCTION_CLOUD_LOGS = 'HASH_FUNCTION_CLOUD_LOGS',
1288
- }
1289
- interface TColumnStorageConfig {
1290
- SysLog?: TStorageSettings;
1291
- Log?: TStorageSettings;
1292
- Data?: TStorageSettings;
1293
- DataChannelCount?: number;
1294
- }
1295
- interface TStorageSettings {
1296
- PreferredPoolKind?: string;
1297
- AllowOtherKinds?: boolean;
1298
- }
1299
- export interface TColumnStoreDescription {
1300
- Name?: string;
1301
- ColumnShardCount?: number;
1302
-
1303
- /** uint64 */
1304
- ColumnShards?: string[];
1305
-
1306
- SchemaPresets?: TColumnTableSchemaPreset[];
1307
- StorageConfig?: TColumnStorageConfig;
1308
-
1309
- NextSchemaPresetId?: number;
1310
- NextTtlSettingsPresetId?: number;
1311
- }
1312
-
1313
- interface TColumnTableSchemaPreset {
1314
- Id?: number;
1315
- Name?: string;
1316
- Schema?: TColumnTableSchema;
1317
- }
1318
-
1319
- interface TTablePartition {
1320
- /** bytes */
1321
- EndOfRangeKeyPrefix?: unknown;
1322
- IsPoint?: boolean;
1323
- IsInclusive?: boolean;
1324
- /** uint64 */
1325
- DatashardId?: string;
1326
- }