Skip to content

Commit d9b9736

Browse files
committed
Merge pull request #1395 from elastic/feature/health-pending-tasks
Add pending tasks to cluster health and cat health
2 parents fb9f16e + cb73ee6 commit d9b9736

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Nest/Domain/Cat/CatHealthRecord.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,8 @@ public class CatHealthRecord : ICatRecord
3737

3838
[JsonProperty("unassign")]
3939
public string Unassigned { get; set; }
40+
41+
[JsonProperty("pending_tasks")]
42+
public string PendingTasks { get; set; }
4043
}
4144
}

src/Nest/Domain/Responses/HealthResponse.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public interface IHealthResponse : IResponse
1717
int RelocatingShards { get; }
1818
int InitializingShards { get; }
1919
int UnassignedShards { get; }
20+
int NumberOfPendingTasks { get; }
2021
Dictionary<string, IndexHealthStats> Indices { get; }
2122
}
2223

@@ -50,7 +51,8 @@ public HealthResponse()
5051
public int InitializingShards { get; internal set; }
5152
[JsonProperty(PropertyName = "unassigned_shards")]
5253
public int UnassignedShards { get; internal set; }
53-
54+
[JsonProperty(PropertyName="number_of_pending_tasks")]
55+
public int NumberOfPendingTasks { get; internal set; }
5456
[JsonProperty(PropertyName = "indices")]
5557
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
5658
public Dictionary<string, IndexHealthStats> Indices { get; set; }

0 commit comments

Comments
 (0)