etsy/opsweekly — pull request #30 by saintaardvark (2014-11-27 04:24:15+00:00)
Title: PagerDuty pagination

PagerDuty returns a max of 100 incidents at a time; if there are more than 100, it indicates this with the "total" and "offset" variables returned with the request. This code accounts for this, looping through to get all the incidents. Things must be preeeetty easy at Etsy...:-)

I've also thrown in a bit of logging; feel free to leave that out if it's not appropriate.

Thanks very much!