Changes
New Features
Support for `get_snapshot`
Add support for snapshots from the OneAgent
* Users can use `self.get_snapshot()` when running OneAgent extensions
* Users can also provide a snapshot file when running from `dt-sdk`, by default `snapshot.json`
python
process_snapshot = self.get_snapshot()
for entry in process_snapshot.entries:
for process in entry.processes:
if process.process_name in ("squid", "squid.exe")
print(process_snapshot.host_id) "HOST-524E3E2974F9AC2A"
print(process.pid) 2245656
print(process.properties.listening_ports) [3128]