Skip to content

Commit 5e85724

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Make datadog agent source address configurable in Observability Pipelines (#3126)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 1217c67 commit 5e85724

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42913,6 +42913,11 @@ components:
4291342913

4291442914
**Supported pipeline types:** logs, metrics'
4291542915
properties:
42916+
address_key:
42917+
description: Name of the environment variable or secret that holds the listen
42918+
address for the Datadog Agent source.
42919+
example: DATADOG_AGENT_ADDRESS
42920+
type: string
4291642921
id:
4291742922
description: The unique identifier for this component. Used in other parts
4291842923
of the pipeline to reference this component (for example, as the `input`

lib/datadog_api_client/v2/models/observability_pipeline_datadog_agent_source.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ module DatadogAPIClient::V2
2323
class ObservabilityPipelineDatadogAgentSource
2424
include BaseGenericModel
2525

26+
# Name of the environment variable or secret that holds the listen address for the Datadog Agent source.
27+
attr_accessor :address_key
28+
2629
# The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2730
attr_reader :id
2831

@@ -38,6 +41,7 @@ class ObservabilityPipelineDatadogAgentSource
3841
# @!visibility private
3942
def self.attribute_map
4043
{
44+
:'address_key' => :'address_key',
4145
:'id' => :'id',
4246
:'tls' => :'tls',
4347
:'type' => :'type'
@@ -48,6 +52,7 @@ def self.attribute_map
4852
# @!visibility private
4953
def self.openapi_types
5054
{
55+
:'address_key' => :'String',
5156
:'id' => :'String',
5257
:'tls' => :'ObservabilityPipelineTls',
5358
:'type' => :'ObservabilityPipelineDatadogAgentSourceType'
@@ -72,6 +77,10 @@ def initialize(attributes = {})
7277
end
7378
}
7479

80+
if attributes.key?(:'address_key')
81+
self.address_key = attributes[:'address_key']
82+
end
83+
7584
if attributes.key?(:'id')
7685
self.id = attributes[:'id']
7786
end
@@ -140,6 +149,7 @@ def to_hash
140149
def ==(o)
141150
return true if self.equal?(o)
142151
self.class == o.class &&
152+
address_key == o.address_key &&
143153
id == o.id &&
144154
tls == o.tls &&
145155
type == o.type &&
@@ -150,7 +160,7 @@ def ==(o)
150160
# @return [Integer] Hash code
151161
# @!visibility private
152162
def hash
153-
[id, tls, type, additional_properties].hash
163+
[address_key, id, tls, type, additional_properties].hash
154164
end
155165
end
156166
end

0 commit comments

Comments
 (0)