Skip to content

Commit df3e9bf

Browse files
committed
fixed raw values not nullable
1 parent a0daf4f commit df3e9bf

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

specification/_types/Stats.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class DocStats {
113113
* Returns the total size in bytes of all documents in this stats.
114114
* This value may be more reliable than store_stats.size_in_bytes in estimating the index size.
115115
*/
116-
total_size_in_bytes?: long
116+
total_size_in_bytes: long
117117
/**
118118
* Human readable total_size_in_bytes
119119
*/
@@ -129,13 +129,13 @@ export class FielddataStats {
129129
}
130130

131131
export class GlobalOrdinalsStats {
132-
build_time_in_millis?: UnitMillis
132+
build_time_in_millis: UnitMillis
133133
build_time?: string
134134
fields?: Dictionary<Name, GlobalOrdinalFieldStats>
135135
}
136136

137137
export class GlobalOrdinalFieldStats {
138-
build_time_in_millis?: UnitMillis
138+
build_time_in_millis: UnitMillis
139139
build_time?: string
140140
shard_max_value_count: long
141141
}

specification/_types/common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ export type ExpandWildcards = ExpandWildcard | ExpandWildcard[]
215215

216216
/**
217217
* Health status of the cluster, based on the state of its primary and replica shards.
218-
* @non_exhaustive
219218
*/
220219
export enum HealthStatus {
221220
// ES will send this enum as upper or lowercase depending on the APIs

specification/cluster/stats/types.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,15 @@ export class SparseVectorStats {
164164
}
165165

166166
export class DenseVectorOffHeapStats {
167-
total_size_bytes?: long
167+
total_size_bytes: long
168168
total_size?: ByteSize
169-
total_veb_size_bytes?: long
169+
total_veb_size_bytes: long
170170
total_veb_size?: ByteSize
171-
total_vec_size_bytes?: long
171+
total_vec_size_bytes: long
172172
total_vec_size?: ByteSize
173-
total_veq_size_bytes?: long
173+
total_veq_size_bytes: long
174174
total_veq_size?: ByteSize
175-
total_vex_size_bytes?: long
175+
total_vex_size_bytes: long
176176
total_vex_size?: ByteSize
177177
fielddata?: Dictionary<string, Dictionary<string, long>>
178178
}
@@ -359,7 +359,7 @@ export class SynonymsStats {
359359
export class IndicesVersions {
360360
index_count: integer
361361
primary_shard_count: integer
362-
total_primary_bytes?: long
362+
total_primary_bytes: long
363363
total_primary_size?: ByteSize
364364
version: VersionString
365365
}
@@ -373,7 +373,7 @@ export class ClusterJvm {
373373
/**
374374
* Uptime duration, in milliseconds, since JVM last started.
375375
*/
376-
max_uptime_in_millis?: DurationValue<UnitMillis>
376+
max_uptime_in_millis: DurationValue<UnitMillis>
377377
/**
378378
* Uptime duration since JVM last started.
379379
*/
@@ -396,15 +396,15 @@ export class ClusterJvmMemory {
396396
/**
397397
* Maximum amount of memory, in bytes, available for use by the heap across all selected nodes.
398398
*/
399-
heap_max_in_bytes?: long
399+
heap_max_in_bytes: long
400400
/**
401401
* Maximum amount of memory available for use by the heap across all selected nodes.
402402
*/
403403
heap_max?: ByteSize
404404
/**
405405
* Memory, in bytes, currently in use by the heap across all selected nodes.
406406
*/
407-
heap_used_in_bytes?: long
407+
heap_used_in_bytes: long
408408
/**
409409
* Memory currently in use by the heap across all selected nodes.
410410
*/
@@ -664,7 +664,7 @@ export class SnapshotCurrentCounts {
664664

665665
export class PerRepositoryStats {
666666
type: string
667-
oldest_start_time_millis?: UnitMillis
667+
oldest_start_time_millis: UnitMillis
668668
oldest_start_time?: DateFormat
669669
current_counts: RepositoryStatsCurrentCounts
670670
}
@@ -729,7 +729,7 @@ export class OperatingSystemMemoryInfo {
729729
/**
730730
* Amount, in bytes, of free physical memory across all selected nodes.
731731
*/
732-
free_in_bytes?: long
732+
free_in_bytes: long
733733
/**
734734
* Amount of free physical memory across all selected nodes.
735735
*/
@@ -742,7 +742,7 @@ export class OperatingSystemMemoryInfo {
742742
/**
743743
* Total amount, in bytes, of physical memory across all selected nodes.
744744
*/
745-
total_in_bytes?: long
745+
total_in_bytes: long
746746
/**
747747
* Total amount of physical memory across all selected nodes.
748748
*/
@@ -751,7 +751,7 @@ export class OperatingSystemMemoryInfo {
751751
/**
752752
* Amount, in bytes, of physical memory in use across all selected nodes.
753753
*/
754-
used_in_bytes?: long
754+
used_in_bytes: long
755755
/**
756756
* Amount of physical memory in use across all selected nodes.
757757
*/

0 commit comments

Comments
 (0)