Skip to content

Commit

Permalink
Netskope - fix trigger configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lvoloshyn-sekoia committed Dec 13, 2024
1 parent 08530d1 commit fbefb6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Netskope/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"name": "Netskope",
"uuid": "1e3f2e33-fb9c-4387-bcf7-8d7ece37f913",
"slug": "netskope",
"version": "1.11.0",
"version": "1.11.1",
"categories": [
"Network"
]
Expand Down
12 changes: 11 additions & 1 deletion Netskope/netskope_modules/connector_pull_events_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ def dataexports(self) -> list[tuple[NetskopeEventType, NetskopeAlertType | None]
(NetskopeEventType.ALERT, NetskopeAlertType.UBA),
]

@cached_property
def configuration_uuid(self) -> str | None:
if self.module.trigger_configuration_uuid is not None:
return self.module.trigger_configuration_uuid

elif self.module.connector_configuration_uuid is not None:
return self.module.connector_configuration_uuid

return None

def get_index_name(self, event_type: NetskopeEventType, alert_type: NetskopeAlertType | None) -> str:
"""
return a index name for the iterator
Expand All @@ -188,7 +198,7 @@ def get_index_name(self, event_type: NetskopeEventType, alert_type: NetskopeAler
if self.configuration.consumer_group and len(self.configuration.consumer_group) > 0:
return self.configuration.consumer_group

return get_index_name(self.module.trigger_configuration_uuid, event_type, alert_type)
return get_index_name(self.configuration_uuid, event_type, alert_type)

def create_iterator(self, event_type: NetskopeEventType, alert_type: NetskopeAlertType | None) -> NetskopeIterator:
params: dict[str, str] = {
Expand Down

0 comments on commit fbefb6a

Please sign in to comment.