Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module datadog_event API endpoint definition #2774

Closed
1 task done
Anas-Hamadeh opened this issue Jun 10, 2021 · 4 comments
Closed
1 task done

Module datadog_event API endpoint definition #2774

Anas-Hamadeh opened this issue Jun 10, 2021 · 4 comments
Labels
feature This issue/PR relates to a feature request has_pr module module monitoring needs_triage plugins plugin (any type)

Comments

@Anas-Hamadeh
Copy link
Contributor

Anas-Hamadeh commented Jun 10, 2021

Summary

I'm trying to define an API endpoint for the datadog_event module to send data to. By default, it sends to api.datadog.com which is not necessarily always the case.
It would be helpful if we have that as an optional parameter to pass to the module in order for the events to reach the right location. The current workaround is to hardcode the API endpoint into the datadog python library which is not optimal and future proof
The change mainly would target plugins/modules/monitoring/datadog/datadog_event.py

Pull Request

#2775

Issue Type

Feature Idea

Component Name

datadog_event ansible module
plugins/modules/monitoring/datadog/datadog_event.py

Additional Information

  - name: datadog_test
    community.general.datadog_event:
      title: Test
      text: This is just a test
      priority: low
      tags: '#group:heros'
      api_host: 'URL'
      api_key: KEY
      app_key: KEY

The addition of api_host will allow users to define a datadog API endpoint instead of using the default one as not all datadog deployments target the default URL

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot

This comment has been minimized.

@ansibullbot
Copy link
Collaborator

Files identified in the description:

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

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @n0ts
click here for bot help

@aminvakil
Copy link
Contributor

resolved_by_pr #2775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module monitoring needs_triage plugins plugin (any type)
Projects
None yet
Development

No branches or pull requests

3 participants