Skip to content

Commit 56c63a6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9b5d8d3a of spec repo
1 parent 5239576 commit 56c63a6

13 files changed

+820
-22
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-07 18:49:35.758318",
8-
"spec_repo_commit": "d0287df0"
7+
"regenerated": "2025-04-08 13:49:21.050628",
8+
"spec_repo_commit": "9b5d8d3a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-07 18:49:35.774014",
13-
"spec_repo_commit": "d0287df0"
12+
"regenerated": "2025-04-08 13:49:21.069104",
13+
"spec_repo_commit": "9b5d8d3a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 128 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21567,7 +21567,6 @@ components:
2156721567
type: array
2156821568
required:
2156921569
- sources
21570-
- processors
2157121570
- destinations
2157221571
type: object
2157321572
ObservabilityPipelineConfigDestinationItem:
@@ -21583,11 +21582,14 @@ components:
2158321582
- $ref: '#/components/schemas/ObservabilityPipelineAddFieldsProcessor'
2158421583
- $ref: '#/components/schemas/ObservabilityPipelineRemoveFieldsProcessor'
2158521584
- $ref: '#/components/schemas/ObservabilityPipelineRenameFieldsProcessor'
21585+
- $ref: '#/components/schemas/ObservabilityPipelineSampleProcessor'
21586+
- $ref: '#/components/schemas/ObservabilityPipelineThrottleProcessor'
2158621587
ObservabilityPipelineConfigSourceItem:
2158721588
description: A data source for the pipeline.
2158821589
oneOf:
2158921590
- $ref: '#/components/schemas/ObservabilityPipelineKafkaSource'
2159021591
- $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource'
21592+
- $ref: '#/components/schemas/ObservabilityPipelineFluentSource'
2159121593
ObservabilityPipelineCreateRequest:
2159221594
description: Top-level schema representing a pipeline.
2159321595
properties:
@@ -21759,6 +21761,32 @@ components:
2175921761
type: string
2176021762
x-enum-varnames:
2176121763
- FILTER
21764+
ObservabilityPipelineFluentSource:
21765+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21766+
properties:
21767+
id:
21768+
description: The unique identifier for this component. Used to reference
21769+
this component in other parts of the pipeline (for example, as the `input`
21770+
to downstream components).
21771+
example: fluent-source
21772+
type: string
21773+
tls:
21774+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21775+
type:
21776+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21777+
required:
21778+
- id
21779+
- type
21780+
type: object
21781+
ObservabilityPipelineFluentSourceType:
21782+
default: fluent
21783+
description: The source type. The value should always be `fluent`.
21784+
enum:
21785+
- fluent
21786+
example: fluent
21787+
type: string
21788+
x-enum-varnames:
21789+
- FLUENT
2176221790
ObservabilityPipelineKafkaSource:
2176321791
description: The `kafka` source ingests data from Apache Kafka topics.
2176421792
properties:
@@ -21926,8 +21954,8 @@ components:
2192621954
limit:
2192721955
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2192821956
name:
21929-
description: Name for identifying the processor.
21930-
example: MyPipelineQuotaProcessor
21957+
description: Name of the quota.
21958+
example: MyQuota
2193121959
type: string
2193221960
overrides:
2193321961
description: A list of alternate quota rules that apply to specific sets
@@ -22121,6 +22149,103 @@ components:
2212122149
type: string
2212222150
x-enum-varnames:
2212322151
- RENAME_FIELDS
22152+
ObservabilityPipelineSampleProcessor:
22153+
description: The `sample` processor allows probabilistic sampling of logs at
22154+
a fixed rate.
22155+
properties:
22156+
id:
22157+
description: The unique identifier for this component. Used to reference
22158+
this component in other parts of the pipeline (for example, as the `input`
22159+
to downstream components).
22160+
example: sample-processor
22161+
type: string
22162+
include:
22163+
description: A Datadog search query used to determine which logs this processor
22164+
targets.
22165+
example: service:my-service
22166+
type: string
22167+
inputs:
22168+
description: A list of component IDs whose output is used as the `input`
22169+
for this component.
22170+
example:
22171+
- datadog-agent-source
22172+
items:
22173+
type: string
22174+
type: array
22175+
rate:
22176+
description: Number of events to sample (1 in N).
22177+
example: 10
22178+
format: int64
22179+
minimum: 1
22180+
type: integer
22181+
type:
22182+
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
22183+
required:
22184+
- id
22185+
- type
22186+
- include
22187+
- inputs
22188+
- rate
22189+
type: object
22190+
ObservabilityPipelineSampleProcessorType:
22191+
default: sample
22192+
description: The processor type. The value should always be `sample`.
22193+
enum:
22194+
- sample
22195+
example: sample
22196+
type: string
22197+
x-enum-varnames:
22198+
- SAMPLE
22199+
ObservabilityPipelineThrottleProcessor:
22200+
description: The `throttle` processor limits the rate of events using a time-based
22201+
window.
22202+
properties:
22203+
id:
22204+
description: Unique identifier for this processor.
22205+
example: throttle-processor
22206+
type: string
22207+
include:
22208+
description: A Datadog search query used to determine which logs this processor
22209+
targets.
22210+
example: service:my-service
22211+
type: string
22212+
inputs:
22213+
description: A list of component IDs whose output is used as the `input`
22214+
for this component.
22215+
example:
22216+
- datadog-agent-source
22217+
items:
22218+
type: string
22219+
type: array
22220+
threshold:
22221+
description: The number of events allowed within the window.
22222+
example: 100
22223+
format: int64
22224+
type: integer
22225+
type:
22226+
$ref: '#/components/schemas/ObservabilityPipelineThrottleProcessorType'
22227+
window:
22228+
description: The time window in seconds used for throttling.
22229+
example: 10.0
22230+
format: double
22231+
type: number
22232+
required:
22233+
- id
22234+
- type
22235+
- include
22236+
- inputs
22237+
- threshold
22238+
- window
22239+
type: object
22240+
ObservabilityPipelineThrottleProcessorType:
22241+
default: throttle
22242+
description: The processor type. The value should always be `throttle`.
22243+
enum:
22244+
- throttle
22245+
example: throttle
22246+
type: string
22247+
x-enum-varnames:
22248+
- THROTTLE
2212422249
ObservabilityPipelineTls:
2212522250
description: Configuration for enabling TLS encryption.
2212622251
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,6 +2252,8 @@ def overrides
22522252
"v2.observability_pipeline_field_value" => "ObservabilityPipelineFieldValue",
22532253
"v2.observability_pipeline_filter_processor" => "ObservabilityPipelineFilterProcessor",
22542254
"v2.observability_pipeline_filter_processor_type" => "ObservabilityPipelineFilterProcessorType",
2255+
"v2.observability_pipeline_fluent_source" => "ObservabilityPipelineFluentSource",
2256+
"v2.observability_pipeline_fluent_source_type" => "ObservabilityPipelineFluentSourceType",
22552257
"v2.observability_pipeline_kafka_source" => "ObservabilityPipelineKafkaSource",
22562258
"v2.observability_pipeline_kafka_source_librdkafka_option" => "ObservabilityPipelineKafkaSourceLibrdkafkaOption",
22572259
"v2.observability_pipeline_kafka_source_sasl" => "ObservabilityPipelineKafkaSourceSasl",
@@ -2269,6 +2271,10 @@ def overrides
22692271
"v2.observability_pipeline_rename_fields_processor" => "ObservabilityPipelineRenameFieldsProcessor",
22702272
"v2.observability_pipeline_rename_fields_processor_field" => "ObservabilityPipelineRenameFieldsProcessorField",
22712273
"v2.observability_pipeline_rename_fields_processor_type" => "ObservabilityPipelineRenameFieldsProcessorType",
2274+
"v2.observability_pipeline_sample_processor" => "ObservabilityPipelineSampleProcessor",
2275+
"v2.observability_pipeline_sample_processor_type" => "ObservabilityPipelineSampleProcessorType",
2276+
"v2.observability_pipeline_throttle_processor" => "ObservabilityPipelineThrottleProcessor",
2277+
"v2.observability_pipeline_throttle_processor_type" => "ObservabilityPipelineThrottleProcessorType",
22722278
"v2.observability_pipeline_tls" => "ObservabilityPipelineTls",
22732279
"v2.okta_account" => "OktaAccount",
22742280
"v2.okta_account_attributes" => "OktaAccountAttributes",

lib/datadog_api_client/v2/models/observability_pipeline_config.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ObservabilityPipelineConfig
2525
attr_reader :destinations
2626

2727
# A list of processors that transform or enrich log data.
28-
attr_reader :processors
28+
attr_accessor :processors
2929

3030
# A list of configured data sources for the pipeline.
3131
attr_reader :sources
@@ -94,7 +94,6 @@ def initialize(attributes = {})
9494
# @!visibility private
9595
def valid?
9696
return false if @destinations.nil?
97-
return false if @processors.nil?
9897
return false if @sources.nil?
9998
true
10099
end
@@ -109,16 +108,6 @@ def destinations=(destinations)
109108
@destinations = destinations
110109
end
111110

112-
# Custom attribute writer method with validation
113-
# @param processors [Object] Object to be assigned
114-
# @!visibility private
115-
def processors=(processors)
116-
if processors.nil?
117-
fail ArgumentError, 'invalid value for "processors", processors cannot be nil.'
118-
end
119-
@processors = processors
120-
end
121-
122111
# Custom attribute writer method with validation
123112
# @param sources [Object] Object to be assigned
124113
# @!visibility private

lib/datadog_api_client/v2/models/observability_pipeline_config_processor_item.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def openapi_one_of
3131
:'ObservabilityPipelineQuotaProcessor',
3232
:'ObservabilityPipelineAddFieldsProcessor',
3333
:'ObservabilityPipelineRemoveFieldsProcessor',
34-
:'ObservabilityPipelineRenameFieldsProcessor'
34+
:'ObservabilityPipelineRenameFieldsProcessor',
35+
:'ObservabilityPipelineSampleProcessor',
36+
:'ObservabilityPipelineThrottleProcessor'
3537
]
3638
end
3739
# Builds the object

lib/datadog_api_client/v2/models/observability_pipeline_config_source_item.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ class << self
2727
def openapi_one_of
2828
[
2929
:'ObservabilityPipelineKafkaSource',
30-
:'ObservabilityPipelineDatadogAgentSource'
30+
:'ObservabilityPipelineDatadogAgentSource',
31+
:'ObservabilityPipelineFluentSource'
3132
]
3233
end
3334
# Builds the object

0 commit comments

Comments
 (0)