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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40833,6 +40833,8 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
Expand All @@ -40844,6 +40846,8 @@ components:
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)


class ObservabilityPipelineMemoryBufferOptions(ModelNormal):
Expand All @@ -25,21 +28,27 @@ def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)

return {
"max_size": (int,),
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
}

attribute_map = {
"max_size": "max_size",
"type": "type",
"when_full": "when_full",
}

def __init__(
self_,
max_size: Union[int, UnsetType] = unset,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -50,9 +59,14 @@ def __init__(

:param type: The type of the buffer that will be configured, a memory buffer.
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional

:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
"""
if max_size is not unset:
kwargs["max_size"] = max_size
if type is not unset:
kwargs["type"] = type
if when_full is not unset:
kwargs["when_full"] = when_full
super().__init__(kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)


class ObservabilityPipelineMemoryBufferSizeOptions(ModelNormal):
Expand All @@ -25,21 +28,27 @@ def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type import (
ObservabilityPipelineBufferOptionsMemoryType,
)
from datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full import (
ObservabilityPipelineBufferOptionsWhenFull,
)

return {
"max_events": (int,),
"type": (ObservabilityPipelineBufferOptionsMemoryType,),
"when_full": (ObservabilityPipelineBufferOptionsWhenFull,),
}

attribute_map = {
"max_events": "max_events",
"type": "type",
"when_full": "when_full",
}

def __init__(
self_,
max_events: Union[int, UnsetType] = unset,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -50,9 +59,14 @@ def __init__(

:param type: The type of the buffer that will be configured, a memory buffer.
:type type: ObservabilityPipelineBufferOptionsMemoryType, optional

:param when_full: Behavior when the buffer is full (block and stop accepting new events, or drop new events)
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional
"""
if max_events is not unset:
kwargs["max_events"] = max_events
if type is not unset:
kwargs["type"] = type
if when_full is not unset:
kwargs["when_full"] = when_full
super().__init__(kwargs)