|
| 1 | +using System; |
| 2 | +using System.Runtime.Serialization; |
| 3 | +using Elasticsearch.Net.Utf8Json; |
| 4 | + |
| 5 | +namespace Nest |
| 6 | +{ |
| 7 | + [DataContract] |
| 8 | + public class CatTransformsRecord : ICatRecord |
| 9 | + { |
| 10 | + /// <summary> |
| 11 | + /// The timestamp when changes were last detected in the source indices. |
| 12 | + /// </summary> |
| 13 | + [DataMember(Name ="changes_last_detection_time")] |
| 14 | + public string ChangesLastDetectionTime { get; internal set; } |
| 15 | + |
| 16 | + /// <summary> |
| 17 | + /// Exponential moving average of the duration of the checkpoint, in milliseconds. |
| 18 | + /// </summary> |
| 19 | + [DataMember(Name ="checkpoint_duration_time_exp_avg")] |
| 20 | + public long? CheckpointDurationTimeExpAvg { get; internal set; } |
| 21 | + |
| 22 | + /// <summary> |
| 23 | + /// (Default) The time the transform was created. |
| 24 | + /// </summary> |
| 25 | + [DataMember(Name ="create_time")] |
| 26 | + public DateTimeOffset CreateTime { get; internal set; } |
| 27 | + |
| 28 | + /// <summary> |
| 29 | + /// (Default) The description of the transform. |
| 30 | + /// </summary> |
| 31 | + [DataMember(Name ="description")] |
| 32 | + public string Description { get; internal set; } |
| 33 | + |
| 34 | + /// <summary> |
| 35 | + /// (Default) The destination index for the transform. |
| 36 | + /// </summary> |
| 37 | + [DataMember(Name ="dest_index")] |
| 38 | + public string DestinationIndex { get; internal set; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// The number of documents that have been indexed into the destination index for the transform. |
| 42 | + /// </summary> |
| 43 | + [DataMember(Name ="documents_indexed")] |
| 44 | + public long? DocumentsIndexed { get; internal set; } |
| 45 | + |
| 46 | + /// <summary> |
| 47 | + /// The number of documents that have been processed from the source index of the transform. |
| 48 | + /// </summary> |
| 49 | + [DataMember(Name ="documents_processed")] |
| 50 | + public long? DocumentsProcessed { get; internal set; } |
| 51 | + |
| 52 | + /// <summary> |
| 53 | + /// (Default) The interval between checks for changes in the source indices when the transform is running continuously. Also determines the |
| 54 | + /// retry interval in the event of transient failures while the transform is searching or indexing. The minimum value is 1s and the maximum |
| 55 | + /// is 1h. The default value is 1m. |
| 56 | + /// </summary> |
| 57 | + [DataMember(Name ="frequency")] |
| 58 | + public Time Frequency { get; internal set; } |
| 59 | + |
| 60 | + /// <summary> |
| 61 | + /// (Default) Identifier for the transform. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and |
| 62 | + /// underscores. It must start and end with alphanumeric characters. |
| 63 | + /// </summary> |
| 64 | + [DataMember(Name ="id")] |
| 65 | + public string Id { get; internal set; } |
| 66 | + |
| 67 | + /// <summary> |
| 68 | + /// The number of indexing failures. |
| 69 | + /// </summary> |
| 70 | + [DataMember(Name ="index_failure")] |
| 71 | + public long? IndexFailure { get; internal set; } |
| 72 | + |
| 73 | + /// <summary> |
| 74 | + /// The amount of time spent indexing, in milliseconds. |
| 75 | + /// </summary> |
| 76 | + [DataMember(Name ="index_time")] |
| 77 | + public long? IndexTime { get; internal set; } |
| 78 | + |
| 79 | + /// <summary> |
| 80 | + /// The number of indices created. |
| 81 | + /// </summary> |
| 82 | + [DataMember(Name ="index_total")] |
| 83 | + public long? IndexTotal { get; internal set; } |
| 84 | + |
| 85 | + /// <summary> |
| 86 | + /// Exponential moving average of the number of new documents that have been indexed. |
| 87 | + /// </summary> |
| 88 | + [DataMember(Name ="indexed_documents_exp_avg")] |
| 89 | + public long? IndexedDocumentsExpAvg { get; internal set; } |
| 90 | + |
| 91 | + /// <summary> |
| 92 | + /// (Default) Defines the initial page size to use for the composite aggregation for each checkpoint. If circuit breaker exceptions occur, |
| 93 | + /// the page size is dynamically adjusted to a lower value. The minimum value is 10 and the maximum is 10,000. The default value is 500. |
| 94 | + /// </summary> |
| 95 | + [DataMember(Name ="max_page_search_size")] |
| 96 | + public long? MaxPageSearchSize { get; internal set; } |
| 97 | + |
| 98 | + /// <summary> |
| 99 | + /// The number of search or bulk index operations processed. Documents are processed in batches instead of individually. |
| 100 | + /// </summary> |
| 101 | + [DataMember(Name ="pages_processed")] |
| 102 | + public long? PagesProcessed { get; internal set; } |
| 103 | + |
| 104 | + /// <summary> |
| 105 | + /// (Default) The unique identifier for a pipeline. |
| 106 | + /// </summary> |
| 107 | + [DataMember(Name ="pipeline")] |
| 108 | + public string Pipeline { get; internal set; } |
| 109 | + |
| 110 | + /// <summary> |
| 111 | + /// Exponential moving average of the number of documents that have been processed. |
| 112 | + /// </summary> |
| 113 | + [DataMember(Name ="processed_documents_exp_avg")] |
| 114 | + public long? ProcessedDocumentsExpAvg { get; internal set; } |
| 115 | + |
| 116 | + /// <summary> |
| 117 | + /// The amount of time spent processing results, in milliseconds. |
| 118 | + /// </summary> |
| 119 | + [DataMember(Name ="processing_time")] |
| 120 | + public long? ProcessingTime { get; internal set; } |
| 121 | + |
| 122 | + /// <summary> |
| 123 | + /// If a transform has a failed state, this property provides details about the reason for the failure. |
| 124 | + /// </summary> |
| 125 | + [DataMember(Name ="reason")] |
| 126 | + public string Reason { get; internal set; } |
| 127 | + |
| 128 | + /// <summary> |
| 129 | + /// The number of search failures. |
| 130 | + /// </summary> |
| 131 | + [DataMember(Name ="search_failure")] |
| 132 | + public long? SearchFailure { get; internal set; } |
| 133 | + |
| 134 | + /// <summary> |
| 135 | + /// The amount of time spent searching, in milliseconds. |
| 136 | + /// </summary> |
| 137 | + [DataMember(Name ="search_time")] |
| 138 | + public long? SearchTime { get; internal set; } |
| 139 | + |
| 140 | + /// <summary> |
| 141 | + /// The number of search operations on the source index for the transform. |
| 142 | + /// </summary> |
| 143 | + [DataMember(Name ="search_total")] |
| 144 | + public long? SearchTotal { get; internal set; } |
| 145 | + |
| 146 | + /// <summary> |
| 147 | + /// (Default) The source indices for the transform. It can be a single index, an index pattern (for example, "myindex*"), an array of indices |
| 148 | + /// (for example, ["index1", "index2"]), or an array of index patterns (for example, ["myindex1-*", "myindex2-*"]. |
| 149 | + /// </summary> |
| 150 | + [DataMember(Name ="source_index")] |
| 151 | + [JsonFormatter(typeof(IndicesFormatter))] |
| 152 | + public Indices SourceIndices { get; internal set; } |
| 153 | + |
| 154 | + /// <summary> |
| 155 | + /// (Default) The status of the transform. |
| 156 | + /// </summary> |
| 157 | + [DataMember(Name ="state")] |
| 158 | + public TransformState State { get; internal set; } |
| 159 | + |
| 160 | + /// <summary> |
| 161 | + /// (Default) Indicates the type of transform. |
| 162 | + /// </summary> |
| 163 | + [DataMember(Name ="transform_type")] |
| 164 | + public TransformType TransformType { get; internal set; } |
| 165 | + |
| 166 | + /// <summary> |
| 167 | + /// The number of times the transform has been triggered by the scheduler. For example, the scheduler triggers the transform indexer to |
| 168 | + /// check for updates or ingest new data at an interval specified in the frequency property. |
| 169 | + /// </summary> |
| 170 | + [DataMember(Name ="trigger_count")] |
| 171 | + public long? TriggerCount { get; internal set; } |
| 172 | + |
| 173 | + /// <summary> |
| 174 | + /// (Default) The version of Elasticsearch that existed on the node when the transform was created. |
| 175 | + /// </summary> |
| 176 | + [DataMember(Name ="version")] |
| 177 | + public string Version { get; internal set; } |
| 178 | + } |
| 179 | +} |
0 commit comments