Skip to main content

ci_test_optimization_setting_services

Creates, updates, deletes, gets or lists a ci_test_optimization_setting_services resource.

Overview

Nameci_test_optimization_setting_services
TypeResource
Iddatadog.software_delivery.ci_test_optimization_setting_services

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_test_optimization_service_settingsinsertdataRetrieve Test Optimization settings for a specific service identified by repository, service name, and environment.
update_test_optimization_service_settingsupdatedataPartially update Test Optimization settings for a specific service identified by repository, service name, and environment.<br />Only provided fields are updated; setting a field to null is a no-op.<br />To reset a setting to inherit from the repository level, use the corresponding &lt;setting&gt;_inherit field.<br />The pr_comments_enabled field is ignored as it cannot be overridden at the service level.
delete_test_optimization_service_settingsdeleteDelete Test Optimization settings for a specific service identified by repository, service name, and environment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

INSERT examples

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

INSERT INTO datadog.software_delivery.ci_test_optimization_setting_services (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

UPDATE examples

Partially update Test Optimization settings for a specific service identified by repository, service name, and environment.<br />Only provided fields are updated; setting a field to null is a no-op.<br />To reset a setting to inherit from the repository level, use the corresponding &lt;setting&gt;_inherit field.<br />The pr_comments_enabled field is ignored as it cannot be overridden at the service level.

UPDATE datadog.software_delivery.ci_test_optimization_setting_services
SET
data = '{{ data }}'
WHERE
data = '{{ data }}' --required
RETURNING
data;

DELETE examples

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

DELETE FROM datadog.software_delivery.ci_test_optimization_setting_services
;