Skip to content

Commit 0673203

Browse files
committed
Merge pull request #1123 from elasticsearch/feature/node-stats-throttling
fix #1100 add new throttling related properties to indexing stats
2 parents 3e7ec70 + 95f7034 commit 0673203

File tree

2 files changed

+30
-16
lines changed

2 files changed

+30
-16
lines changed

src/Nest/Domain/Responses/NodeStatsResponse.cs

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@
55

66
namespace Nest
77
{
8-
public interface INodeStatsResponse : IResponse
9-
{
10-
string ClusterName { get; }
11-
Dictionary<string, NodeStats> Nodes { get; }
12-
}
8+
public interface INodeStatsResponse : IResponse
9+
{
10+
string ClusterName { get; }
11+
Dictionary<string, NodeStats> Nodes { get; }
12+
}
1313

14-
[JsonObject]
15-
public class NodeStatsResponse : BaseResponse, INodeStatsResponse
16-
{
17-
public NodeStatsResponse()
18-
{
19-
this.IsValid = true;
20-
}
14+
[JsonObject]
15+
public class NodeStatsResponse : BaseResponse, INodeStatsResponse
16+
{
17+
public NodeStatsResponse()
18+
{
19+
this.IsValid = true;
20+
}
2121

22-
[JsonProperty(PropertyName = "cluster_name")]
23-
public string ClusterName { get; internal set; }
24-
[JsonProperty(PropertyName = "nodes")]
22+
[JsonProperty(PropertyName = "cluster_name")]
23+
public string ClusterName { get; internal set; }
24+
[JsonProperty(PropertyName = "nodes")]
2525
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
2626
public Dictionary<string, NodeStats> Nodes { get; set; }
27-
}
27+
}
2828
}

src/Nest/Domain/Stats/IndexingStats.cs

+14
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,22 @@ public class IndexingStats
2222
public string DeleteTime { get; set; }
2323
[JsonProperty(PropertyName = "delete_time_in_millis")]
2424
public double DeleteTimeInMilliseconds { get; set; }
25+
2526
[JsonProperty(PropertyName = "delete_current")]
2627
public long DeleteCurrent { get; set; }
28+
29+
[JsonProperty(PropertyName = "noop_update_total")]
30+
public long NoopUpdateTotal { get; set; }
31+
32+
[JsonProperty(PropertyName = "is_throttled")]
33+
public bool IsThrottled { get; set; }
34+
35+
[JsonProperty(PropertyName = "throttle_time_in_millis")]
36+
public long ThrottleTimeInMilliseconds { get; set; }
37+
38+
[JsonProperty(PropertyName = "throttle_time")]
39+
public string ThrottleTime { get; set; }
40+
2741
[JsonProperty(PropertyName = "types")]
2842
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
2943
public Dictionary<string, TypeStats> Types { get; set; }

0 commit comments

Comments
 (0)