ci_test_optimization_setting_services
Creates, updates, deletes, gets or lists a ci_test_optimization_setting_services resource.
Overview
| Name | ci_test_optimization_setting_services |
| Type | Resource |
| Id | datadog.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_test_optimization_service_settings | insert | data | Retrieve Test Optimization settings for a specific service identified by repository, service name, and environment. | |
update_test_optimization_service_settings | update | data | 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 <setting>_inherit field.<br />The pr_comments_enabled field is ignored as it cannot be overridden at the service level. | |
delete_test_optimization_service_settings | delete | Delete 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.
| Name | Datatype | Description |
|---|---|---|
site | string | The 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
- get_test_optimization_service_settings
- Manifest
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
;
# Description fields are for documentation purposes
- name: ci_test_optimization_setting_services
props:
- name: data
description: |
Data object for get service settings request.
value:
attributes:
env: "{{ env }}"
repository_id: "{{ repository_id }}"
service_name: "{{ service_name }}"
type: "{{ type }}"
UPDATE examples
- update_test_optimization_service_settings
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 <setting>_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_service_settings
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
;