Test Optimization

Get Test Optimization service settings

Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment.

post/api/v2/ci/test-optimization/settings/service

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/ci/test-optimization/settings/service
  • Auth
    • API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY
    • or OAuth 2
      Authorization code: /oauth2/v1/authorize
      Token URL: /oauth2/v1/token scopes: test_optimization_read

Request body

Example request

{
  "data": {
    "attributes": {
      "env": "prod",
      "repository_id": "github.com/datadog/shopist",
      "service_name": "shopist"
    },
    "type": "test_optimization_get_service_settings_request"
  }
}

Response

OK

Example response

{
  "data": {
    "attributes": {
      "env": "prod",
      "repository_id": "github.com/datadog/shopist",
      "service_name": "shopist",
      "test_impact_analysis_enabled": true,
      "test_impact_analysis_enabled_is_overridden": true
    },
    "id": "9b8a7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d",
    "type": "test_optimization_service_settings"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.