@@ -333,6 +333,7 @@ type NodesStatsNode struct {
333
333
334
334
type NodesStatsIndex struct {
335
335
Docs * NodesStatsDocsStats `json:"docs"`
336
+ Shards * NodesStatsShardCountStats `json:"shards_stats"`
336
337
Store * NodesStatsStoreStats `json:"store"`
337
338
Indexing * NodesStatsIndexingStats `json:"indexing"`
338
339
Get * NodesStatsGetStats `json:"get"`
@@ -343,23 +344,25 @@ type NodesStatsIndex struct {
343
344
Warmer * NodesStatsWarmerStats `json:"warmer"`
344
345
QueryCache * NodesStatsQueryCacheStats `json:"query_cache"`
345
346
Fielddata * NodesStatsFielddataStats `json:"fielddata"`
346
- Percolate * NodesStatsPercolateStats `json:"percolate"`
347
347
Completion * NodesStatsCompletionStats `json:"completion"`
348
348
Segments * NodesStatsSegmentsStats `json:"segments"`
349
349
Translog * NodesStatsTranslogStats `json:"translog"`
350
- Suggest * NodesStatsSuggestStats `json:"suggest"`
351
350
RequestCache * NodesStatsRequestCacheStats `json:"request_cache"`
352
351
Recovery NodesStatsRecoveryStats `json:"recovery"`
353
352
354
- Indices map [string ]* NodesStatsIndex `json:"indices"` // for level=indices
355
- Shards map [string ]* NodesStatsIndex `json:"shards"` // for level=shards
353
+ IndicesLevel map [string ]* NodesStatsIndex `json:"indices"` // for level=indices
354
+ ShardsLevel map [string ]* NodesStatsIndex `json:"shards"` // for level=shards
356
355
}
357
356
358
357
type NodesStatsDocsStats struct {
359
358
Count int64 `json:"count"`
360
359
Deleted int64 `json:"deleted"`
361
360
}
362
361
362
+ type NodesStatsShardCountStats struct {
363
+ TotalCount int64 `json:"total_count"`
364
+ }
365
+
363
366
type NodesStatsStoreStats struct {
364
367
Size string `json:"size"`
365
368
SizeInBytes int64 `json:"size_in_bytes"`
@@ -473,16 +476,6 @@ type NodesStatsFielddataStats struct {
473
476
} `json:"fields"`
474
477
}
475
478
476
- type NodesStatsPercolateStats struct {
477
- Total int64 `json:"total"`
478
- Time string `json:"time"`
479
- TimeInMillis int64 `json:"time_in_millis"`
480
- Current int64 `json:"current"`
481
- MemorySize string `json:"memory_size"`
482
- MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
483
- Queries int64 `json:"queries"`
484
- }
485
-
486
479
type NodesStatsCompletionStats struct {
487
480
Size string `json:"size"`
488
481
SizeInBytes int64 `json:"size_in_bytes"`
@@ -522,13 +515,6 @@ type NodesStatsTranslogStats struct {
522
515
SizeInBytes int64 `json:"size_in_bytes"`
523
516
}
524
517
525
- type NodesStatsSuggestStats struct {
526
- Total int64 `json:"total"`
527
- TotalTime string `json:"total_time"`
528
- TotalTimeInMillis int64 `json:"total_time_in_millis"`
529
- Current int64 `json:"current"`
530
- }
531
-
532
518
type NodesStatsRequestCacheStats struct {
533
519
MemorySize string `json:"memory_size"`
534
520
MemorySizeInBytes int64 `json:"memory_size_in_bytes"`
0 commit comments