Skip to content

Commit 9dc049a

Browse files
Add shard_stats to primary index stats (#6094) (#6096)
* Add shard_stats to primary index stats * Remove BOM Co-authored-by: Steve Gordon <[email protected]>
1 parent cddea8c commit 9dc049a

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/Nest/Indices/Monitoring/IndicesStats/IndexStats.cs

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public class IndexStats
4848
[DataMember(Name ="segments")]
4949
public SegmentsStats Segments { get; set; }
5050

51+
[DataMember(Name = "shard_stats")]
52+
public ShardTotalStats ShardStats { get; set; }
53+
5154
[DataMember(Name ="store")]
5255
public StoreStats Store { get; set; }
5356

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
5+
using System.Runtime.Serialization;
6+
7+
namespace Nest
8+
{
9+
public class ShardTotalStats
10+
{
11+
[DataMember(Name = "total_count")]
12+
public long TotalCount { get; set; }
13+
}
14+
}

0 commit comments

Comments
 (0)