Skip to content

Commit 4cc238c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2e28a6d of spec repo
1 parent db50fbc commit 4cc238c

File tree

6 files changed

+152
-19
lines changed

6 files changed

+152
-19
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43029,6 +43029,7 @@ components:
4302943029
ObservabilityPipelineConfigDestinationItem:
4303043030
description: "A destination for the pipeline."
4303143031
oneOf:
43032+
- $ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestination"
4303243033
- $ref: "#/components/schemas/ObservabilityPipelineHttpClientDestination"
4303343034
- $ref: "#/components/schemas/ObservabilityPipelineAmazonOpenSearchDestination"
4303443035
- $ref: "#/components/schemas/ObservabilityPipelineAmazonS3Destination"
@@ -43038,7 +43039,6 @@ components:
4303843039
- $ref: "#/components/schemas/ObservabilityPipelineCloudPremDestination"
4303943040
- $ref: "#/components/schemas/ObservabilityPipelineCrowdStrikeNextGenSiemDestination"
4304043041
- $ref: "#/components/schemas/ObservabilityPipelineDatadogLogsDestination"
43041-
- $ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestination"
4304243042
- $ref: "#/components/schemas/ObservabilityPipelineGoogleChronicleDestination"
4304343043
- $ref: "#/components/schemas/ObservabilityPipelineGoogleCloudStorageDestination"
4304443044
- $ref: "#/components/schemas/ObservabilityPipelineGooglePubSubDestination"
@@ -43640,9 +43640,9 @@ components:
4364043640
type: object
4364143641
ObservabilityPipelineElasticsearchDestination:
4364243642
description: |-
43643-
The `elasticsearch` destination writes logs to an Elasticsearch cluster.
43643+
The `elasticsearch` destination writes logs or metrics to an Elasticsearch cluster.
4364443644

43645-
**Supported pipeline types:** logs
43645+
**Supported pipeline types:** logs, metrics
4364643646
properties:
4364743647
api_version:
4364843648
$ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestinationApiVersion"
@@ -43651,9 +43651,11 @@ components:
4365143651
buffer:
4365243652
$ref: "#/components/schemas/ObservabilityPipelineBufferOptions"
4365343653
bulk_index:
43654-
description: The index to write logs to in Elasticsearch.
43654+
description: The name of the index to write events to in Elasticsearch.
4365543655
example: logs-index
4365643656
type: string
43657+
compression:
43658+
$ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestinationCompression"
4365743659
data_stream:
4365843660
$ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestinationDataStream"
4365943661
endpoint_url_key:
@@ -43664,21 +43666,34 @@ components:
4366443666
description: The unique identifier for this component.
4366543667
example: "elasticsearch-destination"
4366643668
type: string
43669+
id_key:
43670+
description: The name of the field used as the document ID in Elasticsearch.
43671+
example: id
43672+
type: string
4366743673
inputs:
4366843674
description: A list of component IDs whose output is used as the `input` for this component.
4366943675
example: ["filter-processor"]
4367043676
items:
4367143677
description: The ID of a component whose output is used as input for this destination.
4367243678
type: string
4367343679
type: array
43680+
pipeline:
43681+
description: The name of an Elasticsearch ingest pipeline to apply to events before indexing.
43682+
example: my-pipeline
43683+
type: string
43684+
request_retry_partial:
43685+
description: When `true`, retries failed partial bulk requests. This is useful when some events in a batch fail while others succeed.
43686+
type: boolean
43687+
tls:
43688+
$ref: "#/components/schemas/ObservabilityPipelineTls"
4367443689
type:
4367543690
$ref: "#/components/schemas/ObservabilityPipelineElasticsearchDestinationType"
4367643691
required:
4367743692
- id
4367843693
- type
4367943694
- inputs
4368043695
type: object
43681-
x-pipeline-types: [logs]
43696+
x-pipeline-types: [logs, metrics]
4368243697
ObservabilityPipelineElasticsearchDestinationApiVersion:
4368343698
description: The Elasticsearch API version to use. Set to `auto` to auto-detect.
4368443699
enum: [auto, v6, v7, v8]
@@ -43707,18 +43722,35 @@ components:
4370743722
required:
4370843723
- strategy
4370943724
type: object
43725+
ObservabilityPipelineElasticsearchDestinationCompression:
43726+
description: Compression algorithm applied when sending data to Elasticsearch.
43727+
enum: [none, gzip, zlib, zstd, snappy]
43728+
example: gzip
43729+
type: string
43730+
x-enum-varnames:
43731+
- NONE
43732+
- GZIP
43733+
- ZLIB
43734+
- ZSTD
43735+
- SNAPPY
4371043736
ObservabilityPipelineElasticsearchDestinationDataStream:
4371143737
description: Configuration options for writing to Elasticsearch Data Streams instead of a fixed index.
4371243738
properties:
43739+
auto_routing:
43740+
description: When `true`, automatically routes events to the appropriate data stream based on the event content.
43741+
type: boolean
4371343742
dataset:
43714-
description: The data stream dataset for your logs. This groups logs by their source or application.
43743+
description: The data stream dataset. This groups events by their source or application.
4371543744
type: string
4371643745
dtype:
43717-
description: The data stream type for your logs. This determines how logs are categorized within the data stream.
43746+
description: The data stream type. This determines how events are categorized within the data stream.
4371843747
type: string
4371943748
namespace:
43720-
description: The data stream namespace for your logs. This separates logs into different environments or domains.
43749+
description: The data stream namespace. This separates events into different environments or domains.
4372143750
type: string
43751+
sync_fields:
43752+
description: When `true`, synchronizes data stream fields with the Elasticsearch index mapping.
43753+
type: boolean
4372243754
type: object
4372343755
ObservabilityPipelineElasticsearchDestinationType:
4372443756
default: elasticsearch

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3794,6 +3794,7 @@ def overrides
37943794
"v2.observability_pipeline_elasticsearch_destination" => "ObservabilityPipelineElasticsearchDestination",
37953795
"v2.observability_pipeline_elasticsearch_destination_api_version" => "ObservabilityPipelineElasticsearchDestinationApiVersion",
37963796
"v2.observability_pipeline_elasticsearch_destination_auth" => "ObservabilityPipelineElasticsearchDestinationAuth",
3797+
"v2.observability_pipeline_elasticsearch_destination_compression" => "ObservabilityPipelineElasticsearchDestinationCompression",
37973798
"v2.observability_pipeline_elasticsearch_destination_data_stream" => "ObservabilityPipelineElasticsearchDestinationDataStream",
37983799
"v2.observability_pipeline_elasticsearch_destination_type" => "ObservabilityPipelineElasticsearchDestinationType",
37993800
"v2.observability_pipeline_enrichment_table_file" => "ObservabilityPipelineEnrichmentTableFile",

