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
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39639,6 +39639,8 @@ components:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
required:
- max_size
type: object
ObservabilityPipelineElasticsearchDestination:
description: 'The `elasticsearch` destination writes logs to an Elasticsearch
Expand Down Expand Up @@ -40892,6 +40894,8 @@ components:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
required:
- max_size
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
Expand All @@ -40905,6 +40909,8 @@ components:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
required:
- max_events
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, **kwargs):
Configuration for buffer settings on destination components.

:param max_size: Maximum size of the disk buffer.
:type max_size: int, optional
:type max_size: int

:param type: The type of the buffer that will be configured, a disk buffer.
:type type: ObservabilityPipelineBufferOptionsDiskType, optional
Expand All @@ -25,7 +25,7 @@ def __init__(self, **kwargs):
:type when_full: ObservabilityPipelineBufferOptionsWhenFull, optional

:param max_events: Maximum events for the memory buffer.
:type max_events: int, optional
:type max_events: int
"""
super().__init__(kwargs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def openapi_types(_):

def __init__(
self_,
max_size: Union[int, UnsetType] = unset,
max_size: int,
type: Union[ObservabilityPipelineBufferOptionsDiskType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
Expand All @@ -55,18 +55,18 @@ def __init__(
Options for configuring a disk buffer.

:param max_size: Maximum size of the disk buffer.
:type max_size: int, optional
:type max_size: int

:param type: The type of the buffer that will be configured, a disk buffer.
:type type: ObservabilityPipelineBufferOptionsDiskType, 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)

self_.max_size = max_size
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def openapi_types(_):

def __init__(
self_,
max_size: Union[int, UnsetType] = unset,
max_size: int,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
Expand All @@ -55,18 +55,18 @@ def __init__(
Options for configuring a memory buffer by byte size.

:param max_size: Maximum size of the memory buffer.
:type max_size: int, optional
:type max_size: int

: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)

self_.max_size = max_size
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def openapi_types(_):

def __init__(
self_,
max_events: Union[int, UnsetType] = unset,
max_events: int,
type: Union[ObservabilityPipelineBufferOptionsMemoryType, UnsetType] = unset,
when_full: Union[ObservabilityPipelineBufferOptionsWhenFull, UnsetType] = unset,
**kwargs,
Expand All @@ -55,18 +55,18 @@ def __init__(
Options for configuring a memory buffer by queue length.

:param max_events: Maximum events for the memory buffer.
:type max_events: int, optional
:type max_events: int

: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)

self_.max_events = max_events