Skip to content

Commit cb5aace

Browse files
authored
Add running state to datafeed stats (#5792)
1 parent ee57fca commit cb5aace

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/Nest/XPack/MachineLearning/Datafeed/DatafeedStats.cs

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ public class DatafeedStats
2323

2424
[DataMember(Name = "timing_stats")]
2525
public DatafeedTimingStats TimingStats { get; internal set; }
26+
27+
/// <summary>
28+
/// The running state for the datafeed. It is only provided if the {dfeed} is started.
29+
/// </summary>
30+
[DataMember(Name = "running_state")]
31+
public RunningState RunningState { get; internal set; }
2632
}
2733

2834
[DataContract]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
5+
using System.Runtime.Serialization;
6+
7+
namespace Nest
8+
{
9+
/// <summary>
10+
/// The running state for a datafeed once started.
11+
/// </summary>
12+
[DataContract]
13+
public class RunningState
14+
{
15+
[DataMember(Name = "is_real_time")]
16+
public bool IsRealTime { get; internal set; }
17+
18+
[DataMember(Name = "look_back_finished")]
19+
public bool LoopBackFinished { get; internal set; }
20+
}
21+
}

0 commit comments

Comments
 (0)