diff --git a/config/_default/menus/api.en.yaml b/config/_default/menus/api.en.yaml index 4427c1b6e98..0257c9f37a1 100644 --- a/config/_default/menus/api.en.yaml +++ b/config/_default/menus/api.en.yaml @@ -14243,6 +14243,45 @@ menu: unstable: - v2 order: 2 + - name: Get Test Optimization service settings + url: '#get-test-optimization-service-settings' + identifier: test-optimization-get-test-optimization-service-settings + parent: test-optimization + generated: true + params: + versions: + - v2 + operationids: + - GetTestOptimizationServiceSettings + unstable: + - v2 + order: 3 + - name: Update Test Optimization service settings + url: '#update-test-optimization-service-settings' + identifier: test-optimization-update-test-optimization-service-settings + parent: test-optimization + generated: true + params: + versions: + - v2 + operationids: + - UpdateTestOptimizationServiceSettings + unstable: + - v2 + order: 4 + - name: Delete Test Optimization service settings + url: '#delete-test-optimization-service-settings' + identifier: test-optimization-delete-test-optimization-service-settings + parent: test-optimization + generated: true + params: + versions: + - v2 + operationids: + - DeleteTestOptimizationServiceSettings + unstable: + - v2 + order: 5 - name: Workflow Automation url: /api/latest/workflow-automation/ identifier: workflow-automation diff --git a/content/en/api/v2/test-optimization/examples.json b/content/en/api/v2/test-optimization/examples.json index 7fb666c7fd0..4558f8ef344 100644 --- a/content/en/api/v2/test-optimization/examples.json +++ b/content/en/api/v2/test-optimization/examples.json @@ -1,4 +1,224 @@ { + "DeleteTestOptimizationServiceSettings": { + "responses": { + "400": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "403": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "404": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "429": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + } + }, + "request": { + "json_curl": { + "data": { + "attributes": { + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist" + }, + "type": "test_optimization_delete_service_settings_request" + } + }, + "json": { + "data": { + "attributes": { + "env": "prod", + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist" + }, + "type": "test_optimization_delete_service_settings_request" + } + }, + "html": "
\n
\n
\n
\n

data [required]

\n
\n

object

\n

Data object for delete service settings request.

\n
\n
\n
\n
\n
\n

attributes [required]

\n
\n

object

\n

Attributes for deleting Test Optimization service settings.

\n
\n
\n
\n
\n
\n

env

\n
\n

string

\n

The environment name. If omitted, defaults to none.

\n
\n \n
\n
\n
\n
\n
\n

repository_id [required]

\n
\n

string

\n

The repository identifier.

\n
\n \n
\n
\n
\n
\n
\n

service_name [required]

\n
\n

string

\n

The service name.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

JSON:API type for delete service settings request.\nThe value must always be test_optimization_delete_service_settings_request. \nAllowed enum values: test_optimization_delete_service_settings_request

\n
\n \n
\n
\n
\n
" + } + }, + "UpdateTestOptimizationServiceSettings": { + "responses": { + "200": { + "json": { + "data": { + "attributes": { + "auto_test_retries_enabled": false, + "code_coverage_enabled": false, + "early_flake_detection_enabled": false, + "env": "prod", + "failed_test_replay_enabled": false, + "pr_comments_enabled": true, + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist", + "test_impact_analysis_enabled": false + }, + "id": "github.com/datadog/shopist::shopist::prod", + "type": "test_optimization_service_settings" + } + }, + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n

Data object for Test Optimization service settings response.

\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n

Attributes for Test Optimization service settings.

\n
\n
\n
\n
\n
\n

auto_test_retries_enabled

\n
\n

boolean

\n

Whether Auto Test Retries are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

code_coverage_enabled

\n
\n

boolean

\n

Whether Code Coverage is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

early_flake_detection_enabled

\n
\n

boolean

\n

Whether Early Flake Detection is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

env

\n
\n

string

\n

The environment name.

\n
\n \n
\n
\n
\n
\n
\n

failed_test_replay_enabled

\n
\n

boolean

\n

Whether Failed Test Replay is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

pr_comments_enabled

\n
\n

boolean

\n

Whether PR Comments are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

repository_id

