@@ -53,18 +53,19 @@ public class AnalysisConfig implements ToXContentObject, Writeable {
5353 * Serialisation names
5454 */
5555 public static final ParseField ANALYSIS_CONFIG = new ParseField ("analysis_config" );
56- private static final ParseField BUCKET_SPAN = new ParseField ("bucket_span" );
57- private static final ParseField CATEGORIZATION_FIELD_NAME = new ParseField ("categorization_field_name" );
58- static final ParseField CATEGORIZATION_FILTERS = new ParseField ("categorization_filters" );
59- private static final ParseField CATEGORIZATION_ANALYZER = CategorizationAnalyzerConfig .CATEGORIZATION_ANALYZER ;
60- private static final ParseField LATENCY = new ParseField ("latency" );
61- private static final ParseField SUMMARY_COUNT_FIELD_NAME = new ParseField ("summary_count_field_name" );
62- private static final ParseField DETECTORS = new ParseField ("detectors" );
63- private static final ParseField INFLUENCERS = new ParseField ("influencers" );
64- private static final ParseField OVERLAPPING_BUCKETS = new ParseField ("overlapping_buckets" );
65- private static final ParseField RESULT_FINALIZATION_WINDOW = new ParseField ("result_finalization_window" );
66- private static final ParseField MULTIVARIATE_BY_FIELDS = new ParseField ("multivariate_by_fields" );
67- private static final ParseField USER_PER_PARTITION_NORMALIZATION = new ParseField ("use_per_partition_normalization" );
56+
57+ public static final ParseField BUCKET_SPAN = new ParseField ("bucket_span" );
58+ public static final ParseField CATEGORIZATION_FIELD_NAME = new ParseField ("categorization_field_name" );
59+ public static final ParseField CATEGORIZATION_FILTERS = new ParseField ("categorization_filters" );
60+ public static final ParseField CATEGORIZATION_ANALYZER = CategorizationAnalyzerConfig .CATEGORIZATION_ANALYZER ;
61+ public static final ParseField LATENCY = new ParseField ("latency" );
62+ public static final ParseField SUMMARY_COUNT_FIELD_NAME = new ParseField ("summary_count_field_name" );
63+ public static final ParseField DETECTORS = new ParseField ("detectors" );
64+ public static final ParseField INFLUENCERS = new ParseField ("influencers" );
65+ public static final ParseField OVERLAPPING_BUCKETS = new ParseField ("overlapping_buckets" );
66+ public static final ParseField RESULT_FINALIZATION_WINDOW = new ParseField ("result_finalization_window" );
67+ public static final ParseField MULTIVARIATE_BY_FIELDS = new ParseField ("multivariate_by_fields" );
68+ public static final ParseField USE_PER_PARTITION_NORMALIZATION = new ParseField ("use_per_partition_normalization" );
6869
6970 public static final String ML_CATEGORY_FIELD = "mlcategory" ;
7071 public static final Set <String > AUTO_CREATED_FIELDS = new HashSet <>(Collections .singletonList (ML_CATEGORY_FIELD ));
@@ -98,7 +99,7 @@ private static ConstructingObjectParser<AnalysisConfig.Builder, Void> createPars
9899 parser .declareBoolean (Builder ::setOverlappingBuckets , OVERLAPPING_BUCKETS );
99100 parser .declareLong (Builder ::setResultFinalizationWindow , RESULT_FINALIZATION_WINDOW );
100101 parser .declareBoolean (Builder ::setMultivariateByFields , MULTIVARIATE_BY_FIELDS );
101- parser .declareBoolean (Builder ::setUsePerPartitionNormalization , USER_PER_PARTITION_NORMALIZATION );
102+ parser .declareBoolean (Builder ::setUsePerPartitionNormalization , USE_PER_PARTITION_NORMALIZATION );
102103
103104 return parser ;
104105 }
@@ -404,7 +405,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
404405 builder .field (MULTIVARIATE_BY_FIELDS .getPreferredName (), multivariateByFields );
405406 }
406407 if (usePerPartitionNormalization ) {
407- builder .field (USER_PER_PARTITION_NORMALIZATION .getPreferredName (), usePerPartitionNormalization );
408+ builder .field (USE_PER_PARTITION_NORMALIZATION .getPreferredName (), usePerPartitionNormalization );
408409 }
409410 builder .endObject ();
410411 return builder ;
0 commit comments