Skip to content

Commit

Permalink
opensearchapi: Adds GlobalIOUsage struct for nodes stats
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Apr 3, 2024
1 parent e0278ab commit 1e21726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
[1.0.0]: https://github.com/opensearch-project/opensearch-go/compare/v1.0.0...v1.1.0
5 changes: 5 additions & 0 deletions opensearchapi/api_nodes-stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 1e21726

Please sign in to comment.