|
1 | | -using Newtonsoft.Json; |
| 1 | +using System.Collections.Generic; |
| 2 | +using Newtonsoft.Json; |
2 | 3 |
|
3 | 4 | namespace Nest |
4 | 5 | { |
5 | 6 | [JsonObject] |
6 | 7 | public class IngestStats |
7 | 8 | { |
8 | | - /// <summary> |
9 | | - /// The total number of document ingested during the lifetime of this node |
10 | | - /// </summary> |
| 9 | + /// <summary> The total number of document ingested during the lifetime of this node</summary> |
11 | 10 | [JsonProperty("count")] |
12 | 11 | public long Count { get; set; } |
13 | 12 |
|
14 | | - /// <summary> |
15 | | - /// The total number of documents currently being ingested. |
16 | | - /// </summary> |
| 13 | + /// <summary> The total number of documents currently being ingested. </summary> |
17 | 14 | [JsonProperty("current")] |
18 | 15 | public long Current { get; set; } |
19 | 16 |
|
20 | | - /// <summary> |
21 | | - /// The total number ingest preprocessing operations failed during the lifetime of this node |
22 | | - /// </summary> |
| 17 | + /// <summary> The total number ingest preprocessing operations failed during the lifetime of this node </summary> |
23 | 18 | [JsonProperty("failed")] |
24 | 19 | public long Failed { get; set; } |
25 | 20 |
|
26 | | - /// <summary> |
27 | | - /// The total time spent on ingest preprocessing documents during the lifetime of this node |
28 | | - /// </summary> |
| 21 | + /// <summary> The total time spent on ingest preprocessing documents during the lifetime of this node </summary> |
29 | 22 | [JsonProperty("time_in_millis")] |
30 | 23 | public long TimeInMilliseconds { get; set; } |
| 24 | + |
| 25 | + [JsonProperty("processors")] |
| 26 | + public IReadOnlyCollection<KeyedProcessorStats> Processors { get; internal set; } = |
| 27 | + EmptyReadOnly<KeyedProcessorStats>.Collection; |
| 28 | + } |
| 29 | + |
| 30 | + [JsonConverter(typeof(KeyValueJsonConverter<KeyedProcessorStats, ProcessStats>))] |
| 31 | + public class KeyedProcessorStats |
| 32 | + { |
| 33 | + /// <summary> The type of the processor </summary> |
| 34 | + public string Type { get; set; } |
| 35 | + |
| 36 | + /// <summary>The statistics for this processor</summary> |
| 37 | + public ProcessStats Statistics { get; set; } |
| 38 | + } |
| 39 | + |
| 40 | + [JsonObject] |
| 41 | + public class ProcessorStats |
| 42 | + { |
| 43 | + /// <summary> The total number of document ingested during the lifetime of this node </summary> |
| 44 | + [JsonProperty("count")] |
| 45 | + public long Count { get; internal set; } |
| 46 | + |
| 47 | + /// <summary> The total number of documents currently being ingested. </summary> |
| 48 | + [JsonProperty("current")] |
| 49 | + public long Current { get; internal set; } |
| 50 | + |
| 51 | + /// <summary> The total number ingest preprocessing operations failed during the lifetime of this node </summary> |
| 52 | + [JsonProperty("failed")] |
| 53 | + public long Failed { get; internal set; } |
| 54 | + |
| 55 | + /// <summary> The total time spent on ingest preprocessing documents during the lifetime of this node </summary> |
| 56 | + [JsonProperty("time_in_millis")] |
| 57 | + public long TimeInMilliseconds { get; internal set; } |
31 | 58 | } |
32 | 59 | } |
0 commit comments