Skip to content

Commit

Permalink
Rename Bytes Components (#569)
Browse files Browse the repository at this point in the history
* spec: Rename StorageType to ByteUnit

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* spec: rename Bytes to ByteCount

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

* spec: rename StorageSize to HumanReadableByteCount

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>

---------

Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD authored Sep 11, 2024
1 parent d05ba73 commit 508c210
Show file tree
Hide file tree
Showing 15 changed files with 266 additions and 265 deletions.
20 changes: 10 additions & 10 deletions spec/namespaces/cat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ components:
in: query
description: The unit in which to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
cat.all_pit_segments::query.format:
name: format
in: query
Expand Down Expand Up @@ -1164,7 +1164,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.allocation::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down Expand Up @@ -1374,7 +1374,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.fielddata::query.fields:
in: query
Expand Down Expand Up @@ -1503,7 +1503,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.indices::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down Expand Up @@ -1754,7 +1754,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.nodes::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down Expand Up @@ -1924,7 +1924,7 @@ components:
in: query
description: The unit in which to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
cat.pit_segments::query.format:
name: format
in: query
Expand Down Expand Up @@ -2062,7 +2062,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.recovery::query.detailed:
in: query
Expand Down Expand Up @@ -2233,7 +2233,7 @@ components:
in: query
description: The unit in which to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
cat.segment_replication::query.completed_only:
name: completed_only
in: query
Expand Down Expand Up @@ -2365,7 +2365,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.segments::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down Expand Up @@ -2444,7 +2444,7 @@ components:
name: bytes
description: The unit used to display byte values.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/StorageType'
$ref: '../schemas/_common.yaml#/components/schemas/ByteUnit'
style: form
cat.shards::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2385,10 +2385,10 @@ components:
items:
$ref: '../schemas/indices.data_streams_stats.yaml#/components/schemas/DataStreamsStatsItem'
total_store_sizes:
$ref: '../schemas/_common.yaml#/components/schemas/StorageSize'
$ref: '../schemas/_common.yaml#/components/schemas/HumanReadableByteCount'
total_store_size_bytes:
description: Total size, in bytes, of all shards for the selected data streams.
$ref: '../schemas/_common.yaml#/components/schemas/Bytes'
$ref: '../schemas/_common.yaml#/components/schemas/ByteCount'
required:
- _shards
- backing_indices
Expand Down
Loading

0 comments on commit 508c210

Please sign in to comment.