From 63bdeb6e6fb0028eb4dcf8d53d174928beb4b9db Mon Sep 17 00:00:00 2001 From: Jordan Cohen Date: Mon, 16 Nov 2015 06:31:14 -0500 Subject: [PATCH] support for event alert monitors --- lib/ansible/modules/extras/monitoring/datadog_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/datadog_monitor.py b/lib/ansible/modules/extras/monitoring/datadog_monitor.py index 474d2e4209..d61d1b025e 100644 --- a/lib/ansible/modules/extras/monitoring/datadog_monitor.py +++ b/lib/ansible/modules/extras/monitoring/datadog_monitor.py @@ -52,7 +52,7 @@ options: description: ["The type of the monitor."] required: false default: null - choices: ['metric alert', 'service check'] + choices: ['metric alert', 'service check', 'event alert'] query: description: ["The monitor query to notify on with syntax varying depending on what type of monitor you are creating."] required: false @@ -139,7 +139,7 @@ def main(): api_key=dict(required=True), app_key=dict(required=True), state=dict(required=True, choises=['present', 'absent', 'mute', 'unmute']), - type=dict(required=False, choises=['metric alert', 'service check']), + type=dict(required=False, choises=['metric alert', 'service check', 'event alert']), name=dict(required=True), query=dict(required=False), message=dict(required=False, default=None),