-
Notifications
You must be signed in to change notification settings - Fork 306
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
Conversation
Co-Authored-By: jbarciauskas <jbarciauskas@users.noreply.github.com>
There was a problem hiding this 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.
datadog/api/distributions.py
Outdated
: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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
datadog/api/format.py
Outdated
now = time.time() | ||
points_lst = points if isinstance(points, list) else [points] | ||
|
||
def rec_parse(points_lst): |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated it
There was a problem hiding this 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?
Correct. |
Based on #308.
Move distributions to its own
api.Distribution
resource.Thanks again @jbarciauskas