lib/datadog_api_client/v2/models/observability_pipeline_config_destination_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class << self
2626
# List of class defined in oneOf (OpenAPI v3)
2727
def openapi_one_of
2828
[
29+
:'ObservabilityPipelineElasticsearchDestination',
2930
:'ObservabilityPipelineHttpClientDestination',
3031
:'ObservabilityPipelineAmazonOpenSearchDestination',
3132
:'ObservabilityPipelineAmazonS3Destination',
@@ -35,7 +36,6 @@ def openapi_one_of
3536
:'ObservabilityPipelineCloudPremDestination',
3637
:'ObservabilityPipelineCrowdStrikeNextGenSiemDestination',
3738
:'ObservabilityPipelineDatadogLogsDestination',
38-
:'ObservabilityPipelineElasticsearchDestination',
3939
:'ObservabilityPipelineGoogleChronicleDestination',
4040
:'ObservabilityPipelineGoogleCloudStorageDestination',
4141
:'ObservabilityPipelineGooglePubSubDestination',

lib/datadog_api_client/v2/models/observability_pipeline_elasticsearch_destination.rb

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The `elasticsearch` destination writes logs to an Elasticsearch cluster.
20+
# The `elasticsearch` destination writes logs or metrics to an Elasticsearch cluster.
2121
#
22-
# **Supported pipeline types:** logs
22+
# **Supported pipeline types:** logs, metrics
2323
class ObservabilityPipelineElasticsearchDestination
2424
include BaseGenericModel
2525

@@ -33,9 +33,12 @@ class ObservabilityPipelineElasticsearchDestination
3333
# Configuration for buffer settings on destination components.
3434
attr_accessor :buffer
3535

36-
# The index to write logs to in Elasticsearch.
36+
# The name of the index to write events to in Elasticsearch.
3737
attr_accessor :bulk_index
3838

39+
# Compression algorithm applied when sending data to Elasticsearch.
40+
attr_accessor :compression
41+
3942
# Configuration options for writing to Elasticsearch Data Streams instead of a fixed index.
4043
attr_accessor :data_stream
4144

@@ -45,9 +48,21 @@ class ObservabilityPipelineElasticsearchDestination
4548
# The unique identifier for this component.
4649
attr_reader :id
4750

51+
# The name of the field used as the document ID in Elasticsearch.
52+
attr_accessor :id_key
53+
4854
# A list of component IDs whose output is used as the `input` for this component.
4955
attr_reader :inputs
5056

57+
# The name of an Elasticsearch ingest pipeline to apply to events before indexing.
58+
attr_accessor :pipeline
59+
60+
# When `true`, retries failed partial bulk requests. This is useful when some events in a batch fail while others succeed.
61+
attr_accessor :request_retry_partial
62+
63+
# Configuration for enabling TLS encryption between the pipeline component and external services.
64+
attr_accessor :tls
65+
5166
# The destination type. The value should always be `elasticsearch`.
5267
attr_reader :type
5368

@@ -61,10 +76,15 @@ def self.attribute_map
6176
:'auth' => :'auth',
6277
:'buffer' => :'buffer',
6378
:'bulk_index' => :'bulk_index',
79+
:'compression' => :'compression',
6480
:'data_stream' => :'data_stream',
6581
:'endpoint_url_key' => :'endpoint_url_key',
6682
:'id' => :'id',
83+
:'id_key' => :'id_key',
6784
:'inputs' => :'inputs',
85+
:'pipeline' => :'pipeline',
86+
:'request_retry_partial' => :'request_retry_partial',
87+
:'tls' => :'tls',
6888
:'type' => :'type'
6989
}
7090
end
@@ -77,10 +97,15 @@ def self.openapi_types
7797
:'auth' => :'ObservabilityPipelineElasticsearchDestinationAuth',
7898
:'buffer' => :'ObservabilityPipelineBufferOptions',
7999
:'bulk_index' => :'String',
100+
:'compression' => :'ObservabilityPipelineElasticsearchDestinationCompression',
80101
:'data_stream' => :'ObservabilityPipelineElasticsearchDestinationDataStream',
81102
:'endpoint_url_key' => :'String',
82103
:'id' => :'String',
104+
:'id_key' => :'String',
83105
:'inputs' => :'Array<String>',
106+
:'pipeline' => :'String',
107+
:'request_retry_partial' => :'Boolean',
108+
:'tls' => :'ObservabilityPipelineTls',
84109
:'type' => :'ObservabilityPipelineElasticsearchDestinationType'
85110
}
86111
end
@@ -119,6 +144,10 @@ def initialize(attributes = {})
119144
self.bulk_index = attributes[:'bulk_index']
120145
end
121146

