Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
328 changes: 167 additions & 161 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)


class ExperimentsVariantResultsV2DTODataAttributesMetricsItemsAnalysesItemsConfidenceInterval(ModelNormal):
class ExperimentsConfidenceInterval(ModelNormal):
@cached_property
def openapi_types(_):
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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 = {
Expand All @@ -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,
):
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
}

Expand All @@ -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,
):
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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,),
}
Expand All @@ -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,
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],),
}

Expand All @@ -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,
):
Expand All @@ -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]
Expand Down
Original file line number Diff line number Diff line change
@@ -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")
Original file line number Diff line number Diff line change
@@ -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")
Loading
Loading