Skip to content

Commit 40e0f69

Browse files
committed
Add struct for NodeStatsFileCacheResponse
1 parent 5780b37 commit 40e0f69

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

collector/nodes_response.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,15 @@ type ClusterHealthResponse struct {
385385
TimedOut bool `json:"timed_out"`
386386
UnassignedShards int64 `json:"unassigned_shards"`
387387
}
388+
389+
// NodeStatsFileCacheResponse is a representation of OpenSearch Searchable Snapshots File_cache
390+
type NodeStatsFileCacheResponse struct {
391+
ActiveInBytes int64 `json:"active_in_bytes"`
392+
TotalInBytes int64 `json:"total_in_bytes"`
393+
UsedInBytes int64 `json:"used_in_bytes"`
394+
EvictionsInBytes int64 `json:"evictions_in_bytes"`
395+
ActivePercent int64 `json:"active_percent"`
396+
UsedPercent int64 `json:"used_percent"`
397+
HitCount int64 `json:"hit_count"`
398+
MissCount int64 `json:"miss_count"`
399+
}

0 commit comments

Comments
 (0)