-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
index threat intel monitor rest api (#1057)
* index threat intel monitor api Signed-off-by: Surya Sashank Nistala <[email protected]> * address review comments Signed-off-by: Surya Sashank Nistala <[email protected]> --------- Signed-off-by: Surya Sashank Nistala <[email protected]>
- Loading branch information
Showing
18 changed files
with
858 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...pensearch/securityanalytics/threatIntel/action/monitor/IndexThreatIntelMonitorAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.opensearch.securityanalytics.threatIntel.action.monitor; | ||
|
||
import org.opensearch.action.ActionType; | ||
import org.opensearch.securityanalytics.threatIntel.action.monitor.response.IndexThreatIntelMonitorResponse; | ||
|
||
import static org.opensearch.securityanalytics.threatIntel.sacommons.monitor.ThreatIntelMonitorActions.INDEX_THREAT_INTEL_MONITOR_ACTION_NAME; | ||
|
||
|
||
public class IndexThreatIntelMonitorAction extends ActionType<IndexThreatIntelMonitorResponse> { | ||
|
||
public static final IndexThreatIntelMonitorAction INSTANCE = new IndexThreatIntelMonitorAction(); | ||
public static final String NAME = INDEX_THREAT_INTEL_MONITOR_ACTION_NAME; | ||
|
||
private IndexThreatIntelMonitorAction() { | ||
super(NAME, IndexThreatIntelMonitorResponse::new); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...g/opensearch/securityanalytics/threatIntel/action/monitor/IocScanMonitorFanOutAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.opensearch.securityanalytics.threatIntel.action.monitor; | ||
|
||
import org.opensearch.action.ActionType; | ||
import org.opensearch.commons.alerting.action.DocLevelMonitorFanOutResponse; | ||
import org.opensearch.core.common.io.stream.Writeable; | ||
|
||
/** | ||
* Ioc Scan Monitor fan out action that distributes the monitor runner logic to mutliple data node. | ||
*/ | ||
public class IocScanMonitorFanOutAction extends ActionType<DocLevelMonitorFanOutResponse> { | ||
/** | ||
* @param name The name of the action, must be unique across actions. | ||
* @param docLevelMonitorFanOutResponseReader A reader for the response type | ||
*/ | ||
public IocScanMonitorFanOutAction(String name, Writeable.Reader<DocLevelMonitorFanOutResponse> docLevelMonitorFanOutResponseReader) { | ||
super(name, docLevelMonitorFanOutResponseReader); | ||
} | ||
|
||
} |
Oops, something went wrong.