Skip to content

fix #1100 add new throttling related properties to indexing stats #1123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions src/Nest/Domain/Responses/NodeStatsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@

namespace Nest
{
public interface INodeStatsResponse : IResponse
{
string ClusterName { get; }
Dictionary<string, NodeStats> Nodes { get; }
}
public interface INodeStatsResponse : IResponse
{
string ClusterName { get; }
Dictionary<string, NodeStats> Nodes { get; }
}

[JsonObject]
public class NodeStatsResponse : BaseResponse, INodeStatsResponse
{
public NodeStatsResponse()
{
this.IsValid = true;
}
[JsonObject]
public class NodeStatsResponse : BaseResponse, INodeStatsResponse
{
public NodeStatsResponse()
{
this.IsValid = true;
}

[JsonProperty(PropertyName = "cluster_name")]
public string ClusterName { get; internal set; }
[JsonProperty(PropertyName = "nodes")]
[JsonProperty(PropertyName = "cluster_name")]
public string ClusterName { get; internal set; }
[JsonProperty(PropertyName = "nodes")]
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
public Dictionary<string, NodeStats> Nodes { get; set; }
}
}
}
14 changes: 14 additions & 0 deletions src/Nest/Domain/Stats/IndexingStats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,22 @@ public class IndexingStats
public string DeleteTime { get; set; }
[JsonProperty(PropertyName = "delete_time_in_millis")]
public double DeleteTimeInMilliseconds { get; set; }

[JsonProperty(PropertyName = "delete_current")]
public long DeleteCurrent { get; set; }

[JsonProperty(PropertyName = "noop_update_total")]
public long NoopUpdateTotal { get; set; }

[JsonProperty(PropertyName = "is_throttled")]
public bool IsThrottled { get; set; }

[JsonProperty(PropertyName = "throttle_time_in_millis")]
public long ThrottleTimeInMilliseconds { get; set; }

[JsonProperty(PropertyName = "throttle_time")]
public string ThrottleTime { get; set; }

[JsonProperty(PropertyName = "types")]
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
public Dictionary<string, TypeStats> Types { get; set; }
Expand Down