[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
This commit is contained in:
Dimitris Athanasiou 2020-03-23 19:46:39 +02:00 committed by GitHub
parent 960d1fb578
commit 08a8345269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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<OutlierDetectionStats, Void> PARSER = new ConstructingObjectParser<>(
NAME.getPreferredName(), true,

View File

@ -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<OutlierDetectionStats, Void> STRICT_PARSER = createParser(false);
public static final ConstructingObjectParser<OutlierDetectionStats, Void> LENIENT_PARSER = createParser(true);