From 4807b9f0cbe5419a20f7b7dc892cc1f3578e279a Mon Sep 17 00:00:00 2001 From: Ryan Miller Date: Thu, 20 Feb 2020 11:55:57 -0800 Subject: [PATCH] Add explicit limit of 1000 collectors for paginated APIs --- sumo_mgmt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumo_mgmt.py b/sumo_mgmt.py index b907ca1..e051cf4 100644 --- a/sumo_mgmt.py +++ b/sumo_mgmt.py @@ -229,7 +229,7 @@ def get_collectors(path, filters, aliveBeforeDays=0): offset = 0 while True: - payload = {'offset': offset} + payload = {'offset': offset, 'limit': 1000} if aliveBeforeDays > 0: payload.update({'aliveBeforeDays': aliveBeforeDays})