\n
\n

string

\n

The repository identifier.

\n
\n \n
\n
\n
\n
\n
\n

service_name

\n
\n

string

\n

The service name.

\n
\n \n
\n
\n
\n
\n
\n

test_impact_analysis_enabled

\n
\n

boolean

\n

Whether Test Impact Analysis is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

Unique identifier for the service settings.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

JSON:API type for service settings response.\nThe value must always be test_optimization_service_settings. \nAllowed enum values: test_optimization_service_settings

\n
\n \n
\n
\n
\n
" + }, + "400": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "403": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "404": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "429": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + } + }, + "request": { + "json_curl": { + "data": { + "attributes": { + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist" + }, + "type": "test_optimization_update_service_settings_request" + } + }, + "json": { + "data": { + "attributes": { + "auto_test_retries_enabled": false, + "code_coverage_enabled": false, + "early_flake_detection_enabled": false, + "env": "prod", + "failed_test_replay_enabled": false, + "pr_comments_enabled": true, + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist", + "test_impact_analysis_enabled": false + }, + "type": "test_optimization_update_service_settings_request" + } + }, + "html": "
\n
\n
\n
\n

data [required]

\n
\n

object

\n

Data object for update service settings request.

\n
\n
\n
\n
\n
\n

attributes [required]

\n
\n

object

\n

Attributes for updating Test Optimization service settings.\nAll non-required fields are optional; only provided fields will be updated.

\n
\n
\n
\n
\n
\n

auto_test_retries_enabled

\n
\n

boolean

\n

Whether Auto Test Retries are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

code_coverage_enabled

\n
\n

boolean

\n

Whether Code Coverage is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

early_flake_detection_enabled

\n
\n

boolean

\n

Whether Early Flake Detection is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

env

\n
\n

string

\n

The environment name. If omitted, defaults to none.

\n
\n \n
\n
\n
\n
\n
\n

failed_test_replay_enabled

\n
\n

boolean

\n

Whether Failed Test Replay is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

pr_comments_enabled

\n
\n

boolean

\n

Whether PR Comments are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

repository_id [required]

\n
\n

string

\n

The repository identifier.

\n
\n \n
\n
\n
\n
\n
\n

service_name [required]

\n
\n

string

\n

The service name.

\n
\n \n
\n
\n
\n
\n
\n

test_impact_analysis_enabled

\n
\n

boolean

\n

Whether Test Impact Analysis is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

JSON:API type for update service settings request.\nThe value must always be test_optimization_update_service_settings_request. \nAllowed enum values: test_optimization_update_service_settings_request

\n
\n \n
\n
\n
\n
" + } + }, + "GetTestOptimizationServiceSettings": { + "responses": { + "200": { + "json": { + "data": { + "attributes": { + "auto_test_retries_enabled": false, + "code_coverage_enabled": false, + "early_flake_detection_enabled": false, + "env": "prod", + "failed_test_replay_enabled": false, + "pr_comments_enabled": true, + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist", + "test_impact_analysis_enabled": false + }, + "id": "github.com/datadog/shopist::shopist::prod", + "type": "test_optimization_service_settings" + } + }, + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n

Data object for Test Optimization service settings response.

\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n

Attributes for Test Optimization service settings.

\n
\n
\n
\n
\n
\n

auto_test_retries_enabled

\n
\n

boolean

\n

Whether Auto Test Retries are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

code_coverage_enabled

\n
\n

boolean

\n

Whether Code Coverage is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

early_flake_detection_enabled

\n
\n

boolean

\n

Whether Early Flake Detection is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

env

\n
\n

string

\n

The environment name.

\n
\n \n
\n
\n
\n
\n
\n

failed_test_replay_enabled

\n
\n

boolean

\n

Whether Failed Test Replay is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

pr_comments_enabled

\n
\n

boolean

\n

Whether PR Comments are enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n

repository_id

\n
\n

string

\n

The repository identifier.

\n
\n \n
\n
\n
\n
\n
\n

service_name

\n
\n

string

\n

The service name.

\n
\n \n
\n
\n
\n
\n
\n

test_impact_analysis_enabled

\n
\n

boolean

\n

Whether Test Impact Analysis is enabled for this service.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

