|
1 | | -using System.Collections.Generic; |
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
2 | 3 | using System.Runtime.Serialization; |
3 | 4 | using Elasticsearch.Net; |
| 5 | +using Elasticsearch.Net.Utf8Json; |
4 | 6 |
|
5 | 7 | namespace Nest |
6 | 8 | { |
@@ -57,6 +59,47 @@ public class JobStats |
57 | 59 | /// </summary> |
58 | 60 | [DataMember(Name = "state")] |
59 | 61 | public JobState State { get; internal set; } |
| 62 | + |
| 63 | + /// <summary> |
| 64 | + /// Timing-related statistics about the job's progress |
| 65 | + /// <para /> |
| 66 | + /// Valid only in Elasticsearch 7.3.0+ |
| 67 | + /// </summary> |
| 68 | + [DataMember(Name = "timing_stats")] |
| 69 | + public TimingStats TimingStats { get; internal set; } |
| 70 | + } |
| 71 | + |
| 72 | + public class TimingStats |
| 73 | + { |
| 74 | + [DataMember(Name = "job_id")] |
| 75 | + public string JobId { get; internal set; } |
| 76 | + |
| 77 | + [DataMember(Name = "bucket_count")] |
| 78 | + public long BucketCount { get; internal set; } |
| 79 | + |
| 80 | + /// <summary> |
| 81 | + /// Minimum among all bucket processing times in milliseconds |
| 82 | + /// </summary> |
| 83 | + [DataMember(Name = "minimum_bucket_processing_time_ms")] |
| 84 | + public double MinimumBucketProcessingTimeMilliseconds { get; internal set; } |
| 85 | + |
| 86 | + /// <summary> |
| 87 | + /// Maximum among all bucket processing times in milliseconds |
| 88 | + /// </summary> |
| 89 | + [DataMember(Name = "maximum_bucket_processing_time_ms")] |
| 90 | + public double MaximumBucketProcessingTimeMilliseconds { get; internal set; } |
| 91 | + |
| 92 | + /// <summary> |
| 93 | + /// Average of all bucket processing times in milliseconds |
| 94 | + /// </summary> |
| 95 | + [DataMember(Name = "average_bucket_processing_time_ms")] |
| 96 | + public double AverageBucketProcessingTimeMilliseconds { get; internal set; } |
| 97 | + |
| 98 | + /// <summary> |
| 99 | + /// Exponential moving average of all bucket processing times in milliseconds |
| 100 | + /// </summary> |
| 101 | + [DataMember(Name = "exponential_average_bucket_processing_time_ms")] |
| 102 | + public double ExponentialAverageBucketProcessingTimeMilliseconds { get; internal set; } |
60 | 103 | } |
61 | 104 |
|
62 | 105 | public class JobForecastStatistics |
|
0 commit comments