Skip to content

Conversation

manuq
Copy link
Contributor

@manuq manuq commented Sep 14, 2016

Allows iterating all the monitors, regardless of the getMonitors limit,
which defaults to 50.

IterMonitors is a Python generator. The API calls are done on demand,
using Python yield. Thus preventing more calls than needed.

Adds options 'offset' and 'limit' to getMonitors in order to implement
the pagination.

manuq and others added 8 commits September 14, 2016 16:34
Allows iterating all the monitors, regardless of the getMonitors limit,
which defaults to 50.

IterMonitors is a Python generator.  The API calls are done on demand,
using Python yield.  Thus preventing more calls than needed.

Adds options 'offset' and 'limit' to getMonitors in order to implement
the pagination.
getMonitorByName now works with more than 50 monitors, because it makes
use of the pagination added in iterMonitors.

getMonitorByName and getMonitorById now return the whole monitor
information. Previously they returned just status and
alltimeuptimeratio. They do so reusing getMonitors.
Ensure Uniform noJsonCallBack usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant