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 monitor and monitor groups search API endpoints #299

Merged
merged 2 commits into from
Oct 16, 2018

Conversation

isaacdd
Copy link
Contributor

@isaacdd isaacdd commented Oct 13, 2018

datadog/api/monitors.py Outdated Show resolved Hide resolved
Copy link

@athap athap left a comment

Choose a reason for hiding this comment

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

One nit comment
👍

CHANGELOG.md Outdated
@@ -1,5 +1,8 @@
CHANGELOG
=========
# 0.23.0 / 2018-10-13
Copy link
Member

Choose a reason for hiding this comment

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

Can you change the date to "Unreleased" for now? We generally set it after the pypi package is released

@classmethod
def search_monitor_groups(cls, **params):
"""
Search monitor monitor groups
Copy link
Member

Choose a reason for hiding this comment

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

We generally avoid repeating the resource name in the method (for example api.Monitor.get instead of api.Monitor.get_monitor). For this reason, I think it'd be more consistent to rename both methods search and search_groups. What do you think?

datadog/api/monitors.py Outdated Show resolved Hide resolved
@yannmh yannmh merged commit 01fb086 into DataDog:master Oct 16, 2018
@isaacdd isaacdd deleted the monitor_search_apis branch October 16, 2018 17:53
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.

None yet

3 participants