@@ -53,18 +53,19 @@ public class AnalysisConfig implements ToXContentObject, Writeable {
53
53
* Serialisation names
54
54
*/
55
55
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" );
68
69
69
70
public static final String ML_CATEGORY_FIELD = "mlcategory" ;
70
71
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
98
99
parser .declareBoolean (Builder ::setOverlappingBuckets , OVERLAPPING_BUCKETS );
99
100
parser .declareLong (Builder ::setResultFinalizationWindow , RESULT_FINALIZATION_WINDOW );
100
101
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 );
102
103
103
104
return parser ;
104
105
}
@@ -404,7 +405,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
404
405
builder .field (MULTIVARIATE_BY_FIELDS .getPreferredName (), multivariateByFields );
405
406
}
406
407
if (usePerPartitionNormalization ) {
407
- builder .field (USER_PER_PARTITION_NORMALIZATION .getPreferredName (), usePerPartitionNormalization );
408
+ builder .field (USE_PER_PARTITION_NORMALIZATION .getPreferredName (), usePerPartitionNormalization );
408
409
}
409
410
builder .endObject ();
410
411
return builder ;
0 commit comments