Commit 6089c28 1 parent de8061a commit 6089c28 Copy full SHA for 6089c28
File tree 3 files changed +4
-4
lines changed
src/main/java/org/opensearch
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public static ThresholdArrays processDetectorRules(AnomalyDetector detector) {
54
54
for (Rule rule : rules ) {
55
55
for (Condition condition : rule .getConditions ()) {
56
56
if (condition .getThresholdType () != ThresholdType .ACTUAL_IS_BELOW_EXPECTED
57
- || condition .getThresholdType () != ThresholdType .ACTUAL_IS_OVER_EXPECTED ) {
57
+ && condition .getThresholdType () != ThresholdType .ACTUAL_IS_OVER_EXPECTED ) {
58
58
processCondition (
59
59
condition ,
60
60
featureNames ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ public static Condition parse(XContentParser parser) throws IOException {
70
70
case THRESHOLD_TYPE_FIELD :
71
71
thresholdType = ThresholdType .valueOf (parser .text ().toUpperCase (Locale .ROOT ));
72
72
break ;
73
- case "operator" :
73
+ case OPERATOR_FIELD :
74
74
if (parser .currentToken () == XContentParser .Token .VALUE_NULL ) {
75
75
operator = null ; // Set operator to null if the field is missing
76
76
} else {
@@ -79,7 +79,7 @@ public static Condition parse(XContentParser parser) throws IOException {
79
79
break ;
80
80
case VALUE_FIELD :
81
81
if (parser .currentToken () == XContentParser .Token .VALUE_NULL ) {
82
- value = null ;
82
+ value = null ; // Set value to null if the field is missing
83
83
} else {
84
84
value = parser .doubleValue ();
85
85
}
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public boolean shouldSave() {
90
90
}
91
91
92
92
public abstract List <IndexableResultType > toIndexableResults (
93
- Config configId ,
93
+ Config config ,
94
94
Instant dataStartInstant ,
95
95
Instant dataEndInstant ,
96
96
Instant executionStartInstant ,
You can’t perform that action at this time.
0 commit comments