-
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
metric query API support #45
Conversation
829de96
to
eabd2bf
Compare
|
||
# `from` is a reserved keyword in Python, therefore | ||
# `api.Metric.query(from=...)` is not permited | ||
# -> map `start` to `from` and `end` to `to` |
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.
It's better anyway since the rest of the api seems to expect start
and end
parameters when searching for something (I checked api//events.py
)
Really nice @yannmh ! |
:type start: POSIX timestamp | ||
|
||
:param end: timestamp of the end of the query. | ||
:param end: query start timestamp |
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.
typo s/start/end
eabd2bf
to
ce56efb
Compare
ce56efb
to
51f755e
Compare
Added a real integration test. Thanks for your feedback @degemer ! |
_timeout
parameter dynamically