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
106 changes: 106 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6766,6 +6766,8 @@ components:
description: Optional prefix for blobs written to the container.
example: logs/
type: string
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
container_name:
description: The name of the Azure Blob Storage container to store logs
in.
Expand Down Expand Up @@ -36391,6 +36393,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
client_id:
description: Azure AD client ID used for authentication.
example: a1b2c3d4-5678-90ab-cdef-1234567890ab
Expand Down Expand Up @@ -38337,6 +38341,8 @@ components:
properties:
auth:
$ref: '#/components/schemas/ObservabilityPipelineAmazonOpenSearchDestinationAuth'
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
bulk_index:
description: The index to write logs to.
example: logs-index
Expand Down Expand Up @@ -38418,6 +38424,8 @@ components:
description: S3 bucket name.
example: error-logs
type: string
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: Unique identifier for the destination component.
example: amazon-s3-destination
Expand Down Expand Up @@ -38539,6 +38547,8 @@ components:
description: Name of the Amazon S3 bucket in Security Lake (3-63 characters).
example: security-lake-bucket
type: string
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
custom_source_name:
description: Custom source name for the logs in Security Lake.
example: my-custom-source
Expand Down Expand Up @@ -38598,6 +38608,39 @@ components:
role session.
type: string
type: object
ObservabilityPipelineBufferOptions:
description: Configuration for buffer settings on destination components.
oneOf:
- $ref: '#/components/schemas/ObservabilityPipelineDiskBufferOptions'
- $ref: '#/components/schemas/ObservabilityPipelineMemoryBufferOptions'
- $ref: '#/components/schemas/ObservabilityPipelineMemoryBufferSizeOptions'
ObservabilityPipelineBufferOptionsDiskType:
default: disk
description: The type of the buffer that will be configured, a disk buffer.
enum:
- disk
type: string
x-enum-varnames:
- DISK
ObservabilityPipelineBufferOptionsMemoryType:
default: memory
description: The type of the buffer that will be configured, a memory buffer.
enum:
- memory
type: string
x-enum-varnames:
- MEMORY
ObservabilityPipelineBufferOptionsWhenFull:
default: block
description: Behavior when the buffer is full (block and stop accepting new
events, or drop new events)
enum:
- block
- drop_newest
type: string
x-enum-varnames:
- BLOCK
- DROP_NEWEST
ObservabilityPipelineCloudPremDestination:
description: 'The `cloud_prem` destination sends logs to Datadog CloudPrem.

Expand Down Expand Up @@ -38868,6 +38911,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
compression:
$ref: '#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestinationCompression'
encoding:
Expand Down Expand Up @@ -39093,6 +39138,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: The unique identifier for this component.
example: datadog-logs-destination
Expand Down Expand Up @@ -39347,6 +39394,19 @@ components:
type: string
x-enum-varnames:
- DEDUPE
ObservabilityPipelineDiskBufferOptions:
description: Options for configuring a disk buffer.
properties:
max_size:
description: Maximum size of the disk buffer.
example: 4096
format: int64
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsDiskType'
when_full:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsWhenFull'
type: object
ObservabilityPipelineElasticsearchDestination:
description: 'The `elasticsearch` destination writes logs to an Elasticsearch
cluster.
Expand All @@ -39356,6 +39416,8 @@ components:
properties:
api_version:
$ref: '#/components/schemas/ObservabilityPipelineElasticsearchDestinationApiVersion'
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
bulk_index:
description: The index to write logs to in Elasticsearch.
example: logs-index
Expand Down Expand Up @@ -39901,6 +39963,8 @@ components:
properties:
auth:
$ref: '#/components/schemas/ObservabilityPipelineGcpAuth'
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
customer_id:
description: The Google Chronicle customer ID.
example: abcdefg123456789
Expand Down Expand Up @@ -39969,6 +40033,8 @@ components:
description: Name of the GCS bucket.
example: error-logs
type: string
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: Unique identifier for the destination component.
example: gcs-destination
Expand Down Expand Up @@ -40053,6 +40119,8 @@ components:
properties:
auth:
$ref: '#/components/schemas/ObservabilityPipelineGcpAuth'
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
encoding:
$ref: '#/components/schemas/ObservabilityPipelineGooglePubSubDestinationEncoding'
id:
Expand Down Expand Up @@ -40579,6 +40647,28 @@ components:
type: string
x-enum-varnames:
- LOGSTASH
ObservabilityPipelineMemoryBufferOptions:
description: Options for configuring a memory buffer by byte size.
properties:
max_size:
description: Maximum size of the memory buffer.
example: 4096
format: int64
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
type: object
ObservabilityPipelineMemoryBufferSizeOptions:
description: Options for configuring a memory buffer by queue length.
properties:
max_events:
description: Maximum events for the memory buffer.
example: 500
format: int64
type: integer
type:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptionsMemoryType'
type: object
ObservabilityPipelineMetadataEntry:
description: A custom metadata entry.
properties:
Expand Down Expand Up @@ -40701,6 +40791,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: The unique identifier for this component.
example: new-relic-destination
Expand Down Expand Up @@ -40847,6 +40939,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
bulk_index:
description: The index to write logs to.
example: logs-index
Expand Down Expand Up @@ -41560,6 +41654,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: The unique identifier for this component.
example: rsyslog-destination
Expand Down Expand Up @@ -42065,6 +42161,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: The unique identifier for this component.
example: sentinelone-destination
Expand Down Expand Up @@ -42119,6 +42217,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
encoding:
$ref: '#/components/schemas/ObservabilityPipelineSocketDestinationEncoding'
framing:
Expand Down Expand Up @@ -42495,6 +42595,8 @@ components:
If `false`, Splunk assigns the time the event was received.'
example: true
type: boolean
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
encoding:
$ref: '#/components/schemas/ObservabilityPipelineSplunkHecDestinationEncoding'
id:
Expand Down Expand Up @@ -42619,6 +42721,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
encoding:
$ref: '#/components/schemas/ObservabilityPipelineSumoLogicDestinationEncoding'
header_custom_fields:
Expand Down Expand Up @@ -42732,6 +42836,8 @@ components:

