fix(harfanglab): drop the 50 KB filters catalogue from list outputs (1.7.1)

HarfangLab's alert and threat list endpoints echo, on every call, the
catalogue of every filterable field — about 50 KB, unrelated to the
results. get_security_events, get_alerts and get_threats now drop it
before printing, so a fetch carries the alerts and little else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CXFMuDDLohs4qnL12mBJoP
This commit is contained in:
2026-10-07 12:42:32 +00:00
parent db9a45c9bc
commit 45df291eeb
4 changed files with 17 additions and 5 deletions
@@ -39,7 +39,11 @@ def main():
"creation_date__gte": inputs.get("created_after"),
}
url = base + "/api/data/alert/alert/Threat/" + qs(params)
print(json.dumps(request("GET", url, headers)))
out = request("GET", url, headers)
# The list endpoints echo the catalogue of filterable fields (~50 KB) on
# every call; it says nothing about the results, so it is not passed on.
out.pop("filters", None)
print(json.dumps(out))
try: