Skip to main content

ci_test_optimization_setting_policies

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

Overview

Nameci_test_optimization_setting_policies
TypeResource
Iddatadog.software_delivery.ci_test_optimization_setting_policies

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_flaky_tests_management_policiesinsertdataRetrieve Flaky Tests Management repository-level policies for the given repository.
update_flaky_tests_management_policiesupdatedataPartially update Flaky Tests Management repository-level policies for the given repository.<br />Only provided policy blocks are updated; omitted blocks are left unchanged.

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 Flaky Tests Management repository-level policies for the given repository.

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

UPDATE examples

Partially update Flaky Tests Management repository-level policies for the given repository.<br />Only provided policy blocks are updated; omitted blocks are left unchanged.

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