Skip to content

[MA-665] Add support for the Monitor.validate endpoint.#487

Merged
zippolyte merged 8 commits intomasterfrom
armcburney/monitor_validate_endpoint
Dec 10, 2019
Merged

[MA-665] Add support for the Monitor.validate endpoint.#487
zippolyte merged 8 commits intomasterfrom
armcburney/monitor_validate_endpoint

Conversation

@armcburney
Copy link
Copy Markdown
Member

@DataDog/monitor-app


The validate endpoint can be used to check if a monitor definition is valid.

@armcburney armcburney requested a review from a team as a code owner November 27, 2019 19:12
"""
@classmethod
def _trigger_class_action(cls, method, name, id=None, params=None, **body):
def _trigger_class_action(cls, method, action_name, id=None, params=None, **body):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I renamed the name parameter to action_name because when you splat the **body with a name in the dict, it causes there to be a conflict because of two name parameters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test is failing for embed because of that name change

@armcburney
Copy link
Copy Markdown
Member Author

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown

@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.

Just one nit

@armcburney armcburney requested a review from zippolyte November 28, 2019 20:19
@zippolyte
Copy link
Copy Markdown
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@zippolyte
Copy link
Copy Markdown
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@armcburney
Copy link
Copy Markdown
Member Author

@zippolyte, the integration test failure was due to an unrelated test, which has been flaky. Is it okay to merge this?

@zippolyte zippolyte force-pushed the armcburney/monitor_validate_endpoint branch from 0321067 to 8468eb9 Compare December 10, 2019 08:54
@zippolyte
Copy link
Copy Markdown
Contributor

/azp run DataDog.datadogpy.integration

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@zippolyte zippolyte merged commit 3d2df7d into master Dec 10, 2019
@zippolyte zippolyte deleted the armcburney/monitor_validate_endpoint branch December 10, 2019 09:15
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