From 08a83452698b79411207b604a08ea4a5557c575f Mon Sep 17 00:00:00 2001 From: Dimitris Athanasiou Date: Mon, 23 Mar 2020 19:46:39 +0200 Subject: [PATCH] [7.x][ML] Fix typo in outlier detection timing stats (#53988) (#53995) The field holding the timing stats was mistakenly called `timings_stats`. Backport of #53988 --- .../dataframe/stats/outlierdetection/OutlierDetectionStats.java | 2 +- .../dataframe/stats/outlierdetection/OutlierDetectionStats.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java index 15098e3770f..e3236dad0cd 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java @@ -36,7 +36,7 @@ public class OutlierDetectionStats implements AnalysisStats { public static final ParseField TIMESTAMP = new ParseField("timestamp"); public static final ParseField PARAMETERS = new ParseField("parameters"); - public static final ParseField TIMING_STATS = new ParseField("timings_stats"); + public static final ParseField TIMING_STATS = new ParseField("timing_stats"); public static final ConstructingObjectParser PARSER = new ConstructingObjectParser<>( NAME.getPreferredName(), true, diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java index e1e24f36b87..6096496e792 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/dataframe/stats/outlierdetection/OutlierDetectionStats.java @@ -26,7 +26,7 @@ public class OutlierDetectionStats implements AnalysisStats { public static final String TYPE_VALUE = "outlier_detection_stats"; public static final ParseField PARAMETERS = new ParseField("parameters"); - public static final ParseField TIMING_STATS = new ParseField("timings_stats"); + public static final ParseField TIMING_STATS = new ParseField("timing_stats"); public static final ConstructingObjectParser STRICT_PARSER = createParser(false); public static final ConstructingObjectParser LENIENT_PARSER = createParser(true);