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_evaluation_delay of datadog monitor #32784

Merged
merged 4 commits into from
Aug 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/ansible/modules/monitoring/datadog_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
required: false
default: null
version_added: "2.4"
evaluation_delay:
description: ["Time to delay evaluation (in seconds). It is effective for sparse values."]
required: false
default: null
version_added: "2.7"
id:
description: ["The id of the alert. If set, will be used instead of the name to locate the alert."]
required: false
Expand Down Expand Up @@ -192,6 +197,7 @@ def main():
locked=dict(required=False, default=False, type='bool'),
require_full_window=dict(required=False, default=None, type='bool'),
new_host_delay=dict(required=False, default=None),
evaluation_delay=dict(required=False, default=None),
id=dict(required=False)
)
)
Expand Down Expand Up @@ -297,7 +303,8 @@ def install_monitor(module):
"notify_audit": module.boolean(module.params['notify_audit']),
"locked": module.boolean(module.params['locked']),
"require_full_window": module.params['require_full_window'],
"new_host_delay": module.params['new_host_delay']
"new_host_delay": module.params['new_host_delay'],
"evaluation_delay": module.params['evaluation_delay']
}

if module.params['type'] == "service check":
Expand Down