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

Add support for distributions to threadstats and the API #312

Merged
merged 11 commits into from
Nov 12, 2018
Merged

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Nov 7, 2018

Based on #308.
Move distributions to its own api.Distribution resource.

Thanks again @jbarciauskas

Copy link
Contributor

@jbarciauskas jbarciauskas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of optional comments, overall looks good to me.

:param tags: list of tags associated with the metric.
:type tags: string list
:param type: type of the metric
:type type: 'gauge' or 'count' or 'rate' string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should just remove this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

now = time.time()
points_lst = points if isinstance(points, list) else [points]

def rec_parse(points_lst):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstepniowski wanted to unwind this into an iterative solution rather than recursive, which we might as well do if we're refactoring

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated it

Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM! Docs are auto-generated right?

@yannmh
Copy link
Member Author

yannmh commented Nov 9, 2018

Correct.

@yannmh yannmh merged commit 590f619 into master Nov 12, 2018
@yannmh yannmh deleted the yann/dist-api branch November 12, 2018 15:06
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.

3 participants