Skip to content

Commit

Permalink
Corrected /_cluster/health and /_cluster/stats. (#534)
Browse files Browse the repository at this point in the history
* Added AwarenessAttributeStats to /_cluster/health.

Signed-off-by: dblock <[email protected]>

* Added cache_reserved_in_bytes to ClusterFileSystem and cluster_manager to ClusterNodeCount.

Signed-off-by: dblock <[email protected]>

* Spell out 2.0.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Aug 27, 2024
1 parent 80463b1 commit 19421f5
Show file tree
Hide file tree
Showing 15 changed files with 193 additions and 81 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added 404 responses to `/_alias/{name}` and `/{index}/_alias/{name}` ([#519](https://github.com/opensearch-project/opensearch-api-specification/pull/519))
- Added `asynchronous_search` ([#525](https://github.com/opensearch-project/opensearch-api-specification/pull/525))
- Added `DELETE /_plugins/_ml/tasks/{task_id}` ([#530](https://github.com/opensearch-project/opensearch-api-specification/pull/530))
- Added `AwarenessAttributeStats` to `/_cluster/health` ([#534](https://github.com/opensearch-project/opensearch-api-specification/pull/534))
- Added `cache_reserved_in_bytes` to `ClusterFileSystem` ([#534](https://github.com/opensearch-project/opensearch-api-specification/pull/534))
- Added `cluster_manager` to `ClusterNodeCount` ([#534](https://github.com/opensearch-project/opensearch-api-specification/pull/534))

### Changed

Expand Down
6 changes: 3 additions & 3 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3990,7 +3990,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
delete_script::query.timeout:
in: query
Expand Down Expand Up @@ -4452,7 +4452,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
get_source::path.id:
in: path
Expand Down Expand Up @@ -4968,7 +4968,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
put_script::query.timeout:
in: query
Expand Down
28 changes: 14 additions & 14 deletions spec/namespaces/cat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.allocation::query.s:
Expand Down Expand Up @@ -1282,7 +1282,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.cluster_manager::query.s:
Expand Down Expand Up @@ -1574,7 +1574,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.indices::query.pri:
Expand Down Expand Up @@ -1658,7 +1658,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.master::query.s:
Expand Down Expand Up @@ -1727,7 +1727,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.nodeattrs::query.s:
Expand Down Expand Up @@ -1816,7 +1816,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.nodes::query.s:
Expand Down Expand Up @@ -1891,7 +1891,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.pending_tasks::query.s:
Expand Down Expand Up @@ -2017,7 +2017,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.plugins::query.s:
Expand Down Expand Up @@ -2181,7 +2181,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.repositories::query.s:
Expand Down Expand Up @@ -2406,7 +2406,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.segments::query.s:
Expand Down Expand Up @@ -2493,7 +2493,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.shards::query.s:
Expand Down Expand Up @@ -2580,7 +2580,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.snapshots::query.s:
Expand Down Expand Up @@ -2751,7 +2751,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.templates::query.s:
Expand Down Expand Up @@ -2830,7 +2830,7 @@ components:
description: Operation timeout for connection to master node.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
deprecated: true
cat.thread_pool::query.s:
Expand Down
20 changes: 10 additions & 10 deletions spec/namespaces/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.delete_component_template::query.timeout:
in: query
Expand Down Expand Up @@ -837,7 +837,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.get_component_template::path.name:
in: path
Expand Down Expand Up @@ -876,7 +876,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.get_decommission_awareness::path.awareness_attribute_name:
name: awareness_attribute_name
Expand Down Expand Up @@ -919,7 +919,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.get_settings::query.timeout:
in: query
Expand Down Expand Up @@ -990,7 +990,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.health::query.timeout:
in: query
Expand Down Expand Up @@ -1070,7 +1070,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.post_voting_config_exclusions::query.node_ids:
in: query
Expand Down Expand Up @@ -1139,7 +1139,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.put_component_template::query.timeout:
name: timeout
Expand Down Expand Up @@ -1186,7 +1186,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.put_settings::query.timeout:
in: query
Expand Down Expand Up @@ -1232,7 +1232,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.reroute::query.metric:
in: query
Expand Down Expand Up @@ -1325,7 +1325,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
cluster.state::query.wait_for_metadata_version:
in: query
Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/dangling_indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
dangling_indices.delete_dangling_index::query.timeout:
in: query
Expand Down Expand Up @@ -150,7 +150,7 @@ components:
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
x-version-deprecated: 2.0.0
x-version-deprecated: '2.0'
x-deprecation-message: To promote inclusive language, use 'cluster_manager_timeout' instead.
dangling_indices.import_dangling_index::query.timeout:
in: query
Expand Down
Loading

0 comments on commit 19421f5

Please sign in to comment.