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')]),