diff --git a/crowdstrikeoauthapi_connector.py b/crowdstrikeoauthapi_connector.py index e5959f4..061877e 100644 --- a/crowdstrikeoauthapi_connector.py +++ b/crowdstrikeoauthapi_connector.py @@ -2761,6 +2761,7 @@ def _on_poll(self, param): if not self.is_poll_now(): try: + # Track timestamps to ensure ingesting new incidents last_ingestion_time = self._state.get("last_incident_timestamp", "") params["filter"] = f"modified_timestamp:>'{last_ingestion_time}'" except Exception as e: diff --git a/parse_cs_incidents.py b/parse_cs_incidents.py index fdf25de..4c560a2 100644 --- a/parse_cs_incidents.py +++ b/parse_cs_incidents.py @@ -128,7 +128,7 @@ def process_incidents(incidents): incident.get("start", "Unknown Time"), ) - # Set container properties + # Container properties container["description"] = incident.get("description", "No description available") container["source_data_identifier"] = incident.get("incident_id") container["severity"] = _get_incident_severity(incident.get("fine_score", 0))