From b5702c7577baf8b94a20d1b71dbfcca9fcf89b48 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 14 Oct 2026 08:47:07 +0000 Subject: [PATCH] Regenerate client from commit 6757f28 of spec repo --- .generator/schemas/v2/openapi.yaml | 328 +++++++++--------- ....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 +- ...vability_pipeline_config_processor_item.py | 3 + ..._pipeline_generate_metrics_v2_processor.py | 8 + src/datadog_api_client/v2/models/__init__.py | 54 ++- 33 files changed, 520 insertions(+), 758 deletions(-) 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%) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 01cbd27c0e..4fe313af2a 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 @@ -85572,6 +85572,12 @@ components: description: Indicates whether the processor is enabled. example: true type: boolean + enabled_metric_aggregation: + default: true + description: >- + [Recommended] Indicates whether generated metrics are automatically aggregated and enriched with the `worker_uuid` tag before being sent to the metric destination. + example: true + type: boolean id: description: The unique identifier for this component. Used to reference this component in other parts of the pipeline. example: generate-metrics-processor 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/model/observability_pipeline_config_processor_item.py b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py index e76d20f0a4..d4cb85652e 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_config_processor_item.py @@ -66,6 +66,9 @@ def __init__(self, **kwargs): :param metrics: Configuration for generating individual metrics. :type metrics: [ObservabilityPipelineGeneratedMetric], optional + :param enabled_metric_aggregation: [Recommended] Indicates whether generated metrics are automatically aggregated and enriched with the `worker_uuid` tag before being sent to the metric destination. + :type enabled_metric_aggregation: bool, optional + :param keep_unmatched: Whether to keep an event that does not match any of the mapping filters. :type keep_unmatched: bool, optional diff --git a/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_v2_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_v2_processor.py index ecf95bbee2..f290a88bf8 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_v2_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_generate_metrics_v2_processor.py @@ -33,6 +33,7 @@ def openapi_types(_): return { "display_name": (str,), "enabled": (bool,), + "enabled_metric_aggregation": (bool,), "id": (str,), "include": (str,), "metrics": ([ObservabilityPipelineGeneratedMetric],), @@ -42,6 +43,7 @@ def openapi_types(_): attribute_map = { "display_name": "display_name", "enabled": "enabled", + "enabled_metric_aggregation": "enabled_metric_aggregation", "id": "id", "include": "include", "metrics": "metrics", @@ -54,6 +56,7 @@ def __init__( id: str, type: ObservabilityPipelineGenerateMetricsV2ProcessorType, display_name: Union[str, UnsetType] = unset, + enabled_metric_aggregation: Union[bool, UnsetType] = unset, include: Union[str, UnsetType] = unset, metrics: Union[List[ObservabilityPipelineGeneratedMetric], UnsetType] = unset, **kwargs, @@ -72,6 +75,9 @@ def __init__( :param enabled: Indicates whether the processor is enabled. :type enabled: bool + :param enabled_metric_aggregation: [Recommended] Indicates whether generated metrics are automatically aggregated and enriched with the ``worker_uuid`` tag before being sent to the metric destination. + :type enabled_metric_aggregation: bool, optional + :param id: The unique identifier for this component. Used to reference this component in other parts of the pipeline. :type id: str @@ -86,6 +92,8 @@ def __init__( """ if display_name is not unset: kwargs["display_name"] = display_name + if enabled_metric_aggregation is not unset: + kwargs["enabled_metric_aggregation"] = enabled_metric_aggregation if include is not unset: kwargs["include"] = include if metrics is not unset: 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",