From bdf19763bbe26f6e82fecac462e6679f4c985b2a Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 14 Oct 2026 08:49:19 +0000 Subject: [PATCH] Regenerate client from commit 80da99d of spec repo --- .generator/schemas/v2/openapi.yaml | 356 +++++++++--------- .../CreateAIImpactUserActivity.py | 4 +- .../CreateDORADeployment.py | 4 +- .../CreateDORAFailure.py | 4 +- .../CreateDORAIncident.py | 4 +- .../CreateDORAIncident_1101664022.py | 4 +- .../DeleteDORADeployment.py | 4 +- .../DeleteDORAFailure.py | 4 +- .../DeleteDORAFailure_3462074974.py | 4 +- .../GetDORADeployment.py | 4 +- .../GetDORAFailure.py | 4 +- .../ListDORADeployments.py | 4 +- .../ListDORADeployments_1654201709.py | 4 +- .../ListDORAFailures.py | 4 +- .../ListDORAFailures_3269988848.py | 4 +- .../PatchDORADeployment.py | 4 +- .../PatchDORADeploymentByVersion.py | 4 +- ...ics_api.py => delivery_performance_api.py} | 6 +- src/datadog_api_client/v2/apis/__init__.py | 4 +- ....py => experiments_confidence_interval.py} | 2 +- ...a_attributes_datadog_flag_configuration.py | 18 +- ...ta_attributes_split_by_properties_items.py | 19 +- ...ibutes_warehouse_exposure_configuration.py | 18 +- ...t_data_attributes_numerator_aggregation.py | 2 +- ..._data_attributes_percentile_aggregation.py | 2 +- .../experiments_datadog_entry_point_filter.py | 32 +- ..._datadog_entry_point_filter_column_type.py | 58 +++ ...ts_datadog_entry_point_filter_operation.py | 56 +++ .../v2/model/experiments_inline_condition.py | 22 +- ...a_attributes_datadog_flag_configuration.py | 19 +- ...a_attributes_datadog_flag_configuration.py | 19 +- ...y_point_filters_items_items_column_type.py | 94 ----- ...try_point_filters_items_items_operation.py | 96 ----- ...g_rules_items_conditions_items_operator.py | 146 ------- ...ibutes_warehouse_exposure_configuration.py | 18 +- ...ion_entry_point_filters_items_operation.py | 50 --- .../experiments_property_filter_input.py | 16 +- ...items.py => experiments_targeting_rule.py} | 2 +- .../experiments_targeting_rule_condition.py | 2 +- .../experiments_targeting_rule_operator.py | 80 ++++ ...attributes_metrics_items_analyses_items.py | 18 +- ...y => experiments_warehouse_entry_point.py} | 2 +- ..._warehouse_entry_point_filter_operation.py | 38 ++ .../experiments_warehouse_exposure_filter.py | 20 +- .../experiments_warehouse_filter_input.py | 2 +- ...ents_warehouse_metric_aggregation_input.py | 16 +- ...> experiments_warehouse_metric_measure.py} | 2 +- ..._warehouse_percentile_aggregation_input.py | 16 +- src/datadog_api_client/v2/models/__init__.py | 54 ++- .../test-runner-data/manifest.json | 70 ++-- ...t-events-returns-bad-request-response.json | 6 +- ...deployments-with-date-time-timestamps.json | 6 +- ...e-events-returns-bad-request-response.json | 6 +- ...-deployment-event-returns-ok-response.json | 6 +- ...d-a-failure-event-returns-ok-response.json | 6 +- .../test-server-data/manifest.json | 10 +- ...metrics.json => delivery-performance.json} | 20 +- ...s.feature => delivery_performance.feature} | 15 +- tests/v2/features/undo.json | 24 +- 59 files changed, 642 insertions(+), 896 deletions(-) rename examples/v2/{dora-metrics => delivery-performance}/CreateAIImpactUserActivity.py (89%) rename examples/v2/{dora-metrics => delivery-performance}/CreateDORADeployment.py (88%) rename examples/v2/{dora-metrics => delivery-performance}/CreateDORAFailure.py (90%) rename examples/v2/{dora-metrics => delivery-performance}/CreateDORAIncident.py (90%) rename examples/v2/{dora-metrics => delivery-performance}/CreateDORAIncident_1101664022.py (89%) rename examples/v2/{dora-metrics => delivery-performance}/DeleteDORADeployment.py (71%) rename examples/v2/{dora-metrics => delivery-performance}/DeleteDORAFailure.py (71%) rename examples/v2/{dora-metrics => delivery-performance}/DeleteDORAFailure_3462074974.py (71%) rename examples/v2/{dora-metrics => delivery-performance}/GetDORADeployment.py (73%) rename examples/v2/{dora-metrics => delivery-performance}/GetDORAFailure.py (72%) rename examples/v2/{dora-metrics => delivery-performance}/ListDORADeployments.py (89%) rename examples/v2/{dora-metrics => delivery-performance}/ListDORADeployments_1654201709.py (89%) rename examples/v2/{dora-metrics => delivery-performance}/ListDORAFailures.py (90%) rename examples/v2/{dora-metrics => delivery-performance}/ListDORAFailures_3269988848.py (89%) rename examples/v2/{dora-metrics => delivery-performance}/PatchDORADeployment.py (91%) rename examples/v2/{dora-metrics => delivery-performance}/PatchDORADeploymentByVersion.py (92%) rename src/datadog_api_client/v2/api/{dora_metrics_api.py => delivery_performance_api.py} (98%) rename src/datadog_api_client/v2/model/{experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval.py => experiments_confidence_interval.py} (91%) create mode 100644 src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_column_type.py create mode 100644 src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_operation.py delete mode 100644 src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type.py delete mode 100644 src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation.py delete mode 100644 src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator.py delete mode 100644 src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation.py rename src/datadog_api_client/v2/model/{experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items.py => experiments_targeting_rule.py} (93%) create mode 100644 src/datadog_api_client/v2/model/experiments_targeting_rule_operator.py rename src/datadog_api_client/v2/model/{experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point.py => experiments_warehouse_entry_point.py} (92%) create mode 100644 src/datadog_api_client/v2/model/experiments_warehouse_entry_point_filter_operation.py rename src/datadog_api_client/v2/model/{experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure.py => experiments_warehouse_metric_measure.py} (87%) rename tests/generated-test/test-runner-data/v2/{dora-metrics => delivery-performance}/get-a-list-of-deployment-events-returns-bad-request-response.json (79%) rename tests/generated-test/test-runner-data/v2/{dora-metrics => delivery-performance}/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json (80%) rename tests/generated-test/test-runner-data/v2/{dora-metrics => delivery-performance}/get-a-list-of-failure-events-returns-bad-request-response.json (79%) rename tests/generated-test/test-runner-data/v2/{dora-metrics => delivery-performance}/send-a-deployment-event-returns-ok-response.json (86%) rename tests/generated-test/test-runner-data/v2/{dora-metrics => delivery-performance}/send-a-failure-event-returns-ok-response.json (88%) rename tests/generated-test/test-server-data/v2/{dora-metrics.json => delivery-performance.json} (97%) rename tests/v2/features/{dora_metrics.feature => delivery_performance.feature} (97%) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 01cbd27c0e..187deb4d47 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -42034,6 +42034,18 @@ components: type: string x-enum-varnames: - CONCLUDE_EXPERIMENT_REQUEST + ExperimentsConfidenceInterval: + description: "Lower and upper bounds of the reported statistical interval." + properties: + lower: + description: "Lower bound of the reported interval." + format: double + type: number + upper: + description: "Upper bound of the reported interval." + format: double + type: number + type: object ExperimentsCreateExperimentMetricGroupV2Request: description: "Request to create a metric group on an experiment." example: @@ -42384,7 +42396,7 @@ components: example: [] items: $ref: >- - #/components/schemas/ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems + #/components/schemas/ExperimentsTargetingRule type: array required: - entry_point @@ -42392,19 +42404,6 @@ components: - feature_flag_id - targeting_rules type: object - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems: - description: Use an empty array when no targeting rules apply. - properties: - conditions: - description: >- - Conditions that must all match for this rule. Each condition must use exactly one shape: saved_filter_id alone or operator plus attribute plus value. - example: [] - items: - $ref: "#/components/schemas/ExperimentsTargetingRuleCondition" - type: array - required: - - conditions - type: object ExperimentsCreateExperimentV2RequestDataAttributesDecisionMetricsItems: description: "Metric used to make an experiment decision, with its primary metric designation." example: @@ -42452,7 +42451,7 @@ components: type: string column_type: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType + #/components/schemas/ExperimentsDatadogEntryPointFilterColumnType name: description: Optional display name. Defaults to column_name for a new property. type: string @@ -42568,7 +42567,7 @@ components: properties: entry_point: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint + #/components/schemas/ExperimentsWarehouseEntryPoint experiment_key: description: Warehouse experiment key. Must not be blank. example: checkout_button_test @@ -43068,17 +43067,6 @@ components: oneOf: - $ref: "#/components/schemas/ExperimentsWarehousePercentileAggregationInput" - $ref: "#/components/schemas/ExperimentsDatadogPercentileAggregationInput" - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure: - description: "Reference to a measure defined in a warehouse metric SQL model." - properties: - id: - description: "Identifier of the warehouse metric measure." - example: 550e8400-e29b-41d4-a716-446655440021 - format: uuid - type: string - required: - - id - type: object ExperimentsCreateSubjectTypeV2Request: description: "Request to create a subject type for experiment assignments." example: @@ -43162,10 +43150,10 @@ components: type: string column_type: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType + #/components/schemas/ExperimentsDatadogEntryPointFilterColumnType operation: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation + #/components/schemas/ExperimentsDatadogEntryPointFilterOperation values: description: "Comparison values used by the filter operation." example: [] @@ -43179,11 +43167,55 @@ components: - operation - values type: object + ExperimentsDatadogEntryPointFilterColumnType: + description: "Data type of the column evaluated by the entry-point filter." + enum: + - varchar + - int + - double + - boolean + - varchar_array + - int_array + - double_array + - raw + example: varchar + type: string + x-enum-varnames: + - VARCHAR + - INT + - DOUBLE + - BOOLEAN + - VARCHAR_ARRAY + - INT_ARRAY + - DOUBLE_ARRAY + - RAW ExperimentsDatadogEntryPointFilterGroup: description: Entry-point filters combined with AND. items: $ref: "#/components/schemas/ExperimentsDatadogEntryPointFilter" type: array + ExperimentsDatadogEntryPointFilterOperation: + description: "Comparison applied by the Datadog entry-point filter." + enum: + - eq + - in + - neq + - not_in + - gte + - lte + - gt + - lt + example: eq + type: string + x-enum-varnames: + - EQ + - IN + - NEQ + - NOT_IN + - GTE + - LTE + - GT + - LT ExperimentsDatadogMetricAggregationInput: description: >- Settings for a metric aggregation that uses a Datadog measure. The other measure must be omitted or null. @@ -44506,7 +44538,7 @@ components: type: string operator: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator + #/components/schemas/ExperimentsTargetingRuleOperator value: description: Values used by the operator. Every operator requires at least one value. example: @@ -46005,7 +46037,7 @@ components: example: [] items: $ref: >- - #/components/schemas/ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems + #/components/schemas/ExperimentsTargetingRule type: array type: object ExperimentsPatchExperimentV2Response: @@ -46357,7 +46389,7 @@ components: description: "Rules that select subjects for the experiment." items: $ref: >- - #/components/schemas/ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems + #/components/schemas/ExperimentsTargetingRule type: array required: - entry_point @@ -46380,88 +46412,6 @@ components: - filters - measure_id type: object - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType: - description: "Data type of the column evaluated by the entry-point filter." - enum: - - varchar - - int - - double - - boolean - - varchar_array - - int_array - - double_array - - raw - example: varchar - type: string - x-enum-varnames: - - VARCHAR - - INT - - DOUBLE - - BOOLEAN - - VARCHAR_ARRAY - - INT_ARRAY - - DOUBLE_ARRAY - - RAW - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation: - description: "Comparison applied by the Datadog entry-point filter." - enum: - - eq - - in - - neq - - not_in - - gte - - lte - - gt - - lt - example: eq - type: string - x-enum-varnames: - - EQ - - IN - - NEQ - - NOT_IN - - GTE - - LTE - - GT - - LT - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator: - description: Required with attribute and value for an inline condition; omit when saved_filter_id is set. - enum: - - LT - - LTE - - GT - - GTE - - MATCHES - - NOT_MATCHES - - ONE_OF - - NOT_ONE_OF - - IS_NULL - - EQUALS - - SEMVER_EQ - - SEMVER_NEQ - - SEMVER_LT - - SEMVER_LTE - - SEMVER_GT - - SEMVER_GTE - example: LT - type: string - x-enum-varnames: - - LT - - LTE - - GT - - GTE - - MATCHES - - NOT_MATCHES - - ONE_OF - - NOT_ONE_OF - - IS_NULL - - EQUALS - - SEMVER_EQ - - SEMVER_NEQ - - SEMVER_LT - - SEMVER_LTE - - SEMVER_GT - - SEMVER_GTE ExperimentsPatchExperimentV2ResponseDataAttributesSplitByPropertiesItemsColumnType: description: Type of the Datadog exposure field or Warehouse column. enum: @@ -46539,7 +46489,7 @@ components: properties: entry_point: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint + #/components/schemas/ExperimentsWarehouseEntryPoint experiment_key: description: >- Warehouse experiment key. Reads can return null for incomplete configuration; configuration writes require a value. @@ -46555,35 +46505,6 @@ components: - experiment_key - exposure_sql_model_id type: object - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint: - description: Optional Warehouse measure that scopes analyzed subjects. - example: - nullable: true - properties: - filters: - description: Complete ordered Warehouse entry-point filter set. - example: [] - items: - $ref: "#/components/schemas/ExperimentsWarehouseExposureFilter" - type: array - measure_id: - description: Warehouse measure UUID. - example: 550e8400-e29b-41d4-a716-446655440000 - type: string - required: - - filters - - measure_id - type: object - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation: - description: "Comparison applied by the warehouse entry-point filter." - enum: - - IS - - IS_NOT - example: IS - type: string - x-enum-varnames: - - IS - - IS_NOT ExperimentsPatchExperimentV2ResponseDataType: default: experiments description: Experiments resource type. @@ -46740,7 +46661,7 @@ components: type: string operation: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation + #/components/schemas/ExperimentsWarehouseEntryPointFilterOperation property_id: description: ID of the property on the aggregation source. example: 550e8400-e29b-41d4-a716-446655440023 @@ -47572,11 +47493,62 @@ components: type: string x-enum-varnames: - SUBJECT_TYPES + ExperimentsTargetingRule: + description: Use an empty array when no targeting rules apply. + properties: + conditions: + description: >- + Conditions that must all match for this rule. Each condition must use exactly one shape: saved_filter_id alone or operator plus attribute plus value. + example: [] + items: + $ref: "#/components/schemas/ExperimentsTargetingRuleCondition" + type: array + required: + - conditions + type: object ExperimentsTargetingRuleCondition: description: A saved-filter condition or a complete inline condition. The two forms cannot be combined. oneOf: - $ref: "#/components/schemas/ExperimentsSavedFilterCondition" - $ref: "#/components/schemas/ExperimentsInlineCondition" + ExperimentsTargetingRuleOperator: + description: Required with attribute and value for an inline condition; omit when saved_filter_id is set. + enum: + - LT + - LTE + - GT + - GTE + - MATCHES + - NOT_MATCHES + - ONE_OF + - NOT_ONE_OF + - IS_NULL + - EQUALS + - SEMVER_EQ + - SEMVER_NEQ + - SEMVER_LT + - SEMVER_LTE + - SEMVER_GT + - SEMVER_GTE + example: LT + type: string + x-enum-varnames: + - LT + - LTE + - GT + - GTE + - MATCHES + - NOT_MATCHES + - ONE_OF + - NOT_ONE_OF + - IS_NULL + - EQUALS + - SEMVER_EQ + - SEMVER_NEQ + - SEMVER_LT + - SEMVER_LTE + - SEMVER_GT + - SEMVER_GTE ExperimentsTrafficSummaryV2DTO: description: "Response containing the experiment traffic summary." properties: @@ -48096,7 +48068,7 @@ components: properties: confidence_interval: $ref: >- - #/components/schemas/ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval + #/components/schemas/ExperimentsConfidenceInterval confidence_level: description: >- Configured nominal confidence level. Interval bounds can use an adjusted level for multiple testing or hybrid methods. @@ -48175,18 +48147,6 @@ components: format: double type: number type: object - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval: - description: "Lower and upper bounds of the reported statistical interval." - properties: - lower: - description: "Lower bound of the reported interval." - format: double - type: number - upper: - description: "Upper bound of the reported interval." - format: double - type: number - type: object ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsLiftType: description: "Whether the reported lift is relative or absolute." enum: @@ -48272,12 +48232,41 @@ components: type: string x-enum-varnames: - EXPERIMENT_VARIANT_RESULTS + ExperimentsWarehouseEntryPoint: + description: Optional Warehouse measure that scopes analyzed subjects. + example: + nullable: true + properties: + filters: + description: Complete ordered Warehouse entry-point filter set. + example: [] + items: + $ref: "#/components/schemas/ExperimentsWarehouseExposureFilter" + type: array + measure_id: + description: Warehouse measure UUID. + example: 550e8400-e29b-41d4-a716-446655440000 + type: string + required: + - filters + - measure_id + type: object + ExperimentsWarehouseEntryPointFilterOperation: + description: "Comparison applied by the warehouse entry-point filter." + enum: + - IS + - IS_NOT + example: IS + type: string + x-enum-varnames: + - IS + - IS_NOT ExperimentsWarehouseExposureFilter: description: "A comparison that selects warehouse exposure data by a property." properties: operation: $ref: >- - #/components/schemas/ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation + #/components/schemas/ExperimentsWarehouseEntryPointFilterOperation property_id: description: Warehouse property UUID. example: 550e8400-e29b-41d4-a716-446655440000 @@ -48385,7 +48374,7 @@ components: type: string warehouse_metric_measure: $ref: >- - #/components/schemas/ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + #/components/schemas/ExperimentsWarehouseMetricMeasure winsor_lower_fixed_value: description: Fixed lower bound used to cap extreme measure values. format: double @@ -48409,6 +48398,17 @@ components: - operation - warehouse_metric_measure type: object + ExperimentsWarehouseMetricMeasure: + description: "Reference to a measure defined in a warehouse metric SQL model." + properties: + id: + description: "Identifier of the warehouse metric measure." + example: 550e8400-e29b-41d4-a716-446655440021 + format: uuid + type: string + required: + - id + type: object ExperimentsWarehousePercentileAggregationInput: description: >- Settings for a percentile aggregation that uses a Warehouse measure. The other measure must be omitted or null. @@ -48432,7 +48432,7 @@ components: type: array warehouse_metric_measure: $ref: >- - #/components/schemas/ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + #/components/schemas/ExperimentsWarehouseMetricMeasure required: - percentile - warehouse_metric_measure @@ -143236,7 +143236,7 @@ paths: - apiKeyAuth: [] summary: Send AI tool user activity tags: - - DORA Metrics + - Delivery Performance x-codegen-request-body-name: body /api/v2/annotation: get: @@ -164332,7 +164332,7 @@ paths: security: - apiKeyAuth: [] summary: Send a deployment event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body /api/v2/dora/deployment/{deployment_id}: delete: @@ -164364,7 +164364,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Delete a deployment event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-permission: operator: OR permissions: @@ -164408,7 +164408,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Mark a deployment as failed by version - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164469,7 +164469,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Get a list of deployment events - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164521,7 +164521,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Get a deployment event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164573,7 +164573,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Mark a deployment as failed by ID - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164650,7 +164650,7 @@ paths: security: - apiKeyAuth: [] summary: Send an incident event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body /api/v2/dora/failure/{failure_id}: delete: @@ -164682,7 +164682,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Delete an incident event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-permission: operator: OR permissions: @@ -164745,7 +164745,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Get a list of incident events - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164799,7 +164799,7 @@ paths: appKeyAuth: [] - AuthZ: [] summary: Get an incident event - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body x-permission: operator: OR @@ -164878,7 +164878,7 @@ paths: security: - apiKeyAuth: [] summary: Send an incident event (legacy) - tags: ["DORA Metrics"] + tags: ["Delivery Performance"] x-codegen-request-body-name: body /api/v2/downtime: get: @@ -247890,11 +247890,6 @@ tags: name: DDSQL - description: Manage Digital Experience Monitoring journeys. name: DEM - - description: |- - Search, send, or delete events for DORA Metrics to measure and improve your software delivery performance. See the [DORA Metrics page](https://docs.datadoghq.com/dora_metrics/) for more information. - - **Note**: DORA Metrics are not available in the US1-FED site. - name: DORA Metrics - description: |- Interact with your dashboard lists through the API to organize, find, and share all of your dashboards with your team and @@ -247937,6 +247932,11 @@ tags: access to sensitive data. By defining Restricted Datasets, you can ensure that only specific teams or roles can view certain types of telemetry (for example, logs, traces, metrics, and RUM data). name: Datasets + - description: |- + Search, send, or delete events for Delivery Performance (formerly DORA Metrics) to measure and improve your software delivery performance. See the [Delivery Performance page](https://docs.datadoghq.com/dora_metrics/) for more information. + + **Note**: Delivery Performance is not available in the US1-FED site. + name: Delivery Performance - description: |- Manage Deployment Gates using this API to reduce the likelihood and impact of incidents caused by deployments. See the [Deployment Gates documentation](https://docs.datadoghq.com/deployment_gates/) for more information. name: Deployment Gates diff --git a/examples/v2/dora-metrics/CreateAIImpactUserActivity.py b/examples/v2/delivery-performance/CreateAIImpactUserActivity.py similarity index 89% rename from examples/v2/dora-metrics/CreateAIImpactUserActivity.py rename to examples/v2/delivery-performance/CreateAIImpactUserActivity.py index de20e22233..26878e52a5 100644 --- a/examples/v2/dora-metrics/CreateAIImpactUserActivity.py +++ b/examples/v2/delivery-performance/CreateAIImpactUserActivity.py @@ -3,7 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.ai_impact_user_activity_attributes import AIImpactUserActivityAttributes from datadog_api_client.v2.model.ai_impact_user_activity_data import AIImpactUserActivityData from datadog_api_client.v2.model.ai_impact_user_activity_request import AIImpactUserActivityRequest @@ -32,5 +32,5 @@ configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.create_ai_impact_user_activity(body=body) diff --git a/examples/v2/dora-metrics/CreateDORADeployment.py b/examples/v2/delivery-performance/CreateDORADeployment.py similarity index 88% rename from examples/v2/dora-metrics/CreateDORADeployment.py rename to examples/v2/delivery-performance/CreateDORADeployment.py index a62a181fee..24bdd10816 100644 --- a/examples/v2/dora-metrics/CreateDORADeployment.py +++ b/examples/v2/delivery-performance/CreateDORADeployment.py @@ -3,7 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_deployment_request import DORADeploymentRequest from datadog_api_client.v2.model.dora_deployment_request_attributes import DORADeploymentRequestAttributes from datadog_api_client.v2.model.dora_deployment_request_data import DORADeploymentRequestData @@ -26,7 +26,7 @@ configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.create_dora_deployment(body=body) print(response) diff --git a/examples/v2/dora-metrics/CreateDORAFailure.py b/examples/v2/delivery-performance/CreateDORAFailure.py similarity index 90% rename from examples/v2/dora-metrics/CreateDORAFailure.py rename to examples/v2/delivery-performance/CreateDORAFailure.py index df560210e5..daace8dcfb 100644 --- a/examples/v2/dora-metrics/CreateDORAFailure.py +++ b/examples/v2/delivery-performance/CreateDORAFailure.py @@ -3,7 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_failure_request import DORAFailureRequest from datadog_api_client.v2.model.dora_failure_request_attributes import DORAFailureRequestAttributes from datadog_api_client.v2.model.dora_failure_request_data import DORAFailureRequestData @@ -36,7 +36,7 @@ configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.create_dora_failure(body=body) print(response) diff --git a/examples/v2/dora-metrics/CreateDORAIncident.py b/examples/v2/delivery-performance/CreateDORAIncident.py similarity index 90% rename from examples/v2/dora-metrics/CreateDORAIncident.py rename to examples/v2/delivery-performance/CreateDORAIncident.py index aadfdd222a..875f82c0b9 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident.py +++ b/examples/v2/delivery-performance/CreateDORAIncident.py @@ -3,7 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_failure_request import DORAFailureRequest from datadog_api_client.v2.model.dora_failure_request_attributes import DORAFailureRequestAttributes from datadog_api_client.v2.model.dora_failure_request_data import DORAFailureRequestData @@ -36,7 +36,7 @@ configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.create_dora_incident(body=body) print(response) diff --git a/examples/v2/dora-metrics/CreateDORAIncident_1101664022.py b/examples/v2/delivery-performance/CreateDORAIncident_1101664022.py similarity index 89% rename from examples/v2/dora-metrics/CreateDORAIncident_1101664022.py rename to examples/v2/delivery-performance/CreateDORAIncident_1101664022.py index 841b028146..a3f0f8a3d5 100644 --- a/examples/v2/dora-metrics/CreateDORAIncident_1101664022.py +++ b/examples/v2/delivery-performance/CreateDORAIncident_1101664022.py @@ -3,7 +3,7 @@ """ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_failure_request import DORAFailureRequest from datadog_api_client.v2.model.dora_failure_request_attributes import DORAFailureRequestAttributes from datadog_api_client.v2.model.dora_failure_request_data import DORAFailureRequestData @@ -31,7 +31,7 @@ configuration = Configuration() with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.create_dora_incident(body=body) print(response) diff --git a/examples/v2/dora-metrics/DeleteDORADeployment.py b/examples/v2/delivery-performance/DeleteDORADeployment.py similarity index 71% rename from examples/v2/dora-metrics/DeleteDORADeployment.py rename to examples/v2/delivery-performance/DeleteDORADeployment.py index e3ccabeebe..d76f0debb8 100644 --- a/examples/v2/dora-metrics/DeleteDORADeployment.py +++ b/examples/v2/delivery-performance/DeleteDORADeployment.py @@ -4,12 +4,12 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.delete_dora_deployment( deployment_id="NO_VALUE", ) diff --git a/examples/v2/dora-metrics/DeleteDORAFailure.py b/examples/v2/delivery-performance/DeleteDORAFailure.py similarity index 71% rename from examples/v2/dora-metrics/DeleteDORAFailure.py rename to examples/v2/delivery-performance/DeleteDORAFailure.py index 4ade381ed3..abe2a57223 100644 --- a/examples/v2/dora-metrics/DeleteDORAFailure.py +++ b/examples/v2/delivery-performance/DeleteDORAFailure.py @@ -4,12 +4,12 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.delete_dora_failure( failure_id="failure_id", ) diff --git a/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.py b/examples/v2/delivery-performance/DeleteDORAFailure_3462074974.py similarity index 71% rename from examples/v2/dora-metrics/DeleteDORAFailure_3462074974.py rename to examples/v2/delivery-performance/DeleteDORAFailure_3462074974.py index 3bf58044a3..d49d079d4c 100644 --- a/examples/v2/dora-metrics/DeleteDORAFailure_3462074974.py +++ b/examples/v2/delivery-performance/DeleteDORAFailure_3462074974.py @@ -4,12 +4,12 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.delete_dora_failure( failure_id="NO_VALUE", ) diff --git a/examples/v2/dora-metrics/GetDORADeployment.py b/examples/v2/delivery-performance/GetDORADeployment.py similarity index 73% rename from examples/v2/dora-metrics/GetDORADeployment.py rename to examples/v2/delivery-performance/GetDORADeployment.py index 05bb0f6bfe..23ef1a3b1e 100644 --- a/examples/v2/dora-metrics/GetDORADeployment.py +++ b/examples/v2/delivery-performance/GetDORADeployment.py @@ -4,12 +4,12 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.get_dora_deployment( deployment_id="deployment_id", ) diff --git a/examples/v2/dora-metrics/GetDORAFailure.py b/examples/v2/delivery-performance/GetDORAFailure.py similarity index 72% rename from examples/v2/dora-metrics/GetDORAFailure.py rename to examples/v2/delivery-performance/GetDORAFailure.py index 8484491caf..2710836090 100644 --- a/examples/v2/dora-metrics/GetDORAFailure.py +++ b/examples/v2/delivery-performance/GetDORAFailure.py @@ -4,12 +4,12 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.get_dora_failure( failure_id="failure_id", ) diff --git a/examples/v2/dora-metrics/ListDORADeployments.py b/examples/v2/delivery-performance/ListDORADeployments.py similarity index 89% rename from examples/v2/dora-metrics/ListDORADeployments.py rename to examples/v2/delivery-performance/ListDORADeployments.py index dc25e317a6..0f7e3771ee 100644 --- a/examples/v2/dora-metrics/ListDORADeployments.py +++ b/examples/v2/delivery-performance/ListDORADeployments.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_list_deployments_request import DORAListDeploymentsRequest from datadog_api_client.v2.model.dora_list_deployments_request_attributes import DORAListDeploymentsRequestAttributes from datadog_api_client.v2.model.dora_list_deployments_request_data import DORAListDeploymentsRequestData @@ -26,7 +26,7 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.list_dora_deployments(body=body) print(response) diff --git a/examples/v2/dora-metrics/ListDORADeployments_1654201709.py b/examples/v2/delivery-performance/ListDORADeployments_1654201709.py similarity index 89% rename from examples/v2/dora-metrics/ListDORADeployments_1654201709.py rename to examples/v2/delivery-performance/ListDORADeployments_1654201709.py index 89987d10e8..a692d52817 100644 --- a/examples/v2/dora-metrics/ListDORADeployments_1654201709.py +++ b/examples/v2/delivery-performance/ListDORADeployments_1654201709.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_list_deployments_request import DORAListDeploymentsRequest from datadog_api_client.v2.model.dora_list_deployments_request_attributes import DORAListDeploymentsRequestAttributes from datadog_api_client.v2.model.dora_list_deployments_request_data import DORAListDeploymentsRequestData @@ -25,7 +25,7 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.list_dora_deployments(body=body) print(response) diff --git a/examples/v2/dora-metrics/ListDORAFailures.py b/examples/v2/delivery-performance/ListDORAFailures.py similarity index 90% rename from examples/v2/dora-metrics/ListDORAFailures.py rename to examples/v2/delivery-performance/ListDORAFailures.py index dc6a206e67..eff9503a84 100644 --- a/examples/v2/dora-metrics/ListDORAFailures.py +++ b/examples/v2/delivery-performance/ListDORAFailures.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_list_failures_request import DORAListFailuresRequest from datadog_api_client.v2.model.dora_list_failures_request_attributes import DORAListFailuresRequestAttributes from datadog_api_client.v2.model.dora_list_failures_request_data import DORAListFailuresRequestData @@ -28,7 +28,7 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.list_dora_failures(body=body) print(response) diff --git a/examples/v2/dora-metrics/ListDORAFailures_3269988848.py b/examples/v2/delivery-performance/ListDORAFailures_3269988848.py similarity index 89% rename from examples/v2/dora-metrics/ListDORAFailures_3269988848.py rename to examples/v2/delivery-performance/ListDORAFailures_3269988848.py index b8808634a3..ee8610beab 100644 --- a/examples/v2/dora-metrics/ListDORAFailures_3269988848.py +++ b/examples/v2/delivery-performance/ListDORAFailures_3269988848.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_list_failures_request import DORAListFailuresRequest from datadog_api_client.v2.model.dora_list_failures_request_attributes import DORAListFailuresRequestAttributes from datadog_api_client.v2.model.dora_list_failures_request_data import DORAListFailuresRequestData @@ -26,7 +26,7 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) response = api_instance.list_dora_failures(body=body) print(response) diff --git a/examples/v2/dora-metrics/PatchDORADeployment.py b/examples/v2/delivery-performance/PatchDORADeployment.py similarity index 91% rename from examples/v2/dora-metrics/PatchDORADeployment.py rename to examples/v2/delivery-performance/PatchDORADeployment.py index 1a6b58b576..a4ec7184db 100644 --- a/examples/v2/dora-metrics/PatchDORADeployment.py +++ b/examples/v2/delivery-performance/PatchDORADeployment.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_deployment_patch_remediation import DORADeploymentPatchRemediation from datadog_api_client.v2.model.dora_deployment_patch_remediation_type import DORADeploymentPatchRemediationType from datadog_api_client.v2.model.dora_deployment_patch_request import DORADeploymentPatchRequest @@ -29,5 +29,5 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.patch_dora_deployment(deployment_id="deployment_id", body=body) diff --git a/examples/v2/dora-metrics/PatchDORADeploymentByVersion.py b/examples/v2/delivery-performance/PatchDORADeploymentByVersion.py similarity index 92% rename from examples/v2/dora-metrics/PatchDORADeploymentByVersion.py rename to examples/v2/delivery-performance/PatchDORADeploymentByVersion.py index b415489078..60886b6263 100644 --- a/examples/v2/dora-metrics/PatchDORADeploymentByVersion.py +++ b/examples/v2/delivery-performance/PatchDORADeploymentByVersion.py @@ -4,7 +4,7 @@ from os import environ from datadog_api_client import ApiClient, Configuration -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.model.dora_deployment_patch_by_version_remediation_by_version import ( DORADeploymentPatchByVersionRemediationByVersion, ) @@ -37,5 +37,5 @@ configuration = Configuration() configuration.access_token = environ["DD_BEARER_TOKEN"] with ApiClient(configuration) as api_client: - api_instance = DORAMetricsApi(api_client) + api_instance = DeliveryPerformanceApi(api_client) api_instance.patch_dora_deployment_by_version(body=body) diff --git a/src/datadog_api_client/v2/api/dora_metrics_api.py b/src/datadog_api_client/v2/api/delivery_performance_api.py similarity index 98% rename from src/datadog_api_client/v2/api/dora_metrics_api.py rename to src/datadog_api_client/v2/api/delivery_performance_api.py index 534f7b1a8e..5b59d526c7 100644 --- a/src/datadog_api_client/v2/api/dora_metrics_api.py +++ b/src/datadog_api_client/v2/api/delivery_performance_api.py @@ -23,11 +23,11 @@ from datadog_api_client.v2.model.dora_failure_fetch_response import DORAFailureFetchResponse -class DORAMetricsApi: +class DeliveryPerformanceApi: """ - Search, send, or delete events for DORA Metrics to measure and improve your software delivery performance. See the `DORA Metrics page `_ for more information. + Search, send, or delete events for Delivery Performance (formerly DORA Metrics) to measure and improve your software delivery performance. See the `Delivery Performance page `_ for more information. - **Note** : DORA Metrics are not available in the US1-FED site. + **Note** : Delivery Performance is not available in the US1-FED site. """ def __init__(self, api_client=None): diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index 2fde805f3c..37fdca46f5 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -39,7 +39,6 @@ from datadog_api_client.v2.api.customer_org_api import CustomerOrgApi from datadog_api_client.v2.api.ddsql_api import DDSQLApi from datadog_api_client.v2.api.dem_api import DEMApi -from datadog_api_client.v2.api.dora_metrics_api import DORAMetricsApi from datadog_api_client.v2.api.dashboard_lists_api import DashboardListsApi from datadog_api_client.v2.api.dashboard_secure_embed_api import DashboardSecureEmbedApi from datadog_api_client.v2.api.dashboard_sharing_api import DashboardSharingApi @@ -48,6 +47,7 @@ from datadog_api_client.v2.api.data_observability_api import DataObservabilityApi from datadog_api_client.v2.api.databricks_integration_api import DatabricksIntegrationApi from datadog_api_client.v2.api.datasets_api import DatasetsApi +from datadog_api_client.v2.api.delivery_performance_api import DeliveryPerformanceApi from datadog_api_client.v2.api.deployment_gates_api import DeploymentGatesApi from datadog_api_client.v2.api.domain_allowlist_api import DomainAllowlistApi from datadog_api_client.v2.api.downtimes_api import DowntimesApi @@ -196,7 +196,6 @@ "CustomerOrgApi", "DDSQLApi", "DEMApi", - "DORAMetricsApi", "DashboardListsApi", "DashboardSecureEmbedApi", "DashboardSharingApi", @@ -205,6 +204,7 @@ "DataObservabilityApi", "DatabricksIntegrationApi", "DatasetsApi", + "DeliveryPerformanceApi", "DeploymentGatesApi", "DomainAllowlistApi", "DowntimesApi", diff --git a/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval.py b/src/datadog_api_client/v2/model/experiments_confidence_interval.py similarity index 91% rename from src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval.py rename to src/datadog_api_client/v2/model/experiments_confidence_interval.py index af0d4bbc7f..32c7b0039d 100644 --- a/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval.py +++ b/src/datadog_api_client/v2/model/experiments_confidence_interval.py @@ -13,7 +13,7 @@ ) -class ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval(ModelNormal): +class ExperimentsConfidenceInterval(ModelNormal): @cached_property def openapi_types(_): return { diff --git a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration.py b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration.py index 05d5c0f6b9..c48c1749b9 100644 --- a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration.py +++ b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration.py @@ -19,9 +19,7 @@ from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule class ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfiguration(ModelNormal): @@ -32,18 +30,14 @@ def openapi_types(_): from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule return { "entry_point": (ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint,), "environment_id": (UUID,), "feature_flag_id": (UUID,), "reset_on_feature_flag_change": (bool,), - "targeting_rules": ( - [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], - ), + "targeting_rules": ([ExperimentsTargetingRule],), } attribute_map = { @@ -61,9 +55,7 @@ def __init__( ], environment_id: UUID, feature_flag_id: UUID, - targeting_rules: List[ - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems - ], + targeting_rules: List[ExperimentsTargetingRule], reset_on_feature_flag_change: Union[bool, UnsetType] = unset, **kwargs, ): @@ -83,7 +75,7 @@ def __init__( :type reset_on_feature_flag_change: bool, optional :param targeting_rules: Use an empty array when no targeting rules apply. - :type targeting_rules: [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems] + :type targeting_rules: [ExperimentsTargetingRule] """ if reset_on_feature_flag_change is not unset: kwargs["reset_on_feature_flag_change"] = reset_on_feature_flag_change diff --git a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_split_by_properties_items.py b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_split_by_properties_items.py index 4b8fc7e542..e3bb2956a5 100644 --- a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_split_by_properties_items.py +++ b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_split_by_properties_items.py @@ -14,23 +14,21 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_column_type import ( + ExperimentsDatadogEntryPointFilterColumnType, ) class ExperimentsCreateExperimentV2RequestDataAttributesSplitByPropertiesItems(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_column_type import ( + ExperimentsDatadogEntryPointFilterColumnType, ) return { "column_name": (str,), - "column_type": ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, - ), + "column_type": (ExperimentsDatadogEntryPointFilterColumnType,), "name": (str,), } @@ -43,10 +41,7 @@ def openapi_types(_): def __init__( self_, column_name: str, - column_type: Union[ - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, - UnsetType, - ] = unset, + column_type: Union[ExperimentsDatadogEntryPointFilterColumnType, UnsetType] = unset, name: Union[str, UnsetType] = unset, **kwargs, ): @@ -57,7 +52,7 @@ def __init__( :type column_name: str :param column_type: Data type of the column evaluated by the entry-point filter. - :type column_type: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, optional + :type column_type: ExperimentsDatadogEntryPointFilterColumnType, optional :param name: Optional display name. Defaults to column_name for a new property. :type name: str, optional diff --git a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_warehouse_exposure_configuration.py b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_warehouse_exposure_configuration.py index adb235c1fd..9015ca5cfd 100644 --- a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_warehouse_exposure_configuration.py +++ b/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_warehouse_exposure_configuration.py @@ -13,9 +13,7 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ) + from datadog_api_client.v2.model.experiments_warehouse_entry_point import ExperimentsWarehouseEntryPoint class ExperimentsCreateExperimentV2RequestDataAttributesWarehouseExposureConfiguration(ModelNormal): @@ -29,14 +27,10 @@ class ExperimentsCreateExperimentV2RequestDataAttributesWarehouseExposureConfigu @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ) + from datadog_api_client.v2.model.experiments_warehouse_entry_point import ExperimentsWarehouseEntryPoint return { - "entry_point": ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ), + "entry_point": (ExperimentsWarehouseEntryPoint,), "experiment_key": (str,), "exposure_sql_model_id": (str,), } @@ -49,9 +43,7 @@ def openapi_types(_): def __init__( self_, - entry_point: Union[ - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, none_type - ], + entry_point: Union[ExperimentsWarehouseEntryPoint, none_type], experiment_key: str, exposure_sql_model_id: str, **kwargs, @@ -60,7 +52,7 @@ def __init__( Warehouse model and experiment key used to read assignment data. :param entry_point: Optional Warehouse measure that scopes analyzed subjects. - :type entry_point: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, none_type + :type entry_point: ExperimentsWarehouseEntryPoint, none_type :param experiment_key: Warehouse experiment key. Must not be blank. :type experiment_key: str diff --git a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_numerator_aggregation.py b/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_numerator_aggregation.py index 725978061b..a0c82a75bf 100644 --- a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_numerator_aggregation.py +++ b/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_numerator_aggregation.py @@ -57,7 +57,7 @@ def __init__(self, **kwargs): :type timeframe_unit: str, optional :param warehouse_metric_measure: Reference to a measure defined in a warehouse metric SQL model. - :type warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + :type warehouse_metric_measure: ExperimentsWarehouseMetricMeasure :param winsor_lower_fixed_value: Fixed lower bound used to cap extreme measure values. :type winsor_lower_fixed_value: float, optional diff --git a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation.py b/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation.py index 7bc658f174..0d3f429528 100644 --- a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation.py +++ b/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation.py @@ -25,7 +25,7 @@ def __init__(self, **kwargs): :type property_filters: [[ExperimentsPropertyFilterInput]], none_type, optional :param warehouse_metric_measure: Reference to a measure defined in a warehouse metric SQL model. - :type warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + :type warehouse_metric_measure: ExperimentsWarehouseMetricMeasure """ super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter.py b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter.py index 359d3b1d19..ba51fa7945 100644 --- a/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter.py +++ b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter.py @@ -12,32 +12,28 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_column_type import ( + ExperimentsDatadogEntryPointFilterColumnType, ) - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_operation import ( + ExperimentsDatadogEntryPointFilterOperation, ) class ExperimentsDatadogEntryPointFilter(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_column_type import ( + ExperimentsDatadogEntryPointFilterColumnType, ) - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation, + from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_operation import ( + ExperimentsDatadogEntryPointFilterOperation, ) return { "column": (str,), - "column_type": ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, - ), - "operation": ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation, - ), + "column_type": (ExperimentsDatadogEntryPointFilterColumnType,), + "operation": (ExperimentsDatadogEntryPointFilterOperation,), "values": ([str],), } @@ -51,8 +47,8 @@ def openapi_types(_): def __init__( self_, column: str, - column_type: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, - operation: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation, + column_type: ExperimentsDatadogEntryPointFilterColumnType, + operation: ExperimentsDatadogEntryPointFilterOperation, values: List[str], **kwargs, ): @@ -63,10 +59,10 @@ def __init__( :type column: str :param column_type: Data type of the column evaluated by the entry-point filter. - :type column_type: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType + :type column_type: ExperimentsDatadogEntryPointFilterColumnType :param operation: Comparison applied by the Datadog entry-point filter. - :type operation: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation + :type operation: ExperimentsDatadogEntryPointFilterOperation :param values: Comparison values used by the filter operation. :type values: [str] diff --git a/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_column_type.py b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_column_type.py new file mode 100644 index 0000000000..91453d428c --- /dev/null +++ b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_column_type.py @@ -0,0 +1,58 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ExperimentsDatadogEntryPointFilterColumnType(ModelSimple): + """ + Data type of the column evaluated by the entry-point filter. + + :param value: Must be one of ["varchar", "int", "double", "boolean", "varchar_array", "int_array", "double_array", "raw"]. + :type value: str + """ + + allowed_values = { + "varchar", + "int", + "double", + "boolean", + "varchar_array", + "int_array", + "double_array", + "raw", + } + VARCHAR: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + INT: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + DOUBLE: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + BOOLEAN: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + VARCHAR_ARRAY: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + INT_ARRAY: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + DOUBLE_ARRAY: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + RAW: ClassVar["ExperimentsDatadogEntryPointFilterColumnType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ExperimentsDatadogEntryPointFilterColumnType.VARCHAR = ExperimentsDatadogEntryPointFilterColumnType("varchar") +ExperimentsDatadogEntryPointFilterColumnType.INT = ExperimentsDatadogEntryPointFilterColumnType("int") +ExperimentsDatadogEntryPointFilterColumnType.DOUBLE = ExperimentsDatadogEntryPointFilterColumnType("double") +ExperimentsDatadogEntryPointFilterColumnType.BOOLEAN = ExperimentsDatadogEntryPointFilterColumnType("boolean") +ExperimentsDatadogEntryPointFilterColumnType.VARCHAR_ARRAY = ExperimentsDatadogEntryPointFilterColumnType( + "varchar_array" +) +ExperimentsDatadogEntryPointFilterColumnType.INT_ARRAY = ExperimentsDatadogEntryPointFilterColumnType("int_array") +ExperimentsDatadogEntryPointFilterColumnType.DOUBLE_ARRAY = ExperimentsDatadogEntryPointFilterColumnType("double_array") +ExperimentsDatadogEntryPointFilterColumnType.RAW = ExperimentsDatadogEntryPointFilterColumnType("raw") diff --git a/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_operation.py b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_operation.py new file mode 100644 index 0000000000..7f6e1faafb --- /dev/null +++ b/src/datadog_api_client/v2/model/experiments_datadog_entry_point_filter_operation.py @@ -0,0 +1,56 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ExperimentsDatadogEntryPointFilterOperation(ModelSimple): + """ + Comparison applied by the Datadog entry-point filter. + + :param value: Must be one of ["eq", "in", "neq", "not_in", "gte", "lte", "gt", "lt"]. + :type value: str + """ + + allowed_values = { + "eq", + "in", + "neq", + "not_in", + "gte", + "lte", + "gt", + "lt", + } + EQ: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + IN: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + NEQ: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + NOT_IN: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + GTE: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + LTE: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + GT: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + LT: ClassVar["ExperimentsDatadogEntryPointFilterOperation"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ExperimentsDatadogEntryPointFilterOperation.EQ = ExperimentsDatadogEntryPointFilterOperation("eq") +ExperimentsDatadogEntryPointFilterOperation.IN = ExperimentsDatadogEntryPointFilterOperation("in") +ExperimentsDatadogEntryPointFilterOperation.NEQ = ExperimentsDatadogEntryPointFilterOperation("neq") +ExperimentsDatadogEntryPointFilterOperation.NOT_IN = ExperimentsDatadogEntryPointFilterOperation("not_in") +ExperimentsDatadogEntryPointFilterOperation.GTE = ExperimentsDatadogEntryPointFilterOperation("gte") +ExperimentsDatadogEntryPointFilterOperation.LTE = ExperimentsDatadogEntryPointFilterOperation("lte") +ExperimentsDatadogEntryPointFilterOperation.GT = ExperimentsDatadogEntryPointFilterOperation("gt") +ExperimentsDatadogEntryPointFilterOperation.LT = ExperimentsDatadogEntryPointFilterOperation("lt") diff --git a/src/datadog_api_client/v2/model/experiments_inline_condition.py b/src/datadog_api_client/v2/model/experiments_inline_condition.py index 20d6490cb2..aa6053901f 100644 --- a/src/datadog_api_client/v2/model/experiments_inline_condition.py +++ b/src/datadog_api_client/v2/model/experiments_inline_condition.py @@ -12,9 +12,7 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator, - ) + from datadog_api_client.v2.model.experiments_targeting_rule_operator import ExperimentsTargetingRuleOperator class ExperimentsInlineCondition(ModelNormal): @@ -29,15 +27,11 @@ class ExperimentsInlineCondition(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator, - ) + from datadog_api_client.v2.model.experiments_targeting_rule_operator import ExperimentsTargetingRuleOperator return { "attribute": (str,), - "operator": ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator, - ), + "operator": (ExperimentsTargetingRuleOperator,), "value": ([str],), } @@ -47,13 +41,7 @@ def openapi_types(_): "value": "value", } - def __init__( - self_, - attribute: str, - operator: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator, - value: List[str], - **kwargs, - ): + def __init__(self_, attribute: str, operator: ExperimentsTargetingRuleOperator, value: List[str], **kwargs): """ An inline condition. The saved_filter_id field must be omitted or null. @@ -61,7 +49,7 @@ def __init__( :type attribute: str :param operator: Required with attribute and value for an inline condition; omit when saved_filter_id is set. - :type operator: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator + :type operator: ExperimentsTargetingRuleOperator :param value: Values used by the operator. Every operator requires at least one value. :type value: [str] diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_request_data_attributes_datadog_flag_configuration.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_request_data_attributes_datadog_flag_configuration.py index ccbf0a1a9b..558752f2c2 100644 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_request_data_attributes_datadog_flag_configuration.py +++ b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_request_data_attributes_datadog_flag_configuration.py @@ -18,9 +18,7 @@ from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule class ExperimentsPatchExperimentV2RequestDataAttributesDatadogFlagConfiguration(ModelNormal): @@ -31,18 +29,14 @@ def openapi_types(_): from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule return { "entry_point": (ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint,), "environment_id": (str,), "feature_flag_id": (str,), "reset_on_feature_flag_change": (bool,), - "targeting_rules": ( - [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], - ), + "targeting_rules": ([ExperimentsTargetingRule],), } attribute_map = { @@ -61,10 +55,7 @@ def __init__( environment_id: Union[str, UnsetType] = unset, feature_flag_id: Union[str, UnsetType] = unset, reset_on_feature_flag_change: Union[bool, UnsetType] = unset, - targeting_rules: Union[ - List[ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], - UnsetType, - ] = unset, + targeting_rules: Union[List[ExperimentsTargetingRule], UnsetType] = unset, **kwargs, ): """ @@ -83,7 +74,7 @@ def __init__( :type reset_on_feature_flag_change: bool, optional :param targeting_rules: Omit to keep the stored rules. Use an empty array to remove targeting rules. - :type targeting_rules: [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], optional + :type targeting_rules: [ExperimentsTargetingRule], optional """ if entry_point is not unset: kwargs["entry_point"] = entry_point diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration.py index 37f185e8da..de617aa38c 100644 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration.py +++ b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration.py @@ -18,9 +18,7 @@ from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule class ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfiguration(ModelNormal): @@ -31,18 +29,14 @@ def openapi_types(_): from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) - from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, - ) + from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule return { "allocation_key": (str,), "entry_point": (ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint,), "environment_id": (str,), "feature_flag_id": (str,), - "targeting_rules": ( - [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], - ), + "targeting_rules": ([ExperimentsTargetingRule],), } attribute_map = { @@ -61,10 +55,7 @@ def __init__( allocation_key: Union[str, UnsetType] = unset, environment_id: Union[str, UnsetType] = unset, feature_flag_id: Union[str, UnsetType] = unset, - targeting_rules: Union[ - List[ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], - UnsetType, - ] = unset, + targeting_rules: Union[List[ExperimentsTargetingRule], UnsetType] = unset, **kwargs, ): """ @@ -83,7 +74,7 @@ def __init__( :type feature_flag_id: str, optional :param targeting_rules: Rules that select subjects for the experiment. - :type targeting_rules: [ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems], optional + :type targeting_rules: [ExperimentsTargetingRule], optional """ if allocation_key is not unset: kwargs["allocation_key"] = allocation_key diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type.py deleted file mode 100644 index 40b49c0480..0000000000 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type.py +++ /dev/null @@ -1,94 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - ModelSimple -): - """ - Data type of the column evaluated by the entry-point filter. - - :param value: Must be one of ["varchar", "int", "double", "boolean", "varchar_array", "int_array", "double_array", "raw"]. - :type value: str - """ - - allowed_values = { - "varchar", - "int", - "double", - "boolean", - "varchar_array", - "int_array", - "double_array", - "raw", - } - VARCHAR: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - INT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - DOUBLE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - BOOLEAN: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - VARCHAR_ARRAY: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - INT_ARRAY: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - DOUBLE_ARRAY: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - RAW: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType" - ] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.VARCHAR = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "varchar" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.INT = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "int" - ) -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.DOUBLE = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "double" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.BOOLEAN = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "boolean" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.VARCHAR_ARRAY = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "varchar_array" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.INT_ARRAY = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "int_array" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.DOUBLE_ARRAY = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "double_array" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType.RAW = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType( - "raw" - ) -) diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation.py deleted file mode 100644 index ad98f6b0ac..0000000000 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation.py +++ /dev/null @@ -1,96 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation( - ModelSimple -): - """ - Comparison applied by the Datadog entry-point filter. - - :param value: Must be one of ["eq", "in", "neq", "not_in", "gte", "lte", "gt", "lt"]. - :type value: str - """ - - allowed_values = { - "eq", - "in", - "neq", - "not_in", - "gte", - "lte", - "gt", - "lt", - } - EQ: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - IN: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - NEQ: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - NOT_IN: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - GTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - LTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - GT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - LT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation" - ] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.EQ = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation("eq") -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.IN = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation("in") -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.NEQ = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation( - "neq" - ) -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.NOT_IN = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation( - "not_in" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.GTE = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation( - "gte" - ) -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.LTE = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation( - "lte" - ) -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.GT = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation("gt") -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation.LT = ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation("lt") -) diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator.py deleted file mode 100644 index 99db8c2b65..0000000000 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator.py +++ /dev/null @@ -1,146 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - ModelSimple -): - """ - Required with attribute and value for an inline condition; omit when saved_filter_id is set. - - :param value: Must be one of ["LT", "LTE", "GT", "GTE", "MATCHES", "NOT_MATCHES", "ONE_OF", "NOT_ONE_OF", "IS_NULL", "EQUALS", "SEMVER_EQ", "SEMVER_NEQ", "SEMVER_LT", "SEMVER_LTE", "SEMVER_GT", "SEMVER_GTE"]. - :type value: str - """ - - allowed_values = { - "LT", - "LTE", - "GT", - "GTE", - "MATCHES", - "NOT_MATCHES", - "ONE_OF", - "NOT_ONE_OF", - "IS_NULL", - "EQUALS", - "SEMVER_EQ", - "SEMVER_NEQ", - "SEMVER_LT", - "SEMVER_LTE", - "SEMVER_GT", - "SEMVER_GTE", - } - LT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - LTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - GT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - GTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - MATCHES: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - NOT_MATCHES: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - ONE_OF: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - NOT_ONE_OF: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - IS_NULL: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - EQUALS: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_EQ: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_NEQ: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_LT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_LTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_GT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - SEMVER_GTE: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator" - ] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.LT = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "LT" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.LTE = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "LTE" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.GT = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "GT" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.GTE = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "GTE" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.MATCHES = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "MATCHES" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.NOT_MATCHES = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "NOT_MATCHES" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.ONE_OF = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "ONE_OF" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.NOT_ONE_OF = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "NOT_ONE_OF" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.IS_NULL = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "IS_NULL" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.EQUALS = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "EQUALS" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_EQ = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_EQ" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_NEQ = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_NEQ" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_LT = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_LT" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_LTE = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_LTE" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_GT = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_GT" -) -ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator.SEMVER_GTE = ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator( - "SEMVER_GTE" -) diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration.py index 9e0fe22bea..30d3266621 100644 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration.py +++ b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration.py @@ -13,9 +13,7 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ) + from datadog_api_client.v2.model.experiments_warehouse_entry_point import ExperimentsWarehouseEntryPoint class ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfiguration(ModelNormal): @@ -23,14 +21,10 @@ class ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigu @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ) + from datadog_api_client.v2.model.experiments_warehouse_entry_point import ExperimentsWarehouseEntryPoint return { - "entry_point": ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, - ), + "entry_point": (ExperimentsWarehouseEntryPoint,), "experiment_key": (str, none_type), "exposure_sql_model_id": (str,), } @@ -43,9 +37,7 @@ def openapi_types(_): def __init__( self_, - entry_point: Union[ - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, none_type - ], + entry_point: Union[ExperimentsWarehouseEntryPoint, none_type], experiment_key: Union[str, none_type], exposure_sql_model_id: str, **kwargs, @@ -54,7 +46,7 @@ def __init__( Warehouse exposure model and settings used to identify experiment assignments. :param entry_point: Optional Warehouse measure that scopes analyzed subjects. - :type entry_point: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, none_type + :type entry_point: ExperimentsWarehouseEntryPoint, none_type :param experiment_key: Warehouse experiment key. Reads can return null for incomplete configuration; configuration writes require a value. :type experiment_key: str, none_type diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation.py b/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation.py deleted file mode 100644 index 3c616c46a2..0000000000 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation.py +++ /dev/null @@ -1,50 +0,0 @@ -# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. -# This product includes software developed at Datadog (https://www.datadoghq.com/). -# Copyright 2019-Present Datadog, Inc. -from __future__ import annotations - - -from datadog_api_client.model_utils import ( - ModelSimple, - cached_property, -) - -from typing import ClassVar - - -class ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation( - ModelSimple -): - """ - Comparison applied by the warehouse entry-point filter. - - :param value: Must be one of ["IS", "IS_NOT"]. - :type value: str - """ - - allowed_values = { - "IS", - "IS_NOT", - } - IS: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation" - ] - IS_NOT: ClassVar[ - "ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation" - ] - - @cached_property - def openapi_types(_): - return { - "value": (str,), - } - - -ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation.IS = ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation( - "IS" - ) -) -ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation.IS_NOT = ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation( - "IS_NOT" -) diff --git a/src/datadog_api_client/v2/model/experiments_property_filter_input.py b/src/datadog_api_client/v2/model/experiments_property_filter_input.py index 805995cda3..a294bb07b7 100644 --- a/src/datadog_api_client/v2/model/experiments_property_filter_input.py +++ b/src/datadog_api_client/v2/model/experiments_property_filter_input.py @@ -16,8 +16,8 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, + from datadog_api_client.v2.model.experiments_warehouse_entry_point_filter_operation import ( + ExperimentsWarehouseEntryPointFilterOperation, ) @@ -34,15 +34,13 @@ class ExperimentsPropertyFilterInput(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, + from datadog_api_client.v2.model.experiments_warehouse_entry_point_filter_operation import ( + ExperimentsWarehouseEntryPointFilterOperation, ) return { "measure_id": (str, none_type), - "operation": ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, - ), + "operation": (ExperimentsWarehouseEntryPointFilterOperation,), "property_id": (UUID,), "values": ([str],), } @@ -56,7 +54,7 @@ def openapi_types(_): def __init__( self_, - operation: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, + operation: ExperimentsWarehouseEntryPointFilterOperation, property_id: UUID, values: List[str], measure_id: Union[str, none_type, UnsetType] = unset, @@ -69,7 +67,7 @@ def __init__( :type measure_id: str, none_type, optional :param operation: Comparison applied by the warehouse entry-point filter. - :type operation: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation + :type operation: ExperimentsWarehouseEntryPointFilterOperation :param property_id: ID of the property on the aggregation source. :type property_id: UUID diff --git a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items.py b/src/datadog_api_client/v2/model/experiments_targeting_rule.py similarity index 93% rename from src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items.py rename to src/datadog_api_client/v2/model/experiments_targeting_rule.py index 4631e23a2d..e4641926d4 100644 --- a/src/datadog_api_client/v2/model/experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items.py +++ b/src/datadog_api_client/v2/model/experiments_targeting_rule.py @@ -17,7 +17,7 @@ from datadog_api_client.v2.model.experiments_inline_condition import ExperimentsInlineCondition -class ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems(ModelNormal): +class ExperimentsTargetingRule(ModelNormal): @cached_property def openapi_types(_): from datadog_api_client.v2.model.experiments_targeting_rule_condition import ExperimentsTargetingRuleCondition diff --git a/src/datadog_api_client/v2/model/experiments_targeting_rule_condition.py b/src/datadog_api_client/v2/model/experiments_targeting_rule_condition.py index 0005742ae6..1a63f7c013 100644 --- a/src/datadog_api_client/v2/model/experiments_targeting_rule_condition.py +++ b/src/datadog_api_client/v2/model/experiments_targeting_rule_condition.py @@ -22,7 +22,7 @@ def __init__(self, **kwargs): :type attribute: str :param operator: Required with attribute and value for an inline condition; omit when saved_filter_id is set. - :type operator: ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator + :type operator: ExperimentsTargetingRuleOperator :param value: Values used by the operator. Every operator requires at least one value. :type value: [str] diff --git a/src/datadog_api_client/v2/model/experiments_targeting_rule_operator.py b/src/datadog_api_client/v2/model/experiments_targeting_rule_operator.py new file mode 100644 index 0000000000..f0ee0e957b --- /dev/null +++ b/src/datadog_api_client/v2/model/experiments_targeting_rule_operator.py @@ -0,0 +1,80 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ExperimentsTargetingRuleOperator(ModelSimple): + """ + Required with attribute and value for an inline condition; omit when saved_filter_id is set. + + :param value: Must be one of ["LT", "LTE", "GT", "GTE", "MATCHES", "NOT_MATCHES", "ONE_OF", "NOT_ONE_OF", "IS_NULL", "EQUALS", "SEMVER_EQ", "SEMVER_NEQ", "SEMVER_LT", "SEMVER_LTE", "SEMVER_GT", "SEMVER_GTE"]. + :type value: str + """ + + allowed_values = { + "LT", + "LTE", + "GT", + "GTE", + "MATCHES", + "NOT_MATCHES", + "ONE_OF", + "NOT_ONE_OF", + "IS_NULL", + "EQUALS", + "SEMVER_EQ", + "SEMVER_NEQ", + "SEMVER_LT", + "SEMVER_LTE", + "SEMVER_GT", + "SEMVER_GTE", + } + LT: ClassVar["ExperimentsTargetingRuleOperator"] + LTE: ClassVar["ExperimentsTargetingRuleOperator"] + GT: ClassVar["ExperimentsTargetingRuleOperator"] + GTE: ClassVar["ExperimentsTargetingRuleOperator"] + MATCHES: ClassVar["ExperimentsTargetingRuleOperator"] + NOT_MATCHES: ClassVar["ExperimentsTargetingRuleOperator"] + ONE_OF: ClassVar["ExperimentsTargetingRuleOperator"] + NOT_ONE_OF: ClassVar["ExperimentsTargetingRuleOperator"] + IS_NULL: ClassVar["ExperimentsTargetingRuleOperator"] + EQUALS: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_EQ: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_NEQ: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_LT: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_LTE: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_GT: ClassVar["ExperimentsTargetingRuleOperator"] + SEMVER_GTE: ClassVar["ExperimentsTargetingRuleOperator"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ExperimentsTargetingRuleOperator.LT = ExperimentsTargetingRuleOperator("LT") +ExperimentsTargetingRuleOperator.LTE = ExperimentsTargetingRuleOperator("LTE") +ExperimentsTargetingRuleOperator.GT = ExperimentsTargetingRuleOperator("GT") +ExperimentsTargetingRuleOperator.GTE = ExperimentsTargetingRuleOperator("GTE") +ExperimentsTargetingRuleOperator.MATCHES = ExperimentsTargetingRuleOperator("MATCHES") +ExperimentsTargetingRuleOperator.NOT_MATCHES = ExperimentsTargetingRuleOperator("NOT_MATCHES") +ExperimentsTargetingRuleOperator.ONE_OF = ExperimentsTargetingRuleOperator("ONE_OF") +ExperimentsTargetingRuleOperator.NOT_ONE_OF = ExperimentsTargetingRuleOperator("NOT_ONE_OF") +ExperimentsTargetingRuleOperator.IS_NULL = ExperimentsTargetingRuleOperator("IS_NULL") +ExperimentsTargetingRuleOperator.EQUALS = ExperimentsTargetingRuleOperator("EQUALS") +ExperimentsTargetingRuleOperator.SEMVER_EQ = ExperimentsTargetingRuleOperator("SEMVER_EQ") +ExperimentsTargetingRuleOperator.SEMVER_NEQ = ExperimentsTargetingRuleOperator("SEMVER_NEQ") +ExperimentsTargetingRuleOperator.SEMVER_LT = ExperimentsTargetingRuleOperator("SEMVER_LT") +ExperimentsTargetingRuleOperator.SEMVER_LTE = ExperimentsTargetingRuleOperator("SEMVER_LTE") +ExperimentsTargetingRuleOperator.SEMVER_GT = ExperimentsTargetingRuleOperator("SEMVER_GT") +ExperimentsTargetingRuleOperator.SEMVER_GTE = ExperimentsTargetingRuleOperator("SEMVER_GTE") diff --git a/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items.py b/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items.py index 3c954564db..dd476fd813 100644 --- a/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items.py +++ b/src/datadog_api_client/v2/model/experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items.py @@ -15,9 +15,7 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval import ( - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, - ) + from datadog_api_client.v2.model.experiments_confidence_interval import ExperimentsConfidenceInterval from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_lift_type import ( ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsLiftType, ) @@ -32,9 +30,7 @@ class ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItems(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval import ( - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, - ) + from datadog_api_client.v2.model.experiments_confidence_interval import ExperimentsConfidenceInterval from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_lift_type import ( ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsLiftType, ) @@ -46,9 +42,7 @@ def openapi_types(_): ) return { - "confidence_interval": ( - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, - ), + "confidence_interval": (ExperimentsConfidenceInterval,), "confidence_level": (float,), "evsi": (float,), "expectation_above_zero": (float,), @@ -99,9 +93,7 @@ def openapi_types(_): def __init__( self_, - confidence_interval: Union[ - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, UnsetType - ] = unset, + confidence_interval: Union[ExperimentsConfidenceInterval, UnsetType] = unset, confidence_level: Union[float, UnsetType] = unset, evsi: Union[float, UnsetType] = unset, expectation_above_zero: Union[float, UnsetType] = unset, @@ -132,7 +124,7 @@ def __init__( One statistical comparison for a metric and variant. :param confidence_interval: Lower and upper bounds of the reported statistical interval. - :type confidence_interval: ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, optional + :type confidence_interval: ExperimentsConfidenceInterval, optional :param confidence_level: Configured nominal confidence level. Interval bounds can use an adjusted level for multiple testing or hybrid methods. :type confidence_level: float, optional diff --git a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point.py b/src/datadog_api_client/v2/model/experiments_warehouse_entry_point.py similarity index 92% rename from src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point.py rename to src/datadog_api_client/v2/model/experiments_warehouse_entry_point.py index 235da25ab3..27fdafa15c 100644 --- a/src/datadog_api_client/v2/model/experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_entry_point.py @@ -15,7 +15,7 @@ from datadog_api_client.v2.model.experiments_warehouse_exposure_filter import ExperimentsWarehouseExposureFilter -class ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint(ModelNormal): +class ExperimentsWarehouseEntryPoint(ModelNormal): _nullable = True @cached_property diff --git a/src/datadog_api_client/v2/model/experiments_warehouse_entry_point_filter_operation.py b/src/datadog_api_client/v2/model/experiments_warehouse_entry_point_filter_operation.py new file mode 100644 index 0000000000..05056efe54 --- /dev/null +++ b/src/datadog_api_client/v2/model/experiments_warehouse_entry_point_filter_operation.py @@ -0,0 +1,38 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ExperimentsWarehouseEntryPointFilterOperation(ModelSimple): + """ + Comparison applied by the warehouse entry-point filter. + + :param value: Must be one of ["IS", "IS_NOT"]. + :type value: str + """ + + allowed_values = { + "IS", + "IS_NOT", + } + IS: ClassVar["ExperimentsWarehouseEntryPointFilterOperation"] + IS_NOT: ClassVar["ExperimentsWarehouseEntryPointFilterOperation"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ExperimentsWarehouseEntryPointFilterOperation.IS = ExperimentsWarehouseEntryPointFilterOperation("IS") +ExperimentsWarehouseEntryPointFilterOperation.IS_NOT = ExperimentsWarehouseEntryPointFilterOperation("IS_NOT") diff --git a/src/datadog_api_client/v2/model/experiments_warehouse_exposure_filter.py b/src/datadog_api_client/v2/model/experiments_warehouse_exposure_filter.py index d9aa9354c9..1a6ed8c5a1 100644 --- a/src/datadog_api_client/v2/model/experiments_warehouse_exposure_filter.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_exposure_filter.py @@ -12,22 +12,20 @@ if TYPE_CHECKING: - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, + from datadog_api_client.v2.model.experiments_warehouse_entry_point_filter_operation import ( + ExperimentsWarehouseEntryPointFilterOperation, ) class ExperimentsWarehouseExposureFilter(ModelNormal): @cached_property def openapi_types(_): - from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, + from datadog_api_client.v2.model.experiments_warehouse_entry_point_filter_operation import ( + ExperimentsWarehouseEntryPointFilterOperation, ) return { - "operation": ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, - ), + "operation": (ExperimentsWarehouseEntryPointFilterOperation,), "property_id": (str,), "values": ([str],), } @@ -39,17 +37,13 @@ def openapi_types(_): } def __init__( - self_, - operation: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, - property_id: str, - values: List[str], - **kwargs, + self_, operation: ExperimentsWarehouseEntryPointFilterOperation, property_id: str, values: List[str], **kwargs ): """ A comparison that selects warehouse exposure data by a property. :param operation: Comparison applied by the warehouse entry-point filter. - :type operation: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation + :type operation: ExperimentsWarehouseEntryPointFilterOperation :param property_id: Warehouse property UUID. :type property_id: str diff --git a/src/datadog_api_client/v2/model/experiments_warehouse_filter_input.py b/src/datadog_api_client/v2/model/experiments_warehouse_filter_input.py index c00d59558e..d220f5660a 100644 --- a/src/datadog_api_client/v2/model/experiments_warehouse_filter_input.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_filter_input.py @@ -19,7 +19,7 @@ def __init__(self, **kwargs): :type measure_id: str, none_type, optional :param operation: Comparison applied by the warehouse entry-point filter. - :type operation: ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation + :type operation: ExperimentsWarehouseEntryPointFilterOperation :param property_id: ID of the property on the aggregation source. :type property_id: UUID diff --git a/src/datadog_api_client/v2/model/experiments_warehouse_metric_aggregation_input.py b/src/datadog_api_client/v2/model/experiments_warehouse_metric_aggregation_input.py index 92e97227f0..1beef9769d 100644 --- a/src/datadog_api_client/v2/model/experiments_warehouse_metric_aggregation_input.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_metric_aggregation_input.py @@ -19,9 +19,7 @@ ExperimentsNullableDatadogMetricMeasureInput, ) from datadog_api_client.v2.model.experiments_warehouse_filter_input import ExperimentsWarehouseFilterInput - from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure import ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ) + from datadog_api_client.v2.model.experiments_warehouse_metric_measure import ExperimentsWarehouseMetricMeasure class ExperimentsWarehouseMetricAggregationInput(ModelNormal): @@ -37,9 +35,7 @@ def openapi_types(_): ExperimentsNullableDatadogMetricMeasureInput, ) from datadog_api_client.v2.model.experiments_warehouse_filter_input import ExperimentsWarehouseFilterInput - from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure import ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ) + from datadog_api_client.v2.model.experiments_warehouse_metric_measure import ExperimentsWarehouseMetricMeasure return { "aging_threshold_days": (int,), @@ -55,9 +51,7 @@ def openapi_types(_): "timeframe_end_value": (float,), "timeframe_start_value": (float,), "timeframe_unit": (str,), - "warehouse_metric_measure": ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ), + "warehouse_metric_measure": (ExperimentsWarehouseMetricMeasure,), "winsor_lower_fixed_value": (float,), "winsor_lower_percentile": (float,), "winsor_upper_fixed_value": (float,), @@ -90,7 +84,7 @@ def openapi_types(_): def __init__( self_, operation: str, - warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, + warehouse_metric_measure: ExperimentsWarehouseMetricMeasure, aging_threshold_days: Union[int, UnsetType] = unset, datadog_metric_measure: Union[ExperimentsNullableDatadogMetricMeasureInput, none_type, UnsetType] = unset, enable_aging_subject_filter: Union[bool, UnsetType] = unset, @@ -155,7 +149,7 @@ def __init__( :type timeframe_unit: str, optional :param warehouse_metric_measure: Reference to a measure defined in a warehouse metric SQL model. - :type warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + :type warehouse_metric_measure: ExperimentsWarehouseMetricMeasure :param winsor_lower_fixed_value: Fixed lower bound used to cap extreme measure values. :type winsor_lower_fixed_value: float, optional diff --git a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure.py b/src/datadog_api_client/v2/model/experiments_warehouse_metric_measure.py similarity index 87% rename from src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure.py rename to src/datadog_api_client/v2/model/experiments_warehouse_metric_measure.py index db9681bc54..aa68494aa8 100644 --- a/src/datadog_api_client/v2/model/experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_metric_measure.py @@ -11,7 +11,7 @@ ) -class ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure(ModelNormal): +class ExperimentsWarehouseMetricMeasure(ModelNormal): @cached_property def openapi_types(_): return { diff --git a/src/datadog_api_client/v2/model/experiments_warehouse_percentile_aggregation_input.py b/src/datadog_api_client/v2/model/experiments_warehouse_percentile_aggregation_input.py index 2cc30df413..53de0df49a 100644 --- a/src/datadog_api_client/v2/model/experiments_warehouse_percentile_aggregation_input.py +++ b/src/datadog_api_client/v2/model/experiments_warehouse_percentile_aggregation_input.py @@ -19,9 +19,7 @@ ExperimentsNullableDatadogPercentileMeasureInput, ) from datadog_api_client.v2.model.experiments_property_filter_input import ExperimentsPropertyFilterInput - from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure import ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ) + from datadog_api_client.v2.model.experiments_warehouse_metric_measure import ExperimentsWarehouseMetricMeasure class ExperimentsWarehousePercentileAggregationInput(ModelNormal): @@ -38,17 +36,13 @@ def openapi_types(_): ExperimentsNullableDatadogPercentileMeasureInput, ) from datadog_api_client.v2.model.experiments_property_filter_input import ExperimentsPropertyFilterInput - from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure import ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ) + from datadog_api_client.v2.model.experiments_warehouse_metric_measure import ExperimentsWarehouseMetricMeasure return { "datadog_metric_measure": (ExperimentsNullableDatadogPercentileMeasureInput,), "percentile": (float,), "property_filters": ([[ExperimentsPropertyFilterInput]], none_type), - "warehouse_metric_measure": ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, - ), + "warehouse_metric_measure": (ExperimentsWarehouseMetricMeasure,), } attribute_map = { @@ -61,7 +55,7 @@ def openapi_types(_): def __init__( self_, percentile: float, - warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, + warehouse_metric_measure: ExperimentsWarehouseMetricMeasure, datadog_metric_measure: Union[ExperimentsNullableDatadogPercentileMeasureInput, none_type, UnsetType] = unset, property_filters: Union[List[List[ExperimentsPropertyFilterInput]], none_type, UnsetType] = unset, **kwargs, @@ -79,7 +73,7 @@ def __init__( :type property_filters: [[ExperimentsPropertyFilterInput]], none_type, optional :param warehouse_metric_measure: Reference to a measure defined in a warehouse metric SQL model. - :type warehouse_metric_measure: ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure + :type warehouse_metric_measure: ExperimentsWarehouseMetricMeasure """ if datadog_metric_measure is not unset: kwargs["datadog_metric_measure"] = datadog_metric_measure diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index ada3c70360..a288c81553 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -3361,6 +3361,7 @@ from datadog_api_client.v2.model.experiments_conclude_experiment_v2_request_data_type import ( ExperimentsConcludeExperimentV2RequestDataType, ) +from datadog_api_client.v2.model.experiments_confidence_interval import ExperimentsConfidenceInterval from datadog_api_client.v2.model.experiments_create_experiment_metric_group_v2_request import ( ExperimentsCreateExperimentMetricGroupV2Request, ) @@ -3383,9 +3384,6 @@ from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration import ( ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfiguration, ) -from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_datadog_flag_configuration_targeting_rules_items import ( - ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems, -) from datadog_api_client.v2.model.experiments_create_experiment_v2_request_data_attributes_decision_metrics_items import ( ExperimentsCreateExperimentV2RequestDataAttributesDecisionMetricsItems, ) @@ -3466,9 +3464,6 @@ from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation import ( ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregation, ) -from datadog_api_client.v2.model.experiments_create_metric_v2_request_data_attributes_percentile_aggregation_warehouse_metric_measure import ( - ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure, -) from datadog_api_client.v2.model.experiments_create_subject_type_v2_request import ExperimentsCreateSubjectTypeV2Request from datadog_api_client.v2.model.experiments_create_subject_type_v2_request_data import ( ExperimentsCreateSubjectTypeV2RequestData, @@ -3477,6 +3472,12 @@ ExperimentsCreateSubjectTypeV2RequestDataAttributes, ) from datadog_api_client.v2.model.experiments_datadog_entry_point_filter import ExperimentsDatadogEntryPointFilter +from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_column_type import ( + ExperimentsDatadogEntryPointFilterColumnType, +) +from datadog_api_client.v2.model.experiments_datadog_entry_point_filter_operation import ( + ExperimentsDatadogEntryPointFilterOperation, +) from datadog_api_client.v2.model.experiments_datadog_metric_aggregation_input import ( ExperimentsDatadogMetricAggregationInput, ) @@ -3674,15 +3675,6 @@ from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point import ( ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint, ) -from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_column_type import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType, -) -from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_entry_point_filters_items_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation, -) -from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_datadog_flag_configuration_targeting_rules_items_conditions_items_operator import ( - ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator, -) from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_split_by_properties_items_column_type import ( ExperimentsPatchExperimentV2ResponseDataAttributesSplitByPropertiesItemsColumnType, ) @@ -3695,12 +3687,6 @@ from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration import ( ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfiguration, ) -from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint, -) -from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_attributes_warehouse_exposure_configuration_entry_point_filters_items_operation import ( - ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation, -) from datadog_api_client.v2.model.experiments_patch_experiment_v2_response_data_type import ( ExperimentsPatchExperimentV2ResponseDataType, ) @@ -3816,7 +3802,9 @@ ExperimentsSubjectTypeV2DTODataAttributes, ) from datadog_api_client.v2.model.experiments_subject_type_v2_dto_data_type import ExperimentsSubjectTypeV2DTODataType +from datadog_api_client.v2.model.experiments_targeting_rule import ExperimentsTargetingRule from datadog_api_client.v2.model.experiments_targeting_rule_condition import ExperimentsTargetingRuleCondition +from datadog_api_client.v2.model.experiments_targeting_rule_operator import ExperimentsTargetingRuleOperator from datadog_api_client.v2.model.experiments_traffic_summary_v2_dto import ExperimentsTrafficSummaryV2DTO from datadog_api_client.v2.model.experiments_traffic_summary_v2_dto_data import ExperimentsTrafficSummaryV2DTOData from datadog_api_client.v2.model.experiments_traffic_summary_v2_dto_data_attributes import ( @@ -3868,9 +3856,6 @@ from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items import ( ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItems, ) -from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_confidence_interval import ( - ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval, -) from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_attributes_metrics_items_analyses_items_lift_type import ( ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsLiftType, ) @@ -3886,11 +3871,16 @@ from datadog_api_client.v2.model.experiments_variant_results_v2_dto_data_type import ( ExperimentsVariantResultsV2DTODataType, ) +from datadog_api_client.v2.model.experiments_warehouse_entry_point import ExperimentsWarehouseEntryPoint +from datadog_api_client.v2.model.experiments_warehouse_entry_point_filter_operation import ( + ExperimentsWarehouseEntryPointFilterOperation, +) from datadog_api_client.v2.model.experiments_warehouse_exposure_filter import ExperimentsWarehouseExposureFilter from datadog_api_client.v2.model.experiments_warehouse_filter_input import ExperimentsWarehouseFilterInput from datadog_api_client.v2.model.experiments_warehouse_metric_aggregation_input import ( ExperimentsWarehouseMetricAggregationInput, ) +from datadog_api_client.v2.model.experiments_warehouse_metric_measure import ExperimentsWarehouseMetricMeasure from datadog_api_client.v2.model.experiments_warehouse_percentile_aggregation_input import ( ExperimentsWarehousePercentileAggregationInput, ) @@ -15102,6 +15092,7 @@ "ExperimentsConcludeExperimentV2RequestData", "ExperimentsConcludeExperimentV2RequestDataAttributes", "ExperimentsConcludeExperimentV2RequestDataType", + "ExperimentsConfidenceInterval", "ExperimentsCreateExperimentMetricGroupV2Request", "ExperimentsCreateExperimentMetricGroupV2RequestData", "ExperimentsCreateExperimentMetricGroupV2RequestDataAttributes", @@ -15110,7 +15101,6 @@ "ExperimentsCreateExperimentV2RequestData", "ExperimentsCreateExperimentV2RequestDataAttributes", "ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfiguration", - "ExperimentsCreateExperimentV2RequestDataAttributesDatadogFlagConfigurationTargetingRulesItems", "ExperimentsCreateExperimentV2RequestDataAttributesDecisionMetricsItems", "ExperimentsCreateExperimentV2RequestDataAttributesRelatedLinksItems", "ExperimentsCreateExperimentV2RequestDataAttributesSplitByPropertiesItems", @@ -15139,11 +15129,12 @@ "ExperimentsCreateMetricV2RequestDataAttributesDesiredChange", "ExperimentsCreateMetricV2RequestDataAttributesNumeratorAggregation", "ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregation", - "ExperimentsCreateMetricV2RequestDataAttributesPercentileAggregationWarehouseMetricMeasure", "ExperimentsCreateSubjectTypeV2Request", "ExperimentsCreateSubjectTypeV2RequestData", "ExperimentsCreateSubjectTypeV2RequestDataAttributes", "ExperimentsDatadogEntryPointFilter", + "ExperimentsDatadogEntryPointFilterColumnType", + "ExperimentsDatadogEntryPointFilterOperation", "ExperimentsDatadogMetricAggregationInput", "ExperimentsDatadogMetricMeasureInput", "ExperimentsDatadogPercentileAggregationInput", @@ -15229,15 +15220,10 @@ "ExperimentsPatchExperimentV2ResponseDataAttributesConclusion", "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfiguration", "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPoint", - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsColumnType", - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationEntryPointFiltersItemsItemsOperation", - "ExperimentsPatchExperimentV2ResponseDataAttributesDatadogFlagConfigurationTargetingRulesItemsConditionsItemsOperator", "ExperimentsPatchExperimentV2ResponseDataAttributesSplitByPropertiesItemsColumnType", "ExperimentsPatchExperimentV2ResponseDataAttributesStructuredMetadataItemsFieldType", "ExperimentsPatchExperimentV2ResponseDataAttributesTrafficExposure", "ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfiguration", - "ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPoint", - "ExperimentsPatchExperimentV2ResponseDataAttributesWarehouseExposureConfigurationEntryPointFiltersItemsOperation", "ExperimentsPatchExperimentV2ResponseDataType", "ExperimentsPatchMetricCollectionV2Request", "ExperimentsPatchMetricCollectionV2RequestData", @@ -15285,7 +15271,9 @@ "ExperimentsSubjectTypeV2DTOData", "ExperimentsSubjectTypeV2DTODataAttributes", "ExperimentsSubjectTypeV2DTODataType", + "ExperimentsTargetingRule", "ExperimentsTargetingRuleCondition", + "ExperimentsTargetingRuleOperator", "ExperimentsTrafficSummaryV2DTO", "ExperimentsTrafficSummaryV2DTOData", "ExperimentsTrafficSummaryV2DTODataAttributes", @@ -15307,15 +15295,17 @@ "ExperimentsVariantResultsV2DTODataAttributes", "ExperimentsVariantResultsV2DTODataAttributesMetricsItems", "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItems", - "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval", "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsLiftType", "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsMethod", "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsUnreliableReason", "ExperimentsVariantResultsV2DTODataAttributesMetricsItemsCoverageSummary", "ExperimentsVariantResultsV2DTODataType", + "ExperimentsWarehouseEntryPoint", + "ExperimentsWarehouseEntryPointFilterOperation", "ExperimentsWarehouseExposureFilter", "ExperimentsWarehouseFilterInput", "ExperimentsWarehouseMetricAggregationInput", + "ExperimentsWarehouseMetricMeasure", "ExperimentsWarehousePercentileAggregationInput", "ExposureRolloutStepRequest", "ExposureScheduleRequest", diff --git a/tests/generated-test/test-runner-data/manifest.json b/tests/generated-test/test-runner-data/manifest.json index b12ec17c35..656ebb7526 100644 --- a/tests/generated-test/test-runner-data/manifest.json +++ b/tests/generated-test/test-runner-data/manifest.json @@ -4970,6 +4970,41 @@ "scenario": "Get all datasets returns \"OK\" response", "version": "v2" }, + { + "feature": "Delivery Performance", + "feature_file": "../../v2/features/delivery_performance.feature", + "file": "v2/delivery-performance/get-a-list-of-deployment-events-returns-bad-request-response.json", + "scenario": "Get a list of deployment events returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Delivery Performance", + "feature_file": "../../v2/features/delivery_performance.feature", + "file": "v2/delivery-performance/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json", + "scenario": "Get a list of deployment events returns deployments with date-time timestamps", + "version": "v2" + }, + { + "feature": "Delivery Performance", + "feature_file": "../../v2/features/delivery_performance.feature", + "file": "v2/delivery-performance/get-a-list-of-failure-events-returns-bad-request-response.json", + "scenario": "Get a list of failure events returns \"Bad Request\" response", + "version": "v2" + }, + { + "feature": "Delivery Performance", + "feature_file": "../../v2/features/delivery_performance.feature", + "file": "v2/delivery-performance/send-a-deployment-event-returns-ok-response.json", + "scenario": "Send a deployment event returns \"OK\" response", + "version": "v2" + }, + { + "feature": "Delivery Performance", + "feature_file": "../../v2/features/delivery_performance.feature", + "file": "v2/delivery-performance/send-a-failure-event-returns-ok-response.json", + "scenario": "Send a failure event returns \"OK\" response", + "version": "v2" + }, { "feature": "Deployment Gates", "feature_file": "../../v2/features/deployment_gates.feature", @@ -5208,41 +5243,6 @@ "scenario": "Sets Domain Allowlist returns \"OK\" response", "version": "v2" }, - { - "feature": "DORA Metrics", - "feature_file": "../../v2/features/dora_metrics.feature", - "file": "v2/dora-metrics/get-a-list-of-deployment-events-returns-bad-request-response.json", - "scenario": "Get a list of deployment events returns \"Bad Request\" response", - "version": "v2" - }, - { - "feature": "DORA Metrics", - "feature_file": "../../v2/features/dora_metrics.feature", - "file": "v2/dora-metrics/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json", - "scenario": "Get a list of deployment events returns deployments with date-time timestamps", - "version": "v2" - }, - { - "feature": "DORA Metrics", - "feature_file": "../../v2/features/dora_metrics.feature", - "file": "v2/dora-metrics/get-a-list-of-failure-events-returns-bad-request-response.json", - "scenario": "Get a list of failure events returns \"Bad Request\" response", - "version": "v2" - }, - { - "feature": "DORA Metrics", - "feature_file": "../../v2/features/dora_metrics.feature", - "file": "v2/dora-metrics/send-a-deployment-event-returns-ok-response.json", - "scenario": "Send a deployment event returns \"OK\" response", - "version": "v2" - }, - { - "feature": "DORA Metrics", - "feature_file": "../../v2/features/dora_metrics.feature", - "file": "v2/dora-metrics/send-a-failure-event-returns-ok-response.json", - "scenario": "Send a failure event returns \"OK\" response", - "version": "v2" - }, { "feature": "Downtimes", "feature_file": "../../v2/features/downtimes.feature", diff --git a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-bad-request-response.json b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-bad-request-response.json similarity index 79% rename from tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-bad-request-response.json rename to tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-bad-request-response.json index 1b2e4eeb03..3258d98fb4 100644 --- a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-bad-request-response.json +++ b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-bad-request-response.json @@ -1,8 +1,8 @@ { - "api": "DORAMetrics", + "api": "DeliveryPerformance", "expected_status": 400, - "feature": "DORA Metrics", - "id": "v2/DORA Metrics/Get a list of deployment events returns \"Bad Request\" response", + "feature": "Delivery Performance", + "id": "v2/Delivery Performance/Get a list of deployment events returns \"Bad Request\" response", "operation_id": "ListDORADeployments", "request": { "body": { diff --git a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json similarity index 80% rename from tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json rename to tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json index 62d6ab5a24..e49dfd507c 100644 --- a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json +++ b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-deployment-events-returns-deployments-with-date-time-timestamps.json @@ -1,8 +1,8 @@ { - "api": "DORAMetrics", + "api": "DeliveryPerformance", "expected_status": 200, - "feature": "DORA Metrics", - "id": "v2/DORA Metrics/Get a list of deployment events returns deployments with date-time timestamps", + "feature": "Delivery Performance", + "id": "v2/Delivery Performance/Get a list of deployment events returns deployments with date-time timestamps", "operation_id": "ListDORADeployments", "request": { "body": { diff --git a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-failure-events-returns-bad-request-response.json b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-failure-events-returns-bad-request-response.json similarity index 79% rename from tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-failure-events-returns-bad-request-response.json rename to tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-failure-events-returns-bad-request-response.json index f58b5af944..6d82631af5 100644 --- a/tests/generated-test/test-runner-data/v2/dora-metrics/get-a-list-of-failure-events-returns-bad-request-response.json +++ b/tests/generated-test/test-runner-data/v2/delivery-performance/get-a-list-of-failure-events-returns-bad-request-response.json @@ -1,8 +1,8 @@ { - "api": "DORAMetrics", + "api": "DeliveryPerformance", "expected_status": 400, - "feature": "DORA Metrics", - "id": "v2/DORA Metrics/Get a list of failure events returns \"Bad Request\" response", + "feature": "Delivery Performance", + "id": "v2/Delivery Performance/Get a list of failure events returns \"Bad Request\" response", "operation_id": "ListDORAFailures", "request": { "body": { diff --git a/tests/generated-test/test-runner-data/v2/dora-metrics/send-a-deployment-event-returns-ok-response.json b/tests/generated-test/test-runner-data/v2/delivery-performance/send-a-deployment-event-returns-ok-response.json similarity index 86% rename from tests/generated-test/test-runner-data/v2/dora-metrics/send-a-deployment-event-returns-ok-response.json rename to tests/generated-test/test-runner-data/v2/delivery-performance/send-a-deployment-event-returns-ok-response.json index 7df3bd0230..0afe78fe66 100644 --- a/tests/generated-test/test-runner-data/v2/dora-metrics/send-a-deployment-event-returns-ok-response.json +++ b/tests/generated-test/test-runner-data/v2/delivery-performance/send-a-deployment-event-returns-ok-response.json @@ -1,8 +1,8 @@ { - "api": "DORAMetrics", + "api": "DeliveryPerformance", "expected_status": 200, - "feature": "DORA Metrics", - "id": "v2/DORA Metrics/Send a deployment event returns \"OK\" response", + "feature": "Delivery Performance", + "id": "v2/Delivery Performance/Send a deployment event returns \"OK\" response", "operation_id": "CreateDORADeployment", "request": { "body": { diff --git a/tests/generated-test/test-runner-data/v2/dora-metrics/send-a-failure-event-returns-ok-response.json b/tests/generated-test/test-runner-data/v2/delivery-performance/send-a-failure-event-returns-ok-response.json similarity index 88% rename from tests/generated-test/test-runner-data/v2/dora-metrics/send-a-failure-event-returns-ok-response.json rename to tests/generated-test/test-runner-data/v2/delivery-performance/send-a-failure-event-returns-ok-response.json index afc6d20a9b..62abb2a61a 100644 --- a/tests/generated-test/test-runner-data/v2/dora-metrics/send-a-failure-event-returns-ok-response.json +++ b/tests/generated-test/test-runner-data/v2/delivery-performance/send-a-failure-event-returns-ok-response.json @@ -1,8 +1,8 @@ { - "api": "DORAMetrics", + "api": "DeliveryPerformance", "expected_status": 200, - "feature": "DORA Metrics", - "id": "v2/DORA Metrics/Send a failure event returns \"OK\" response", + "feature": "Delivery Performance", + "id": "v2/Delivery Performance/Send a failure event returns \"OK\" response", "operation_id": "CreateDORAIncident", "request": { "body": { diff --git a/tests/generated-test/test-server-data/manifest.json b/tests/generated-test/test-server-data/manifest.json index 6dc1a1f0bc..b57e8c66bc 100644 --- a/tests/generated-test/test-server-data/manifest.json +++ b/tests/generated-test/test-server-data/manifest.json @@ -245,11 +245,6 @@ "file": "v2/containers.json", "version": "v2" }, - { - "feature": "DORA Metrics", - "file": "v2/dora-metrics.json", - "version": "v2" - }, { "feature": "Dashboard Lists", "file": "v2/dashboard-lists.json", @@ -270,6 +265,11 @@ "file": "v2/datasets.json", "version": "v2" }, + { + "feature": "Delivery Performance", + "file": "v2/delivery-performance.json", + "version": "v2" + }, { "feature": "Deployment Gates", "file": "v2/deployment-gates.json", diff --git a/tests/generated-test/test-server-data/v2/dora-metrics.json b/tests/generated-test/test-server-data/v2/delivery-performance.json similarity index 97% rename from tests/generated-test/test-server-data/v2/dora-metrics.json rename to tests/generated-test/test-server-data/v2/delivery-performance.json index 40dfa9c579..160cdf8dfc 100644 --- a/tests/generated-test/test-server-data/v2/dora-metrics.json +++ b/tests/generated-test/test-server-data/v2/delivery-performance.json @@ -1,8 +1,8 @@ { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "recordings": [ { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2025-05-22T10:44:58.608Z", "interactions": [ { @@ -39,7 +39,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2025-05-22T10:44:58.897Z", "interactions": [ { @@ -79,7 +79,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2023-08-31T14:26:14.000Z", "interactions": [ { @@ -118,7 +118,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2025-05-22T10:44:59.446Z", "interactions": [ { @@ -155,7 +155,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2025-05-22T10:44:59.522Z", "interactions": [ { @@ -195,7 +195,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2026-01-29T09:25:52.032Z", "interactions": [ { @@ -275,7 +275,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2026-01-29T09:25:52.758Z", "interactions": [ { @@ -355,7 +355,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2023-11-16T16:58:35.007Z", "interactions": [ { @@ -399,7 +399,7 @@ "version": "v2" }, { - "feature": "DORA Metrics", + "feature": "Delivery Performance", "frozen_at": "2024-02-13T16:54:07.556Z", "interactions": [ { diff --git a/tests/v2/features/dora_metrics.feature b/tests/v2/features/delivery_performance.feature similarity index 97% rename from tests/v2/features/dora_metrics.feature rename to tests/v2/features/delivery_performance.feature index 07de747ff3..fb4c677f40 100644 --- a/tests/v2/features/dora_metrics.feature +++ b/tests/v2/features/delivery_performance.feature @@ -1,13 +1,14 @@ -@endpoint(dora-metrics) @endpoint(dora-metrics-v2) -Feature: DORA Metrics - Search, send, or delete events for DORA Metrics to measure and improve - your software delivery performance. See the [DORA Metrics - page](https://docs.datadoghq.com/dora_metrics/) for more information. - **Note**: DORA Metrics are not available in the US1-FED site. +@endpoint(delivery-performance) @endpoint(delivery-performance-v2) +Feature: Delivery Performance + Search, send, or delete events for Delivery Performance (formerly DORA + Metrics) to measure and improve your software delivery performance. See + the [Delivery Performance page](https://docs.datadoghq.com/dora_metrics/) + for more information. **Note**: Delivery Performance is not available in + the US1-FED site. Background: Given a valid "apiKeyAuth" key in the system - And an instance of "DORAMetrics" API + And an instance of "DeliveryPerformance" API @skip @team:ddoghq/ci-app-backend Scenario: Delete a deployment event returns "Accepted" response diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 836313e444..905277158f 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -369,7 +369,7 @@ } }, "CreateAIImpactUserActivity": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } @@ -2659,67 +2659,67 @@ } }, "CreateDORADeployment": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "DeleteDORADeployment": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "PatchDORADeploymentByVersion": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "ListDORADeployments": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "safe" } }, "GetDORADeployment": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "safe" } }, "PatchDORADeployment": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "CreateDORAFailure": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "DeleteDORAFailure": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" } }, "ListDORAFailures": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "safe" } }, "GetDORAFailure": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "safe" } }, "CreateDORAIncident": { - "tag": "DORA Metrics", + "tag": "Delivery Performance", "undo": { "type": "idempotent" }