-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Is your feature request related to a problem? Please describe.
Currently, it is not possible to set or update the "Scope Query" for Service Scorecard rules via the Datadog API or the datadog-api-client-go client. In the Datadog UI, users can define a "Scope Query" (e.g., kind:service
) to specify which services a scorecard rule applies to, but this functionality is missing from the public API and Go client. This limits automation and infrastructure-as-code workflows for organizations managing scorecards at scale.
Describe the solution you'd like
Expose the ability to set and update the "Scope Query" for Service Scorecard rules via the public Datadog API and the Go client. This should allow users to programmatically define which services are evaluated by a scorecard rule, matching the capabilities available in the Datadog UI.
Describe alternatives you've considered
- Manually configuring the scope for each rule in the Datadog UI (not scalable or automatable).
- Attempting to use undocumented or unsupported API endpoints (not recommended and not future-proof).
Additional context
- The "Scope Query" field is available in the Datadog UI when creating or editing a scorecard rule (see screenshot below).
- This field is not present in the current Go client or public API (api_service_scorecards.go).
- Adding this feature would enable full automation of scorecard management and better support for infrastructure-as-code practices.