浏览代码

[ML] Add accessor to GetDatafeedsStatsAction.Response (#98017)

This is necessary to support response filtering in serverless.
David Roberts 2 年之前
父节点
当前提交
dec7f58874

+ 4 - 0
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/action/GetDatafeedsStatsAction.java

@@ -186,6 +186,10 @@ public class GetDatafeedsStatsAction extends ActionType<GetDatafeedsStatsAction.
                 return timingStats;
             }
 
+            public RunningState getRunningState() {
+                return runningState;
+            }
+
             @Override
             public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
                 builder.startObject();