feat(sentinelone): count-agents can be scoped to an account

A multi-tenant console answered one number for the whole estate.
accountIds narrows the count to the accounts asked for, the way
get_threats and get_alerts already do at fetch time.
This commit is contained in:
2026-08-14 23:40:13 +02:00
parent a5095d3f0f
commit 93309ac74d
2 changed files with 5 additions and 2 deletions
@@ -29,6 +29,8 @@ def main():
"scan_status": inputs.get("scan_status"),
"siteIds": inputs.get("siteIds"),
"groupIds": inputs.get("groupIds"),
# Scopes the count to one or more accounts of a multi-tenant console.
"accountIds": ",".join(csv(inputs.get("accountIds"))),
# Agents strictly newer than the given version, e.g. 23.4.2.6 — the console
# answers with the fleet still trailing behind a target build.
"agentVersion__gt": inputs.get("agentVersion__gt"),