f3nris
505c518bf8
feat(harfanglab): count agents by filter without listing them (1.6.0)
...
The agent collection is DRF-paginated, so `count` already carries the
filtered total. endpoint_count asks for limit=1 and reads it, instead of
pulling up to 10000 agent records back through the playbook the way
endpoint_search does — and endpoint_search only filters on hostname.
Filters cover the documented agent query parameters (hostname, network,
os, version, status, isolation_state, tenant), add lastseen/firstseen
bounds over the DRF range lookups, and keep a raw `filters` escape hatch
for anything else the instance accepts.
The API silently drops a query parameter it does not recognise as a
filter, which turns a typo into a plausible-looking fleet-wide total, so
the fleet `total` is returned next to `count` to make that case visible.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com >
2026-09-21 12:29:53 +00:00
..
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-11 22:33:10 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:41:43 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:15:54 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-11 22:39:29 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 00:25:51 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 16:07:37 +02:00
2026-09-01 22:47:46 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 21:59:05 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 15:49:16 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 00:48:03 +02:00
2026-09-08 12:55:20 +02:00
2026-07-13 12:08:48 +02:00
2026-07-12 22:59:19 +02:00
2026-07-13 12:15:50 +02:00
2026-07-12 22:59:20 +02:00
2026-07-13 12:12:34 +02:00
2026-07-13 12:08:49 +02:00
2026-07-12 22:43:16 +02:00
2026-07-12 22:59:18 +02:00
2026-07-12 23:02:11 +02:00
2026-07-12 22:49:28 +02:00
2026-07-13 12:12:35 +02:00
2026-07-13 12:08:49 +02:00
2026-07-12 23:02:10 +02:00
2026-07-13 12:12:34 +02:00
2026-07-13 12:15:50 +02:00
2026-07-12 23:02:11 +02:00
2026-07-12 22:43:17 +02:00
2026-07-13 12:15:49 +02:00
2026-07-12 22:49:30 +02:00
2026-07-12 22:56:36 +02:00
2026-07-12 22:43:17 +02:00
2026-07-12 22:56:36 +02:00
2026-07-12 22:49:29 +02:00
2026-07-12 22:56:35 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 16:12:38 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 15:08:50 +02:00
2026-07-11 22:33:09 +02:00
2026-09-21 12:29:53 +00:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:15:53 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 15:49:17 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-08-05 21:01:43 +02:00
2026-07-11 22:58:17 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-11 22:39:29 +02:00
2026-07-12 14:58:07 +02:00
2026-07-12 00:15:12 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 21:53:58 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-06-27 16:20:53 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-06-26 17:44:54 +02:00
2026-09-08 12:55:20 +02:00
2026-09-19 19:29:09 +00:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-11 23:46:35 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-15 19:18:49 +02:00
2026-09-18 13:22:58 +00:00
2026-09-08 12:55:20 +02:00
2026-06-27 15:19:40 +02:00
2026-06-27 15:19:40 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:41:42 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 21:37:31 +02:00
2026-07-11 22:48:48 +02:00
2026-06-27 15:04:22 +02:00
2026-09-08 12:55:20 +02:00
2026-09-17 14:45:22 +00:00
2026-06-27 15:34:42 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-06-26 00:18:06 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 15:18:48 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 15:08:51 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:58:07 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:15:54 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-06-27 15:53:22 +02:00
2026-06-27 15:34:42 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 16:07:38 +02:00
2026-09-18 08:25:34 +00:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 14:58:08 +02:00
2026-09-08 12:55:20 +02:00
2026-09-08 12:55:20 +02:00
2026-07-12 00:37:11 +02:00