Skip to content

Commit

Permalink
add support for datadog monitors of type event-v2 (#4457)
Browse files Browse the repository at this point in the history
* add support for datadog monitors of type event-v2

See https://docs.datadoghq.com/events/guides/migrating_to_new_events_features/

* add changelog fragement for PR

* typos

* add link to PR

* minor_fetaure, not bugfix

* add to description when we added event-v2 type

* Update changelogs/fragments/4457-support-datadog-monitors-type event-v2.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
ermeaney and felixfontein authored Apr 11, 2022
1 parent d3adde4 commit 6edc176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- datadog_monitor - support new datadog event monitor of type `event-v2 alert` (https://github.com/ansible-collections/community.general/pull/4457)
4 changes: 3 additions & 1 deletion plugins/modules/monitoring/datadog/datadog_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
description:
- Manages monitors within Datadog.
- Options as described on https://docs.datadoghq.com/api/.
- The type C(event-v2) was added in community.general 4.8.0.
author: Sebastian Kornehl (@skornehl)
requirements: [datadog]
options:
Expand Down Expand Up @@ -56,6 +57,7 @@
- metric alert
- service check
- event alert
- event-v2 alert
- process alert
- log alert
- query alert
Expand Down Expand Up @@ -222,7 +224,7 @@ def main():
api_host=dict(),
app_key=dict(required=True, no_log=True),
state=dict(required=True, choices=['present', 'absent', 'mute', 'unmute']),
type=dict(choices=['metric alert', 'service check', 'event alert', 'process alert',
type=dict(choices=['metric alert', 'service check', 'event alert', 'event-v2 alert', 'process alert',
'log alert', 'query alert', 'trace-analytics alert',
'rum alert', 'composite']),
name=dict(required=True),
Expand Down

0 comments on commit 6edc176

Please sign in to comment.