From 1e21726dc5a9da6f974ac93efe420b698bc5b835 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Wed, 3 Apr 2024 09:51:35 +0200 Subject: [PATCH] opensearchapi: Adds GlobalIOUsage struct for nodes stats Signed-off-by: Jakob Hahn --- CHANGELOG.md | 3 ++- opensearchapi/api_nodes-stats.go | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da9fb6112..48af34421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] ### Added +- Adds GlobalIOUsage struct for nodes stats ([#506]((https://github.com/opensearch-project/opensearch-go/pull/506)) ### Changed @@ -171,4 +172,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) [2.1.0]: https://github.com/opensearch-project/opensearch-go/compare/v2.0.1...v2.1.0 [2.0.1]: https://github.com/opensearch-project/opensearch-go/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v1.1.0...v2.0.0 -[1.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v1.0.0...v1.1.0 \ No newline at end of file +[1.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v1.0.0...v1.1.0 diff --git a/opensearchapi/api_nodes-stats.go b/opensearchapi/api_nodes-stats.go index 7b18c968c..3dd08ba2d 100644 --- a/opensearchapi/api_nodes-stats.go +++ b/opensearchapi/api_nodes-stats.go @@ -704,4 +704,9 @@ type NodesStatsAdmissionControl struct { RejectionCount json.RawMessage `json:"rejection_count"` } `json:"transport"` } `json:"global_cpu_usage"` + GlobalIOUsage struct { + Transport struct { + RejectionCount json.RawMessage `json:"rejection_count"` + } `json:"transport"` + } `json:"global_io_usage"` }