Skip to content

Commit 89aa289

Browse files
WIP: Include recent write load in xcontent for stats (e.g. in node and index stats)
1 parent bb71dd3 commit 89aa289

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/index/shard/IndexingStats.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
303303
builder.humanReadableField(Fields.THROTTLED_TIME_IN_MILLIS, Fields.THROTTLED_TIME, getThrottleTime());
304304

305305
builder.field(Fields.WRITE_LOAD, getWriteLoad());
306+
builder.field(Fields.RECENT_WRITE_LOAD, getRecentWriteLoad());
306307
return builder;
307308
}
308309

@@ -424,6 +425,7 @@ static final class Fields {
424425
static final String THROTTLED_TIME_IN_MILLIS = "throttle_time_in_millis";
425426
static final String THROTTLED_TIME = "throttle_time";
426427
static final String WRITE_LOAD = "write_load";
428+
static final String RECENT_WRITE_LOAD = "recent_write_load";
427429
}
428430

429431
@Override

0 commit comments

Comments
 (0)