Skip to content

Commit

Permalink
Update NodeStatsstruct with RemoteStore field
Browse files Browse the repository at this point in the history
This field is returned since OpenSearch 2.18.
(see opensearch-project/OpenSearch#15611)

Signed-off-by: Tim Holdaway <[email protected]>
  • Loading branch information
tim-holdaway-clever committed Jan 17, 2025
1 parent 2ce8d15 commit 0d59886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opensearchapi/api_nodes-stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ type NodesStats struct {
Repositories []json.RawMessage `json:"repositories"`
AdmissionControl NodesStatsAdmissionControl `json:"admission_control"`
Caches NodesStatsCaches `json:"caches"`
RemoteStore NodeStatsRemoteStore `json:"remote_store"`
}

// NodesStatsIndices is a sub type of NodesStats representing Indices information of the node
Expand Down Expand Up @@ -729,3 +730,8 @@ type NodesStatsCaches struct {
StoreName string `json:"store_name"`
} `json:"request_cache"`
}

// NodeStatsRemoteStore is a sub type of NodesStats
type NodeStatsRemoteStore struct {
LastSuccessfulFetchOfPinnedTimestamps int `json:"last_successful_fetch_of_pinned_timestamps"`
}

0 comments on commit 0d59886

Please sign in to comment.