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

continuationToken is not returned from a get_metric_details call in the metric_api #58

Open
mdennehy opened this issue Nov 5, 2019 · 0 comments

Comments

@mdennehy
Copy link

mdennehy commented Nov 5, 2019

For example, we have to do this to get more than the limit of results:

    api_response = metric_api.get_metric_details(metric, l=1000)
    data = json.loads(client.last_response.data)
    if len(api_response.hosts) == 1000:
        cursor = data['continuationToken']

This obviously isn't great, because we shouldn't be diving that deep into the client structure for a result from an API call.

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

No branches or pull requests

1 participant