id

\n
\n

string

\n

Unique identifier for the service settings.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

JSON:API type for service settings response.\nThe value must always be test_optimization_service_settings. \nAllowed enum values: test_optimization_service_settings

\n
\n \n
\n
\n
\n
" + }, + "400": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "403": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "404": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + }, + "429": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + } + }, + "request": { + "json_curl": { + "data": { + "attributes": { + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist" + }, + "type": "test_optimization_get_service_settings_request" + } + }, + "json": { + "data": { + "attributes": { + "env": "prod", + "repository_id": "github.com/datadog/shopist", + "service_name": "shopist" + }, + "type": "test_optimization_get_service_settings_request" + } + }, + "html": "
\n
\n
\n
\n

data [required]

\n
\n

object

\n

Data object for get service settings request.

\n
\n
\n
\n
\n
\n

attributes [required]

\n
\n

object

\n

Attributes for requesting Test Optimization service settings.

\n
\n
\n
\n
\n
\n

env

\n
\n

string

\n

The environment name. If omitted, defaults to none.

\n
\n \n
\n
\n
\n
\n
\n

repository_id [required]

\n
\n

string

\n

The repository identifier.

\n
\n \n
\n
\n
\n
\n
\n

service_name [required]

\n
\n

string

\n

The service name.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

JSON:API type for get service settings request.\nThe value must always be test_optimization_get_service_settings_request. \nAllowed enum values: test_optimization_get_service_settings_request

