diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index cfbcb7286a..56373d348f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37791,18 +37791,13 @@ components: example: 10.0 format: double type: number - rate: - description: Number of events to sample (1 in N). - example: 10 - format: int64 - minimum: 1 - type: integer type: $ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType' required: - id - type - include + - percentage - enabled type: object ObservabilityPipelineSampleProcessorType: 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 8becc43c0d..9468a00bac 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 @@ -64,10 +64,7 @@ def __init__(self, **kwargs): :type metrics: [ObservabilityPipelineGeneratedMetric], optional :param percentage: The percentage of logs to sample. - :type percentage: float, optional - - :param rate: Number of events to sample (1 in N). - :type rate: int, optional + :type percentage: float :param disable_library_rules: If set to `true`, disables the default Grok rules provided by Datadog. :type disable_library_rules: bool, optional diff --git a/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py b/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py index b301a81a73..a77959344a 100644 --- a/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py +++ b/src/datadog_api_client/v2/model/observability_pipeline_sample_processor.py @@ -20,12 +20,6 @@ class ObservabilityPipelineSampleProcessor(ModelNormal): - validations = { - "rate": { - "inclusive_minimum": 1, - }, - } - @cached_property def openapi_types(_): from datadog_api_client.v2.model.observability_pipeline_sample_processor_type import ( @@ -38,7 +32,6 @@ def openapi_types(_): "id": (str,), "include": (str,), "percentage": (float,), - "rate": (int,), "type": (ObservabilityPipelineSampleProcessorType,), } @@ -48,7 +41,6 @@ def openapi_types(_): "id": "id", "include": "include", "percentage": "percentage", - "rate": "rate", "type": "type", } @@ -57,10 +49,9 @@ def __init__( enabled: bool, id: str, include: str, + percentage: float, type: ObservabilityPipelineSampleProcessorType, display_name: Union[str, UnsetType] = unset, - percentage: Union[float, UnsetType] = unset, - rate: Union[int, UnsetType] = unset, **kwargs, ): """ @@ -79,23 +70,17 @@ def __init__( :type include: str :param percentage: The percentage of logs to sample. - :type percentage: float, optional - - :param rate: Number of events to sample (1 in N). - :type rate: int, optional + :type percentage: float :param type: The processor type. The value should always be ``sample``. :type type: ObservabilityPipelineSampleProcessorType """ if display_name is not unset: kwargs["display_name"] = display_name - if percentage is not unset: - kwargs["percentage"] = percentage - if rate is not unset: - kwargs["rate"] = rate super().__init__(kwargs) self_.enabled = enabled self_.id = id self_.include = include + self_.percentage = percentage self_.type = type