1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add require_full_window option for Datadog monitors (#2653)

This commit is contained in:
Fabian Krämer 2016-11-08 08:21:38 +11:00 committed by Matt Clay
parent 405c6820b0
commit 2e2f24447a

View file

@ -101,6 +101,11 @@ options:
required: false
default: False
version_added: 2.2
require_full_window:
description: ["A boolean indicating whether this monitor needs a full window of data before it's evaluated. We highly recommend you set this to False for sparse metrics, otherwise some evaluations will be skipped."]
required: false
default: null
version_added: 2.2
'''
EXAMPLES = '''
@ -167,7 +172,8 @@ def main():
notify_audit=dict(required=False, default=False, type='bool'),
thresholds=dict(required=False, type='dict', default=None),
tags=dict(required=False, type='list', default=None),
locked=dict(required=False, default=False, type='bool')
locked=dict(required=False, default=False, type='bool'),
require_full_window=dict(required=False, default=None, type='bool')
)
)
@ -253,6 +259,7 @@ def install_monitor(module):
"escalation_message": module.params['escalation_message'],
"notify_audit": module.boolean(module.params['notify_audit']),
"locked": module.boolean(module.params['locked']),
"require_full_window" : module.params['require_full_window']
}
if module.params['type'] == "service check":