# Seeking documentation on NodeIndicesStats (and similar) Transport APIs

**URL:** <https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537>\
**Category:** Elasticsearch\
**Created:** [September 6, 2017, 8:40am UTC](https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537 "2017-09-06T08:40:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bedford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_bedford/32/77125_2.png) [@Chris\_Bedford](https://discuss.elastic.co/u/Chris_Bedford)\
**Post date:** [September 6, 2017, 8:40am UTC](https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537/1 "2017-09-06T08:40:36Z")

</div>

Hello, Elasticsearch friends:

I have to reverse engineer some code that makes use of  
org.elasticsearch.index.shard.IndexingStats, which I believe is  
feeding our graphing layer information on indexing requests per sec and  
reads per second.

The Elasticsearch REST API is pretty well documented, but I  
didn't find much javadoc or any other type of reference for  
org.elasticsearch.index.shard.IndexingStats and similar classes.  
Is there a one-to-one mapping between these classes and corresponding  
elements of the REST API ? (in which case I can consult the REST API  
for answers to my questions.)

Or, if not,

I'd like to ask the following:

- over what time period are the various metrics of
- org.elasticsearch.index.shard.IndexingStats (and similar classes)  
calculated ?
  - from start time of server?
  - for last hour/day/minute?

Can i configure, per call, the interval over which metrics are calculated ?

thanks very much in advance!

```
chris bedford
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 11, 2017, 7:51am UTC](https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537/2 "2017-09-11T07:51:39Z")

</div>

Hey,

you can check the `toXContent` method of `IndexingStats`, which is showing you the representation of the JSON when written out.

--Alex

---

<div class="post-metadata">

**Author:** ![Chris\_Bedford](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_bedford/32/77125_2.png) [@Chris\_Bedford](https://discuss.elastic.co/u/Chris_Bedford)\
**Post date:** [September 11, 2017, 6:13pm UTC](https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537/3 "2017-09-11T18:13:11Z")

</div>

Thank you. Will look at that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2017, 6:13pm UTC](https://discuss.elastic.co/t/seeking-documentation-on-nodeindicesstats-and-similar-transport-apis/99537/4 "2017-10-09T18:13:11Z")

</div>

Closed on October 9, 2017, 6:13pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
