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
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/
@JsonPropertyOrder({
AzureStorageDestination.JSON_PROPERTY_BLOB_PREFIX,
AzureStorageDestination.JSON_PROPERTY_BUFFER,
AzureStorageDestination.JSON_PROPERTY_CONTAINER_NAME,
AzureStorageDestination.JSON_PROPERTY_ID,
AzureStorageDestination.JSON_PROPERTY_INPUTS,
Expand All @@ -38,6 +39,9 @@ public class AzureStorageDestination {
public static final String JSON_PROPERTY_BLOB_PREFIX = "blob_prefix";
private String blobPrefix;

public static final String JSON_PROPERTY_BUFFER = "buffer";
private ObservabilityPipelineBufferOptions buffer;

public static final String JSON_PROPERTY_CONTAINER_NAME = "container_name";
private String containerName;

Expand Down Expand Up @@ -86,6 +90,28 @@ public void setBlobPrefix(String blobPrefix) {
this.blobPrefix = blobPrefix;
}

public AzureStorageDestination buffer(ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
this.unparsed |= buffer.unparsed;
return this;
}

/**
* Configuration for buffer settings on destination components.
*
* @return buffer
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BUFFER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public ObservabilityPipelineBufferOptions getBuffer() {
return buffer;
}

public void setBuffer(ObservabilityPipelineBufferOptions buffer) {
this.buffer = buffer;
}

public AzureStorageDestination containerName(String containerName) {
this.containerName = containerName;
return this;
Expand Down Expand Up @@ -232,6 +258,7 @@ public boolean equals(Object o) {
}
AzureStorageDestination azureStorageDestination = (AzureStorageDestination) o;
return Objects.equals(this.blobPrefix, azureStorageDestination.blobPrefix)
&& Objects.equals(this.buffer, azureStorageDestination.buffer)
&& Objects.equals(this.containerName, azureStorageDestination.containerName)
&& Objects.equals(this.id, azureStorageDestination.id)
&& Objects.equals(this.inputs, azureStorageDestination.inputs)
Expand All @@ -241,14 +268,15 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(blobPrefix, containerName, id, inputs, type, additionalProperties);
return Objects.hash(blobPrefix, buffer, containerName, id, inputs, type, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AzureStorageDestination {\n");
sb.append(" blobPrefix: ").append(toIndentedString(blobPrefix)).append("\n");
sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n");
sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
Expand Down
Loading
Loading