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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user