Hello all ,
I'm sending you the new version of the attached Comlaude script, with a few modifications:
- I added the “_deserialize_json_string” function to convert the JSON-formatted text string into a python object, which eliminates json errors when executing on OpenCTI.
- I Added “_validate_required_fields” function to check that all required data (mandatory fields) are present and not empty, which also prevents errors in OpenCTI executions
- Addition of the “_ping_connector” function, which pings the connector every 5 minutes to keep it active (by modifying the “run” function).
- Status tracking with “last_run” variable in format “{”last_run“: ‘2024-11-18T15:13:36Z’}”.
Best regards Mohamed MTALSI-MERIMI
### Proposed changes
*
*
### Related issues
* https://github.com/OpenCTI-Platform/connectors/pull/2279
*
### Checklist
[ ] I consider the submitted work as finished
[ ] I tested the code for its functionality using different use cases
[ ] I added/update the relevant documentation (either on github or on notion)
[ ] Where necessary I refactored code to improve the overall quality
Further comments