Skip to content

[data_source_service_level_objective] Add attributes tags computed #2926

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbecker59
Copy link
Contributor

@sbecker59 sbecker59 commented Mar 21, 2025

Motivation:

Currently, the data_source_service_level_objective does not return the tags associated with an SLO.
This limitation makes it difficult to automate SLO management via Terraform, especially when tags are used to filter or organize SLOs.

Changes made:

  • Modified the data_source service_level_objective schema to include the tags attribute of type (Set of String).
  • Updated the dataSourceDatadogServiceLevelObjectiveRead function to retrieve and return the tags associated with the SLO.
  • Added unit tests to verify the behavior of the new tags attribute.
  • Updated the documentation to reflect this change.

@sbecker59 sbecker59 requested review from a team as code owners March 21, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants