ci_test_optimization_setting_policies
Creates, updates, deletes, gets or lists a ci_test_optimization_setting_policies resource.
Overview
| Name | ci_test_optimization_setting_policies |
| Type | Resource |
| Id | datadog.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_flaky_tests_management_policies | insert | data | Retrieve Flaky Tests Management repository-level policies for the given repository. | |
update_flaky_tests_management_policies | update | data | Partially 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.
| 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_flaky_tests_management_policies
- Manifest
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
;
# Description fields are for documentation purposes
- name: ci_test_optimization_setting_policies
props:
- name: data
description: |
Data object for get Flaky Tests Management policies request.
value:
attributes:
repository_id: "{{ repository_id }}"
type: "{{ type }}"
UPDATE examples
- update_flaky_tests_management_policies
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;