ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
791 stars 1.46k forks source link

[datadog_monitor] - locked parameter is deprecated and replaced by restricted_roles #8192

Open greenflowers opened 3 months ago

greenflowers commented 3 months ago

Summary

The locked parameter is deprecated and replaced by restricted_roles parameter. According to Datadog Support they will remove this API option in the next weeks and return a 400 instead. All projects who use datadog_monitor in the current state, will fail from that day on.

Issue Type

Feature Idea

Component Name

datadog_monitor

Additional Information

    - name: Create or destroy a Datadog metric monitors
      community.general.datadog_monitor:
        type: "metric alert"
        name: "{{ datadog_monitor_prefix }} {{ datadog_monitor.name }}"
        state: "{{ datadog_monitor_state }}"
        query: "{{ datadog_monitor.query }}"
        notification_message: |
          {{ (datadog_monitor.alert_recipients) | join(' ') }}
        thresholds: "{{ datadog_monitor.thresholds }}"
        evaluation_delay: "{{ datadog_monitor.evaluation_delay }}"
        api_key: "{{ datadog_api_key }}"
        app_key: "{{ datadog_app_key }}"
        tags: "{{ datadog_default_tags }}"

Code of Conduct

ansibullbot commented 3 months ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help