sentinelone: count_agents takes agentVersion__gte and __lt too
Folded into the unreleased 1.16.0 entry, which now covers the three comparators added beside the agentVersion__gt the command already had. Sent together they bound a range, so a fleet can be counted on a band of builds rather than only above one. Empty ones are not sent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,11 +35,14 @@ def main():
|
||||
"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.
|
||||
# The four version comparators the console accepts, e.g. 23.4.2.6. Sent
|
||||
# together they bound a range: __gte with __lte counts the fleet on a
|
||||
# band of builds, __gt alone what is already past a target, __lte alone
|
||||
# what is still to be upgraded to it. The strict and inclusive pairs
|
||||
# differ only on the boundary version itself.
|
||||
"agentVersion__gt": inputs.get("agentVersion__gt"),
|
||||
# The other end of the same range: agents on that version or older, so a
|
||||
# target build counts as still to be upgraded rather than as done.
|
||||
"agentVersion__gte": inputs.get("agentVersion__gte"),
|
||||
"agentVersion__lt": inputs.get("agentVersion__lt"),
|
||||
"agentVersion__lte": inputs.get("agentVersion__lte"),
|
||||
# Comma-separated lists are re-joined so a hand-typed "connected, disconnected"
|
||||
# does not reach the API with the space inside the value.
|
||||
|
||||
Reference in New Issue
Block a user