Compare commits

..

2 Commits

Author SHA1 Message Date
f3nris dd2b4629a1 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>
2026-09-17 14:45:22 +00:00
f3nris 741db61543 sentinelone 1.16.0: count_agents takes agentVersion__lte
The other end of the agentVersion__gt range the command already had:
agents on the given version or older, so a target build counts as
still to be upgraded rather than as already done. Left empty the
filter is not sent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 14:43:00 +00:00
2 changed files with 13 additions and 4 deletions
File diff suppressed because one or more lines are too long
@@ -35,9 +35,15 @@ 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"),
"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.
"networkStatuses": ",".join(csv(inputs.get("networkStatuses"))),