Skip to content

Commit

Permalink
Allow getting ShardCountStats. (elastic#84805)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
mindw and elasticmachine authored Jun 30, 2022
1 parent 7e214fc commit d84c9e4
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.elasticsearch.index.search.stats.SearchStats;
import org.elasticsearch.index.shard.DocsStats;
import org.elasticsearch.index.shard.IndexingStats;
import org.elasticsearch.index.shard.ShardCountStats;
import org.elasticsearch.index.store.StoreStats;
import org.elasticsearch.index.translog.TranslogStats;
import org.elasticsearch.index.warmer.WarmerStats;
Expand Down Expand Up @@ -166,6 +167,11 @@ public BulkStats getBulk() {
return stats.getBulk();
}

@Nullable
public ShardCountStats getShardCount() {
return stats.getShards();
}

@Override
public void writeTo(StreamOutput out) throws IOException {
stats.writeTo(out);
Expand Down

0 comments on commit d84c9e4

Please sign in to comment.