**Supported pipeline types:** logs'
properties:
buffer:
$ref: '#/components/schemas/ObservabilityPipelineBufferOptions'
id:
description: The unique identifier for this component.
example: syslog-ng-destination
Expand Down
49 changes: 49 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16811,6 +16811,34 @@ datadog\_api\_client.v2.model.observability\_pipeline\_aws\_auth module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options module
-----------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_disk\_type module
-----------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_disk_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_memory\_type module
-------------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_memory_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_buffer\_options\_when\_full module
-----------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_buffer_options_when_full
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_cloud\_prem\_destination module
--------------------------------------------------------------------------------------

Expand Down Expand Up @@ -17042,6 +17070,13 @@ datadog\_api\_client.v2.model.observability\_pipeline\_dedupe\_processor\_type m
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_disk\_buffer\_options module
-----------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_disk_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_elasticsearch\_destination module
----------------------------------------------------------------------------------------

Expand Down Expand Up @@ -17497,6 +17532,20 @@ datadog\_api\_client.v2.model.observability\_pipeline\_logstash\_source\_type mo
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_memory\_buffer\_options module
-------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_memory_buffer_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_memory\_buffer\_size\_options module
-------------------------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.observability_pipeline_memory_buffer_size_options
:members:
:show-inheritance:

datadog\_api\_client.v2.model.observability\_pipeline\_metadata\_entry module
-----------------------------------------------------------------------------

Expand Down
25 changes: 25 additions & 0 deletions src/datadog_api_client/v2/model/azure_storage_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,28 @@


if TYPE_CHECKING:
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType
from datadog_api_client.v2.model.observability_pipeline_disk_buffer_options import (
ObservabilityPipelineDiskBufferOptions,
)
from datadog_api_client.v2.model.observability_pipeline_memory_buffer_options import (
ObservabilityPipelineMemoryBufferOptions,
)
from datadog_api_client.v2.model.observability_pipeline_memory_buffer_size_options import (
ObservabilityPipelineMemoryBufferSizeOptions,
)


class AzureStorageDestination(ModelNormal):
@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.observability_pipeline_buffer_options import ObservabilityPipelineBufferOptions
from datadog_api_client.v2.model.azure_storage_destination_type import AzureStorageDestinationType

return {
"blob_prefix": (str,),
"buffer": (ObservabilityPipelineBufferOptions,),
"container_name": (str,),
"id": (str,),
"inputs": ([str],),
Expand All @@ -32,6 +44,7 @@ def openapi_types(_):

attribute_map = {
"blob_prefix": "blob_prefix",
"buffer": "buffer",
"container_name": "container_name",
"id": "id",
"inputs": "inputs",
Expand All @@ -45,6 +58,13 @@ def __init__(
inputs: List[str],
type: AzureStorageDestinationType,
blob_prefix: Union[str, UnsetType] = unset,
buffer: Union[
ObservabilityPipelineBufferOptions,
ObservabilityPipelineDiskBufferOptions,
ObservabilityPipelineMemoryBufferOptions,
ObservabilityPipelineMemoryBufferSizeOptions,
UnsetType,
] = unset,
**kwargs,
):
"""
Expand All @@ -55,6 +75,9 @@ def __init__(
:param blob_prefix: Optional prefix for blobs written to the container.
:type blob_prefix: str, optional

:param buffer: Configuration for buffer settings on destination components.
:type buffer: ObservabilityPipelineBufferOptions, optional

:param container_name: The name of the Azure Blob Storage container to store logs in.
:type container_name: str

Expand All @@ -69,6 +92,8 @@ def __init__(
"""
if blob_prefix is not unset:
kwargs["blob_prefix"] = blob_prefix
if buffer is not unset:
kwargs["buffer"] = buffer
super().__init__(kwargs)

self_.container_name = container_name
Expand Down
Loading