Skip to content

Commit

Permalink
Merge branch 'main' into alertsAPI
Browse files Browse the repository at this point in the history
Signed-off-by: Riya <[email protected]>
  • Loading branch information
riysaxen-amzn authored Jun 11, 2024
2 parents ed64333 + 62e4453 commit f7f7dc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
import org.opensearch.common.lucene.uid.Versions;
import org.opensearch.commons.alerting.model.Alert;
import org.opensearch.commons.alerting.model.Table;
import org.opensearch.client.Client;
import org.opensearch.common.lucene.uid.Versions;
import org.opensearch.commons.alerting.model.ActionExecutionResult;
import org.opensearch.commons.alerting.model.Alert;
import org.opensearch.commons.authuser.User;
import org.opensearch.common.unit.TimeValue;
import org.opensearch.common.xcontent.LoggingDeprecationHandler;
import org.opensearch.common.xcontent.XContentFactory;
Expand All @@ -39,6 +44,12 @@
import org.opensearch.search.sort.SortOrder;
import org.opensearch.securityanalytics.action.CorrelationAckAlertsResponse;
import org.opensearch.securityanalytics.action.GetCorrelationAlertsResponse;
import org.opensearch.core.xcontent.XContentParserUtils;
import org.opensearch.index.query.BoolQueryBuilder;
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.search.SearchHit;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.opensearch.commons.alerting.model.CorrelationAlert;
import org.opensearch.securityanalytics.util.CorrelationIndices;
import java.io.IOException;
import java.time.Instant;
Expand Down Expand Up @@ -320,7 +331,7 @@ private CorrelationAlert getParsedCorrelationAlert(SearchHit hit) throws IOExcep
CorrelationAlert correlationAlert = CorrelationAlertsList.parse(xcp, hit.getId(), hit.getVersion());
return correlationAlert;
}

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
package org.opensearch.securityanalytics.correlation.alert;


import org.opensearch.commons.alerting.model.ActionExecutionResult;
import org.opensearch.commons.alerting.model.Alert;
import org.opensearch.commons.alerting.model.CorrelationAlert;
Expand Down Expand Up @@ -129,6 +130,7 @@ public static CorrelationAlert parse(XContentParser xcp, String id, long version
);
}


public List<CorrelationAlert> getCorrelationAlertList() {
return correlationAlertList;
}
Expand Down

0 comments on commit f7f7dc2

Please sign in to comment.