Skip to content

Commit c456ca1

Browse files
AlexSanchez-bitsanchez.saez.alex01@gmail.com
authored andcommitted
fix[backend](tags): removed false positive alerts from releaseToOpen schedule
1 parent a21ec9d commit c456ca1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/src/main/java/com/park/utmstack/service/UtmAlertTagRuleService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ private void releaseToOpen(Instant rulesEvaluationStart) {
182182
List<FilterType> filters = new ArrayList<>();
183183
filters.add(new FilterType(Constants.alertStatus, OperatorType.IS, AlertStatus.AUTOMATIC_REVIEW.getCode()));
184184
filters.add(new FilterType(Constants.timestamp, OperatorType.IS_LESS_THAN_OR_EQUALS, rulesEvaluationStart.toString()));
185+
filters.add(new FilterType(Constants.alertTags, OperatorType.DOES_NOT_CONTAIN, Constants.FALSE_POSITIVE_TAG));
185186

186187
Query query = SearchUtil.toQuery(filters);
187188
String indexPattern = Constants.SYS_INDEX_PATTERN.get(SystemIndexPattern.ALERTS);

0 commit comments

Comments
 (0)