Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Add monitor and downtime APIs with integration tests. #115

Merged
merged 10 commits into from
Nov 17, 2014

Conversation

conorbranagan
Copy link
Contributor

Don't merge until new monitor UI is released


class MonitorApi(object):

def monitor(self, mtype, query, name=None, message=None, options=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

should we require name and message here because they're required in the backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are not actually required in the backend anymore. That was a bug initially but I have changed the backend now so it has the same logic as the alert API (choosing the query as the name if no name is given, same for message).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah! good to know

conorbranagan added a commit that referenced this pull request Nov 17, 2014
Add monitor and downtime APIs with integration tests.
@conorbranagan conorbranagan merged commit 61306be into master Nov 17, 2014
@conorbranagan conorbranagan deleted the conor/monitor-apis branch November 17, 2014 17:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants