pycti 5.12.13__tar.gz → 5.12.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pycti might be problematic. Click here for more details.
- {pycti-5.12.13 → pycti-5.12.14}/PKG-INFO +1 -1
- {pycti-5.12.13 → pycti-5.12.14}/pycti/__init__.py +1 -1
- {pycti-5.12.13 → pycti-5.12.14}/pycti/connector/opencti_connector_helper.py +12 -8
- {pycti-5.12.13 → pycti-5.12.14}/pycti.egg-info/PKG-INFO +1 -1
- {pycti-5.12.13 → pycti-5.12.14}/LICENSE +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/README.md +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/api/__init__.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/api/opencti_api_client.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/api/opencti_api_connector.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/api/opencti_api_playbook.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/api/opencti_api_work.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/connector/__init__.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/connector/opencti_connector.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/connector/opencti_metric_handler.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/__init__.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_attack_pattern.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_campaign.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_case_incident.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_case_rfi.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_case_rft.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_channel.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_course_of_action.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_data_component.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_data_source.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_event.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_external_reference.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_feedback.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_grouping.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_identity.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_incident.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_indicator.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_infrastructure.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_intrusion_set.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_kill_chain_phase.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_label.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_language.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_location.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_malware.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_malware_analysis.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_marking_definition.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_narrative.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_note.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_observed_data.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_opinion.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_report.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_core_object.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_core_relationship.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_cyber_observable.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_domain_object.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_nested_ref_relationship.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_object_or_stix_relationship.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_stix_sighting_relationship.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_task.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_threat_actor.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_threat_actor_group.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_threat_actor_individual.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_tool.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_vocabulary.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/entities/opencti_vulnerability.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/__init__.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/constants.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/opencti_stix2.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/opencti_stix2_splitter.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/opencti_stix2_update.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti/utils/opencti_stix2_utils.py +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti.egg-info/SOURCES.txt +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti.egg-info/dependency_links.txt +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti.egg-info/requires.txt +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pycti.egg-info/top_level.txt +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/pyproject.toml +0 -0
- {pycti-5.12.13 → pycti-5.12.14}/setup.cfg +0 -0
|
@@ -906,17 +906,21 @@ class OpenCTIConnectorHelper: # pylint: disable=too-many-public-methods
|
|
|
906
906
|
def get_connector(self) -> OpenCTIConnector:
|
|
907
907
|
return self.connector
|
|
908
908
|
|
|
909
|
-
def log_error(self, msg: str) -> None:
|
|
910
|
-
|
|
909
|
+
def log_error(self, msg: str, meta=None) -> None:
|
|
910
|
+
extra = None if meta is None else {"attributes": meta}
|
|
911
|
+
LOGGER.error(msg, exc_info=1, extra=extra)
|
|
911
912
|
|
|
912
|
-
def log_info(self, msg: str) -> None:
|
|
913
|
-
|
|
913
|
+
def log_info(self, msg: str, meta=None) -> None:
|
|
914
|
+
extra = None if meta is None else {"attributes": meta}
|
|
915
|
+
LOGGER.info(msg, extra=extra)
|
|
914
916
|
|
|
915
|
-
def log_debug(self, msg: str) -> None:
|
|
916
|
-
|
|
917
|
+
def log_debug(self, msg: str, meta=None) -> None:
|
|
918
|
+
extra = None if meta is None else {"attributes": meta}
|
|
919
|
+
LOGGER.debug(msg, extra=extra)
|
|
917
920
|
|
|
918
|
-
def log_warning(self, msg: str) -> None:
|
|
919
|
-
|
|
921
|
+
def log_warning(self, msg: str, meta=None) -> None:
|
|
922
|
+
extra = None if meta is None else {"attributes": meta}
|
|
923
|
+
LOGGER.warning(msg, extra=extra)
|
|
920
924
|
|
|
921
925
|
def date_now(self) -> str:
|
|
922
926
|
"""get the current date (UTC)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|