147+
if attributes.key?(:'compression')
148+
self.compression = attributes[:'compression']
149+
end
150+
122151
if attributes.key?(:'data_stream')
123152
self.data_stream = attributes[:'data_stream']
124153
end
@@ -131,12 +160,28 @@ def initialize(attributes = {})
131160
self.id = attributes[:'id']
132161
end
133162

163+
if attributes.key?(:'id_key')
164+
self.id_key = attributes[:'id_key']
165+
end
166+
134167
if attributes.key?(:'inputs')
135168
if (value = attributes[:'inputs']).is_a?(Array)
136169
self.inputs = value
137170
end
138171
end
139172

173+
if attributes.key?(:'pipeline')
174+
self.pipeline = attributes[:'pipeline']
175+
end
176+
177+
if attributes.key?(:'request_retry_partial')
178+
self.request_retry_partial = attributes[:'request_retry_partial']
179+
end
180+
181+
if attributes.key?(:'tls')
182+
self.tls = attributes[:'tls']
183+
end
184+
140185
if attributes.key?(:'type')
141186
self.type = attributes[:'type']
142187
end
@@ -212,10 +257,15 @@ def ==(o)
212257
auth == o.auth &&
213258
buffer == o.buffer &&
214259
bulk_index == o.bulk_index &&
260+
compression == o.compression &&
215261
data_stream == o.data_stream &&
216262
endpoint_url_key == o.endpoint_url_key &&
217263
id == o.id &&
264+
id_key == o.id_key &&
218265
inputs == o.inputs &&
266+
pipeline == o.pipeline &&
267+
request_retry_partial == o.request_retry_partial &&
268+
tls == o.tls &&
219269
type == o.type &&
220270
additional_properties == o.additional_properties
221271
end
@@ -224,7 +274,7 @@ def ==(o)
224274
# @return [Integer] Hash code
225275
# @!visibility private
226276
def hash
227-
[api_version, auth, buffer, bulk_index, data_stream, endpoint_url_key, id, inputs, type, additional_properties].hash
277+
[api_version, auth, buffer, bulk_index, compression, data_stream, endpoint_url_key, id, id_key, inputs, pipeline, request_retry_partial, tls, type, additional_properties].hash
228278
end
229279
end
230280
end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
=begin
2+
#Datadog API V2 Collection
3+
4+
#Collection of all Datadog Public endpoints.
5+
6+
The version of the OpenAPI document: 1.0
7+
Contact: support@datadoghq.com
8+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9+
10+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11+
This product includes software developed at Datadog (https://www.datadoghq.com/).
12+
Copyright 2020-Present Datadog, Inc.
13+
14+
=end
15+
16+
require 'date'
17+
require 'time'
18+
19+
module DatadogAPIClient::V2
20+
# Compression algorithm applied when sending data to Elasticsearch.
21+
class ObservabilityPipelineElasticsearchDestinationCompression
22+
include BaseEnumModel
23+
24+
NONE = "none".freeze
25+
GZIP = "gzip".freeze
26+
ZLIB = "zlib".freeze
27+
ZSTD = "zstd".freeze
28+
SNAPPY = "snappy".freeze
29+
end
30+
end

0 commit comments

Comments
 (0)