From cb73ee68d3584dd6c5e6ce98331a88442b5acb55 Mon Sep 17 00:00:00 2001 From: gmarz Date: Thu, 7 May 2015 09:50:27 -0400 Subject: [PATCH] Add pending tasks to cluster health and cat health Closes #1364 --- src/Nest/Domain/Cat/CatHealthRecord.cs | 3 +++ src/Nest/Domain/Responses/HealthResponse.cs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Nest/Domain/Cat/CatHealthRecord.cs b/src/Nest/Domain/Cat/CatHealthRecord.cs index ea695f56580..c8c4104b88e 100644 --- a/src/Nest/Domain/Cat/CatHealthRecord.cs +++ b/src/Nest/Domain/Cat/CatHealthRecord.cs @@ -37,5 +37,8 @@ public class CatHealthRecord : ICatRecord [JsonProperty("unassign")] public string Unassigned { get; set; } + + [JsonProperty("pending_tasks")] + public string PendingTasks { get; set; } } } \ No newline at end of file diff --git a/src/Nest/Domain/Responses/HealthResponse.cs b/src/Nest/Domain/Responses/HealthResponse.cs index 3519587f988..99d4fae63ff 100644 --- a/src/Nest/Domain/Responses/HealthResponse.cs +++ b/src/Nest/Domain/Responses/HealthResponse.cs @@ -17,6 +17,7 @@ public interface IHealthResponse : IResponse int RelocatingShards { get; } int InitializingShards { get; } int UnassignedShards { get; } + int NumberOfPendingTasks { get; } Dictionary Indices { get; } } @@ -50,7 +51,8 @@ public HealthResponse() public int InitializingShards { get; internal set; } [JsonProperty(PropertyName = "unassigned_shards")] public int UnassignedShards { get; internal set; } - + [JsonProperty(PropertyName="number_of_pending_tasks")] + public int NumberOfPendingTasks { get; internal set; } [JsonProperty(PropertyName = "indices")] [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] public Dictionary Indices { get; set; }