Skip to content

Commit 6218e5b

Browse files
authored
Fix cat allocation API response (#2847)
1 parent e171d9f commit 6218e5b

File tree

5 files changed

+88
-82
lines changed

5 files changed

+88
-82
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 12 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 25 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cat/allocation/types.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* under the License.
1818
*/
1919

20+
import { Stringified } from '@spec_utils/Stringified'
2021
import { ByteSize } from '@_types/common'
2122
import { Host, Ip } from '@_types/Networking'
2223
import { double, Percentage } from '@_types/Numeric'
@@ -26,73 +27,73 @@ export class AllocationRecord {
2627
* Number of primary and replica shards assigned to the node.
2728
* @aliases s
2829
*/
29-
shards: string
30+
shards?: string
3031

3132
/**
3233
* Amount of shards that are scheduled to be moved elsewhere in the cluster or -1 other than desired balance allocator is used
3334
*/
34-
'shards.undesired': string | null
35+
'shards.undesired'?: string | null
3536

3637
/**
3738
* Sum of index write load forecasts
3839
* @aliases wlf,writeLoadForecast
3940
*/
40-
'write_load.forecast': double | null
41+
'write_load.forecast'?: Stringified<double> | null
4142

4243
/**
4344
* Sum of shard size forecasts
4445
* @aliases dif,diskIndicesForecast
4546
*/
46-
'disk.indices.forecast': ByteSize | null
47+
'disk.indices.forecast'?: ByteSize | null
4748
/**
4849
* Disk space used by the node’s shards. Does not include disk space for the translog or unassigned shards.
4950
* IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.
5051
* @aliases di,diskIndices
5152
*/
52-
'disk.indices': ByteSize | null
53+
'disk.indices'?: ByteSize | null
5354
/**
5455
* Total disk space in use.
5556
* Elasticsearch retrieves this metric from the node’s operating system (OS).
5657
* The metric includes disk space for: Elasticsearch, including the translog and unassigned shards; the node’s operating system; any other applications or files on the node.
5758
* Unlike `disk.indices`, this metric does not double-count disk space for hard-linked files.
5859
* @aliases du,diskUsed
5960
*/
60-
'disk.used': ByteSize | null
61+
'disk.used'?: ByteSize | null
6162
/**
6263
* Free disk space available to Elasticsearch.
6364
* Elasticsearch retrieves this metric from the node’s operating system.
6465
* Disk-based shard allocation uses this metric to assign shards to nodes based on available disk space.
6566
* @aliases da,diskAvail
6667
*/
67-
'disk.avail': ByteSize | null
68+
'disk.avail'?: ByteSize | null
6869
/**
6970
* Total disk space for the node, including in-use and available space.
7071
* @aliases dt,diskTotal
7172
*/
72-
'disk.total': ByteSize | null
73+
'disk.total'?: ByteSize | null
7374
/**
7475
* Total percentage of disk space in use. Calculated as `disk.used / disk.total`.
7576
* @aliases dp,diskPercent
7677
*/
77-
'disk.percent': Percentage | null
78+
'disk.percent'?: Percentage | null
7879
/**
7980
* Network host for the node. Set using the `network.host` setting.
8081
* @aliases h
8182
*/
82-
host: Host | null
83+
host?: Host | null
8384
/**
8485
* IP address and port for the node.
8586
*/
86-
ip: Ip | null
87+
ip?: Ip | null
8788
/**
8889
* Name for the node. Set using the `node.name` setting.
8990
* @aliases n
9091
*/
91-
node: string
92+
node?: string
9293

9394
/**
9495
* Node roles
9596
* @aliases r,role,nodeRole
9697
*/
97-
'node.role': string | null
98+
'node.role'?: string | null
9899
}

0 commit comments

Comments
 (0)