\n
\n \n
\n
\n
\n
" + } + }, "UpdateFlakyTests": { "responses": { "200": { diff --git a/data/api/v2/full_spec.yaml b/data/api/v2/full_spec.yaml index 6df18fdbd74..67f190115f1 100644 --- a/data/api/v2/full_spec.yaml +++ b/data/api/v2/full_spec.yaml @@ -66481,6 +66481,250 @@ components: required: - data type: object + TestOptimizationDeleteServiceSettingsRequest: + description: Request object for deleting Test Optimization service settings. + properties: + data: + $ref: "#/components/schemas/TestOptimizationDeleteServiceSettingsRequestData" + required: + - data + type: object + TestOptimizationDeleteServiceSettingsRequestAttributes: + description: Attributes for deleting Test Optimization service settings. + properties: + env: + description: The environment name. If omitted, defaults to `none`. + example: prod + type: string + repository_id: + description: The repository identifier. + example: github.com/datadog/shopist + minLength: 1 + type: string + service_name: + description: The service name. + example: shopist + minLength: 1 + type: string + required: + - repository_id + - service_name + type: object + TestOptimizationDeleteServiceSettingsRequestData: + description: Data object for delete service settings request. + properties: + attributes: + $ref: "#/components/schemas/TestOptimizationDeleteServiceSettingsRequestAttributes" + type: + $ref: "#/components/schemas/TestOptimizationDeleteServiceSettingsRequestDataType" + required: + - type + - attributes + type: object + TestOptimizationDeleteServiceSettingsRequestDataType: + description: |- + JSON:API type for delete service settings request. + The value must always be `test_optimization_delete_service_settings_request`. + enum: + - test_optimization_delete_service_settings_request + example: test_optimization_delete_service_settings_request + type: string + x-enum-varnames: + - TEST_OPTIMIZATION_DELETE_SERVICE_SETTINGS_REQUEST + TestOptimizationGetServiceSettingsRequest: + description: Request object for getting Test Optimization service settings. + properties: + data: + $ref: "#/components/schemas/TestOptimizationGetServiceSettingsRequestData" + required: + - data + type: object + TestOptimizationGetServiceSettingsRequestAttributes: + description: Attributes for requesting Test Optimization service settings. + properties: + env: + description: The environment name. If omitted, defaults to `none`. + example: prod + type: string + repository_id: + description: The repository identifier. + example: github.com/datadog/shopist + minLength: 1 + type: string + service_name: + description: The service name. + example: shopist + minLength: 1 + type: string + required: + - repository_id + - service_name + type: object + TestOptimizationGetServiceSettingsRequestData: + description: Data object for get service settings request. + properties: + attributes: + $ref: "#/components/schemas/TestOptimizationGetServiceSettingsRequestAttributes" + type: + $ref: "#/components/schemas/TestOptimizationGetServiceSettingsRequestDataType" + required: + - type + - attributes + type: object + TestOptimizationGetServiceSettingsRequestDataType: + description: |- + JSON:API type for get service settings request. + The value must always be `test_optimization_get_service_settings_request`. + enum: + - test_optimization_get_service_settings_request + example: test_optimization_get_service_settings_request + type: string + x-enum-varnames: + - TEST_OPTIMIZATION_GET_SERVICE_SETTINGS_REQUEST + TestOptimizationServiceSettingsAttributes: + description: Attributes for Test Optimization service settings. + properties: + auto_test_retries_enabled: + description: Whether Auto Test Retries are enabled for this service. + example: false + type: boolean + code_coverage_enabled: + description: Whether Code Coverage is enabled for this service. + example: false + type: boolean + early_flake_detection_enabled: + description: Whether Early Flake Detection is enabled for this service. + example: false + type: boolean + env: + description: The environment name. + example: prod + type: string + failed_test_replay_enabled: + description: Whether Failed Test Replay is enabled for this service. + example: false + type: boolean + pr_comments_enabled: + description: Whether PR Comments are enabled for this service. + example: true + type: boolean + repository_id: + description: The repository identifier. + example: github.com/datadog/shopist + type: string + service_name: + description: The service name. + example: shopist + type: string + test_impact_analysis_enabled: + description: Whether Test Impact Analysis is enabled for this service. + example: false + type: boolean + type: object + TestOptimizationServiceSettingsData: + description: Data object for Test Optimization service settings response. + properties: + attributes: + $ref: "#/components/schemas/TestOptimizationServiceSettingsAttributes" + id: + description: Unique identifier for the service settings. + example: github.com/datadog/shopist::shopist::prod + type: string + type: + $ref: "#/components/schemas/TestOptimizationServiceSettingsType" + type: object + TestOptimizationServiceSettingsResponse: + description: Response object containing Test Optimization service settings. + properties: + data: + $ref: "#/components/schemas/TestOptimizationServiceSettingsData" + type: object + TestOptimizationServiceSettingsType: + description: |- + JSON:API type for service settings response. + The value must always be `test_optimization_service_settings`. + enum: + - test_optimization_service_settings + example: test_optimization_service_settings + type: string + x-enum-varnames: + - TEST_OPTIMIZATION_SERVICE_SETTINGS + TestOptimizationUpdateServiceSettingsRequest: + description: Request object for updating Test Optimization service settings. + properties: + data: + $ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequestData" + required: + - data + type: object + TestOptimizationUpdateServiceSettingsRequestAttributes: + description: |- + Attributes for updating Test Optimization service settings. + All non-required fields are optional; only provided fields will be updated. + properties: + auto_test_retries_enabled: + description: Whether Auto Test Retries are enabled for this service. + example: false + type: boolean + code_coverage_enabled: + description: Whether Code Coverage is enabled for this service. + example: false + type: boolean + early_flake_detection_enabled: + description: Whether Early Flake Detection is enabled for this service. + example: false + type: boolean + env: + description: The environment name. If omitted, defaults to `none`. + example: prod + type: string + failed_test_replay_enabled: + description: Whether Failed Test Replay is enabled for this service. + example: false + type: boolean + pr_comments_enabled: + description: Whether PR Comments are enabled for this service. + example: true + type: boolean + repository_id: + description: The repository identifier. + example: github.com/datadog/shopist + minLength: 1 + type: string + service_name: + description: The service name. + example: shopist + minLength: 1 + type: string + test_impact_analysis_enabled: + description: Whether Test Impact Analysis is enabled for this service. + example: false + type: boolean + required: + - repository_id + - service_name + type: object + TestOptimizationUpdateServiceSettingsRequestData: + description: Data object for update service settings request. + properties: + attributes: + $ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequestAttributes" + type: + $ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequestDataType" + required: + - type + - attributes + type: object + TestOptimizationUpdateServiceSettingsRequestDataType: + description: |- + JSON:API type for update service settings request. + The value must always be `test_optimization_update_service_settings_request`. + enum: + - test_optimization_update_service_settings_request + example: test_optimization_update_service_settings_request + type: string + x-enum-varnames: + - TEST_OPTIMIZATION_UPDATE_SERVICE_SETTINGS_REQUEST ThreatHuntingJobDataType: description: Type of payload. enum: @@ -70422,6 +70666,7 @@ components: teams_manage: Manage Teams. Create, delete, rename, and edit metadata of all Teams. To control Team membership across all Teams, use the User Access Manage permission. teams_read: Read Teams data. A User with this permission can view Team names, metadata, and which Users are on each Team. test_optimization_read: View Test Optimization. + test_optimization_settings_write: Update service settings in Test Optimization. test_optimization_write: Update flaky tests from Flaky Tests Management of Test Optimization. timeseries_query: Query Timeseries data. usage_read: View your organization's usage and usage attribution. @@ -76817,6 +77062,127 @@ paths: operator: OR permissions: - ci_visibility_read + /api/v2/ci/test-optimization/settings/service: + delete: + description: |- + Delete Test Optimization settings for a specific service identified by repository, service name, and environment. + operationId: DeleteTestOptimizationServiceSettings + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TestOptimizationDeleteServiceSettingsRequest" + required: true + responses: + "204": + description: No Content + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/NotAuthorizedResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - test_optimization_settings_write + summary: Delete Test Optimization service settings + tags: ["Test Optimization"] + x-codegen-request-body-name: body + x-menu-order: 5 + x-permission: + operator: OR + permissions: + - test_optimization_settings_write + x-unstable: |- + **Note**: This endpoint is in preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + patch: + description: |- + Partially update Test Optimization settings for a specific service identified by repository, service name, and environment. + Only provided fields are updated; null or omitted fields are left unchanged. + operationId: UpdateTestOptimizationServiceSettings + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TestOptimizationUpdateServiceSettingsRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/TestOptimizationServiceSettingsResponse" + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/NotAuthorizedResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - test_optimization_settings_write + summary: Update Test Optimization service settings + tags: ["Test Optimization"] + x-codegen-request-body-name: body + x-menu-order: 4 + x-permission: + operator: OR + permissions: + - test_optimization_settings_write + x-unstable: |- + **Note**: This endpoint is in preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + post: + description: |- + Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment. + operationId: GetTestOptimizationServiceSettings + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/TestOptimizationGetServiceSettingsRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/TestOptimizationServiceSettingsResponse" + description: OK + "400": + $ref: "#/components/responses/BadRequestResponse" + "403": + $ref: "#/components/responses/NotAuthorizedResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - test_optimization_read + summary: Get Test Optimization service settings + tags: ["Test Optimization"] + x-codegen-request-body-name: body + x-menu-order: 3 + x-permission: + operator: OR + permissions: + - test_optimization_read + x-unstable: |- + **Note**: This endpoint is in preview and may be subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/ci/tests/analytics/aggregate: post: description: |- diff --git a/data/api/v2/translate_actions.json b/data/api/v2/translate_actions.json index 00df8531b1a..a7ae99e8da2 100644 --- a/data/api/v2/translate_actions.json +++ b/data/api/v2/translate_actions.json @@ -725,6 +725,24 @@ "request_description": "", "request_schema_description": "The request for a pipelines search." }, + "DeleteTestOptimizationServiceSettings": { + "description": "Delete Test Optimization settings for a specific service identified by repository, service name, and environment.", + "summary": "Delete Test Optimization service settings", + "request_description": "", + "request_schema_description": "Request object for deleting Test Optimization service settings." + }, + "UpdateTestOptimizationServiceSettings": { + "description": "Partially update Test Optimization settings for a specific service identified by repository, service name, and environment.\nOnly provided fields are updated; null or omitted fields are left unchanged.", + "summary": "Update Test Optimization service settings", + "request_description": "", + "request_schema_description": "Request object for updating Test Optimization service settings." + }, + "GetTestOptimizationServiceSettings": { + "description": "Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment.", + "summary": "Get Test Optimization service settings", + "request_description": "", + "request_schema_description": "Request object for getting Test Optimization service settings." + }, "AggregateCIAppTestEvents": { "description": "The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries.", "summary": "Aggregate tests events",