add_evaluation_delay of datadog monitor (#32784)
* add_evaluation_delay of datadog monitor * fix version number * fix version number * update version num
This commit is contained in:
parent
661172ab40
commit
e3dedb8df5
1 changed files with 8 additions and 1 deletions
|
@ -97,6 +97,11 @@ options:
|
|||
description: ["A positive integer representing the number of seconds to wait before evaluating the monitor for new hosts.
|
||||
This gives the host time to fully initialize."]
|
||||
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."]
|
||||
version_added: "2.3"
|
||||
|
@ -170,6 +175,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)
|
||||
)
|
||||
)
|
||||
|
@ -275,7 +281,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":
|
||||
|
|
Loading…
Reference in a new issue