@@ -1000,14 +1000,14 @@ public void testParseAnomalyDetector_withCustomIndex_withCustomResultIndexTTL()
1000
1000
1001
1001
public void testParseAnomalyDetector_withCustomIndex_withFlattenResultIndexMapping () throws IOException {
1002
1002
String detectorString = "{\" name\" :\" AhtYYGWTgqkzairTchcs\" ,\" description\" :\" iIiAVPMyFgnFlEniLbMyfJxyoGvJAl\" ,"
1003
- + "\" time_field\" :\" HmdFH\" ,\" indices\" :[\" ffsBF\" ],\" filter_query\" :{\" bool\" :{\" filter\" :[{\" exists\" :"
1004
- + "{\" field\" :\" value\" ,\" boost\" :1}}],\" adjust_pure_negative\" :true,\" boost\" :1}},\" window_delay\" :"
1005
- + "{\" period\" :{\" interval\" :2,\" unit\" :\" Minutes\" }},\" shingle_size\" :8,\" schema_version\" :-512063255,"
1006
- + "\" feature_attributes\" :[{\" feature_id\" :\" OTYJs\" ,\" feature_name\" :\" eYYCM\" ,\" feature_enabled\" :false,"
1007
- + "\" aggregation_query\" :{\" XzewX\" :{\" value_count\" :{\" field\" :\" ok\" }}}}],\" recency_emphasis\" :3342,"
1008
- + "\" history\" :62,\" last_update_time\" :1717192049845,\" category_field\" :[\" Tcqcb\" ],\" result_index\" :"
1009
- + "\" opensearch-ad-plugin-result-test\" ,\" imputation_option\" :{\" method\" :\" ZERO\" },\" suggested_seasonality\" :64,\" detection_interval\" :{\" period\" :"
1010
- + "{\" interval\" :5,\" unit\" :\" Minutes\" }},\" detector_type\" :\" MULTI_ENTITY\" ,\" rules\" :[],\" flatten_custom_result_index\" :true}" ;
1003
+ + "\" time_field\" :\" HmdFH\" ,\" indices\" :[\" ffsBF\" ],\" filter_query\" :{\" bool\" :{\" filter\" :[{\" exists\" :"
1004
+ + "{\" field\" :\" value\" ,\" boost\" :1}}],\" adjust_pure_negative\" :true,\" boost\" :1}},\" window_delay\" :"
1005
+ + "{\" period\" :{\" interval\" :2,\" unit\" :\" Minutes\" }},\" shingle_size\" :8,\" schema_version\" :-512063255,"
1006
+ + "\" feature_attributes\" :[{\" feature_id\" :\" OTYJs\" ,\" feature_name\" :\" eYYCM\" ,\" feature_enabled\" :false,"
1007
+ + "\" aggregation_query\" :{\" XzewX\" :{\" value_count\" :{\" field\" :\" ok\" }}}}],\" recency_emphasis\" :3342,"
1008
+ + "\" history\" :62,\" last_update_time\" :1717192049845,\" category_field\" :[\" Tcqcb\" ],\" result_index\" :"
1009
+ + "\" opensearch-ad-plugin-result-test\" ,\" imputation_option\" :{\" method\" :\" ZERO\" },\" suggested_seasonality\" :64,\" detection_interval\" :{\" period\" :"
1010
+ + "{\" interval\" :5,\" unit\" :\" Minutes\" }},\" detector_type\" :\" MULTI_ENTITY\" ,\" rules\" :[],\" flatten_custom_result_index\" :true}" ;
1011
1011
AnomalyDetector parsedDetector = AnomalyDetector .parse (TestHelpers .parser (detectorString ), "id" , 1L , null , null );
1012
1012
assertEquals (true , (boolean ) parsedDetector .getFlattenResultIndexMapping ());
1013
1013
}
0 commit comments