Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: IterMonitors for paginated monitors #14

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

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