Skip to content

Commit

Permalink
fix action names
Browse files Browse the repository at this point in the history
Signed-off-by: Joanne Wang <[email protected]>
  • Loading branch information
jowg-amazon committed Jun 27, 2024
1 parent a52b7c1 commit adc305b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class ListIOCsAction extends ActionType<ListIOCsActionResponse> {
public static final ListIOCsAction INSTANCE = new ListIOCsAction();
public static final String NAME = "cluster:admin/opensearch/securityanalytics/iocs/list";
public static final String NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/iocs/list";

public ListIOCsAction() {
super(NAME, ListIOCsActionResponse::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class GetIocFindingsAction extends ActionType<GetIocFindingsResponse> {

public static final GetIocFindingsAction INSTANCE = new GetIocFindingsAction();
public static final String NAME = "cluster:admin/opensearch/securityanalytics/iocs/findings/get";
public static final String NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/iocs/findings/get";

public GetIocFindingsAction() {
super(NAME, GetIocFindingsResponse::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class PutTIFJobAction extends ActionType<AcknowledgedResponse> {
/**
* Put tif job action name
*/
public static final String NAME = "cluster:admin/security_analytics/tifjob/put";
public static final String NAME = "cluster:admin/opensearch/securityanalytics/tifjob/put";

private PutTIFJobAction() {
super(NAME, AcknowledgedResponse::new);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

public class ThreatIntelMonitorRunner extends RemoteMonitorRunner {

public static final String THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/opensearch/security_analytics/threatIntel/monitor/fanout";
public static final String FAN_OUT_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/monitor/fanout";
public static final String FAN_OUT_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/monitors/fanout";
public static final String THREAT_INTEL_MONITOR_TYPE = "ti_doc_level_monitor";

public static final String SAMPLE_REMOTE_DOC_LEVEL_MONITOR_RUNNER_INDEX = ".opensearch-alerting-sample-remote-doc-level-monitor";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
package org.opensearch.securityanalytics.threatIntel.sacommons;

public class IndexTIFSourceConfigAction {
public static final String INDEX_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/security_analytics/tifSource/write";
public static final String GET_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/security_analytics/tifSource/get";
public static final String DELETE_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/security_analytics/tifSource/delete";
public static final String SEARCH_TIF_SOURCE_CONFIGS_ACTION_NAME = "cluster:admin/security_analytics/tifSource/search";
public static final String REFRESH_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/security_analytics/tifSource/refresh";
public static final String INDEX_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/sources/write";
public static final String GET_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/sources/get";
public static final String DELETE_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/sources/delete";
public static final String SEARCH_TIF_SOURCE_CONFIGS_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/sources/search";
public static final String REFRESH_TIF_SOURCE_CONFIG_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/sources/refresh";
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.opensearch.securityanalytics.threatIntel.sacommons.monitor;

public class ThreatIntelMonitorActions {
public static final String INDEX_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/monitor/write";
public static final String SEARCH_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/monitor/search";
public static final String DELETE_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/monitor/delete";
public static final String GET_THREAT_INTEL_ALERTS_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/alerts/get";
public static final String UPDATE_THREAT_INTEL_ALERT_STATUS_ACTION_NAME = "cluster:admin/security_analytics/threatIntel/alerts/status/update";
public static final String INDEX_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/monitors/write";
public static final String SEARCH_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/monitors/search";
public static final String DELETE_THREAT_INTEL_MONITOR_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/monitors/delete";
public static final String GET_THREAT_INTEL_ALERTS_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/alerts/get";
public static final String UPDATE_THREAT_INTEL_ALERT_STATUS_ACTION_NAME = "cluster:admin/opensearch/securityanalytics/threatIntel/alerts/status/update";
}

0 comments on commit adc305b

Please sign in to comment.