|
| 1 | +/* |
| 2 | + * Licensed to Elasticsearch B.V. under one or more contributor |
| 3 | + * license agreements. See the NOTICE file distributed with |
| 4 | + * this work for additional information regarding copyright |
| 5 | + * ownership. Elasticsearch B.V. licenses this file to you under |
| 6 | + * the Apache License, Version 2.0 (the "License"); you may |
| 7 | + * not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, |
| 13 | + * software distributed under the License is distributed on an |
| 14 | + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + * KIND, either express or implied. See the License for the |
| 16 | + * specific language governing permissions and limitations |
| 17 | + * under the License. |
| 18 | + */ |
| 19 | + |
| 20 | +using System.Runtime.Serialization; |
| 21 | + |
| 22 | +namespace Nest |
| 23 | +{ |
| 24 | + /// <summary> |
| 25 | + /// A response to an EQL get status request. |
| 26 | + /// </summary> |
| 27 | + public class EqlSearchStatusResponse : ResponseBase |
| 28 | + { |
| 29 | + /// <summary> |
| 30 | + /// For a completed search shows the http status code of the completed search. |
| 31 | + /// </summary> |
| 32 | + [DataMember(Name = "completion_status")] |
| 33 | + public int CompletionStatus { get; internal set; } |
| 34 | + |
| 35 | + /// <summary> |
| 36 | + /// For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch. |
| 37 | + /// </summary> |
| 38 | + [DataMember(Name = "expiration_time_in_millis")] |
| 39 | + public long ExpirationTimeInMillis { get; internal set; } |
| 40 | + |
| 41 | + /// <summary> |
| 42 | + /// Identifier for the search. |
| 43 | + /// </summary> |
| 44 | + [DataMember(Name = "id")] |
| 45 | + public string Id { get; internal set; } |
| 46 | + |
| 47 | + /// <summary> |
| 48 | + /// If true, the response does not contain complete search results. |
| 49 | + /// </summary> |
| 50 | + [DataMember(Name = "is_partial")] |
| 51 | + public bool IsPartial { get; internal set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// If true, the search request is still executing. If false, the search is completed. |
| 55 | + /// </summary> |
| 56 | + [DataMember(Name = "is_running")] |
| 57 | + public bool IsRunning { get; internal set; } |
| 58 | + |
| 59 | + /// <summary> |
| 60 | + /// For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch. |
| 61 | + /// </summary> |
| 62 | + [DataMember(Name = "start_time_in_millis")] |
| 63 | + public long StartTimeInMillis { get; internal set; } |
| 64 | + } |
| 65 | +} |
0 commit comments