From 3599b8afdc07d61e6e7ca0f0e5c58e769af15277 Mon Sep 17 00:00:00 2001 From: Charles C Date: Tue, 5 May 2020 22:15:37 -0700 Subject: [PATCH] datadog_monitor: adds missing 'log alert' type to supported types (#277) * adds missing 'log alert' type to supported types * added changelog fragment * Update changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml Co-authored-by: Andrew Klychkov Co-authored-by: Andrew Klychkov --- .../277-datadog_monitor-adds-missing-log-alert-type.yml | 2 ++ plugins/modules/monitoring/datadog/datadog_monitor.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml diff --git a/changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml b/changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml new file mode 100644 index 0000000000..d385565d37 --- /dev/null +++ b/changelogs/fragments/277-datadog_monitor-adds-missing-log-alert-type.yml @@ -0,0 +1,2 @@ +bugfixes: + - datadog_monitor - added missing ``log alert`` type to ``type`` choices (https://github.com/ansible-collections/community.general/issues/251). diff --git a/plugins/modules/monitoring/datadog/datadog_monitor.py b/plugins/modules/monitoring/datadog/datadog_monitor.py index 465669dfd6..69db54591c 100644 --- a/plugins/modules/monitoring/datadog/datadog_monitor.py +++ b/plugins/modules/monitoring/datadog/datadog_monitor.py @@ -53,7 +53,7 @@ options: type: description: - The type of the monitor. - choices: ['metric alert', 'service check', 'event alert', 'process alert'] + choices: ['metric alert', 'service check', 'event alert', 'process alert', 'log alert'] type: str query: description: @@ -204,7 +204,7 @@ def main(): api_host=dict(required=False), app_key=dict(required=True, no_log=True), state=dict(required=True, choices=['present', 'absent', 'mute', 'unmute']), - type=dict(required=False, choices=['metric alert', 'service check', 'event alert', 'process alert']), + type=dict(required=False, choices=['metric alert', 'service check', 'event alert', 'process alert', 'log alert']), name=dict(required=True), query=dict(required=False), notification_message=dict(required=False, default=None, aliases=['message'], deprecated_aliases=[dict(name='message', version='2.14')]),