Skip to content

Commit

Permalink
Merge pull request #22 from SumoLogic/rmiller-explicit-limit-for-pagi…
Browse files Browse the repository at this point in the history
…nated-apis

Add explicit limit of 1000 collectors for paginated APIs
  • Loading branch information
Ryan Miller authored Feb 20, 2020
2 parents 048289e + 4807b9f commit 87cabef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sumo_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 87cabef

Please sign in to comment.