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

add support for datadog monitors of type event-v2 (#4457)

* 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>
This commit is contained in:
ermeaney 2022-04-11 00:09:27 -05:00 committed by GitHub
parent d3adde4739
commit 6edc176143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -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)

View file

@ -15,6 +15,7 @@ short_description: Manages Datadog monitors
description: description:
- Manages monitors within Datadog. - Manages monitors within Datadog.
- Options as described on https://docs.datadoghq.com/api/. - 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) author: Sebastian Kornehl (@skornehl)
requirements: [datadog] requirements: [datadog]
options: options:
@ -56,6 +57,7 @@ options:
- metric alert - metric alert
- service check - service check
- event alert - event alert
- event-v2 alert
- process alert - process alert
- log alert - log alert
- query alert - query alert
@ -222,7 +224,7 @@ def main():
api_host=dict(), api_host=dict(),
app_key=dict(required=True, no_log=True), app_key=dict(required=True, no_log=True),
state=dict(required=True, choices=['present', 'absent', 'mute', 'unmute']), 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', 'log alert', 'query alert', 'trace-analytics alert',
'rum alert', 'composite']), 'rum alert', 'composite']),
name=dict(required=True), name=dict(required=True),