Skip to content

Commit 99f59cb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 34875ed8 of spec repo
1 parent 5239576 commit 99f59cb

17 files changed

+1218
-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 14:22:47.543476",
8+
"spec_repo_commit": "34875ed8"
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 14:22:47.560170",
13+
"spec_repo_commit": "34875ed8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 199 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,15 @@ 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'
21593+
- $ref: '#/components/schemas/ObservabilityPipelineHttpServerSource'
2159121594
ObservabilityPipelineCreateRequest:
2159221595
description: Top-level schema representing a pipeline.
2159321596
properties:
@@ -21702,6 +21705,20 @@ components:
2170221705
type: string
2170321706
x-enum-varnames:
2170421707
- DATADOG_LOGS
21708+
ObservabilityPipelineDecoding:
21709+
description: The decoding format used to interpret incoming logs.
21710+
enum:
21711+
- bytes
21712+
- gelf
21713+
- json
21714+
- syslog
21715+
example: json
21716+
type: string
21717+
x-enum-varnames:
21718+
- DECODE_BYTES
21719+
- DECODE_GELF
21720+
- DECODE_JSON
21721+
- DECODE_SYSLOG
2170521722
ObservabilityPipelineFieldValue:
2170621723
description: Represents a static key-value pair used in various processors.
2170721724
properties:
@@ -21759,6 +21776,88 @@ components:
2175921776
type: string
2176021777
x-enum-varnames:
2176121778
- FILTER
21779+
ObservabilityPipelineFluentSource:
21780+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21781+
properties:
21782+
id:
21783+
description: The unique identifier for this component. Used to reference
21784+
this component in other parts of the pipeline (for example, as the `input`
21785+
to downstream components).
21786+
example: fluent-source
21787+
type: string
21788+
tls:
21789+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21790+
type:
21791+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21792+
required:
21793+
- id
21794+
- type
21795+
type: object
21796+
ObservabilityPipelineFluentSourceType:
21797+
default: fluent
21798+
description: The source type. The value should always be `fluent`.
21799+
enum:
21800+
- fluent
21801+
example: fluent
21802+
type: string
21803+
x-enum-varnames:
21804+
- FLUENT
21805+
ObservabilityPipelineHttpServerSource:
21806+
description: The `http_server` source collects logs over HTTP POST from external
21807+
services.
21808+
properties:
21809+
auth_strategy:
21810+
$ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceAuthStrategy'
21811+
decoding:
21812+
$ref: '#/components/schemas/ObservabilityPipelineDecoding'
21813+
id:
21814+
description: Unique ID for the HTTP server source.
21815+
example: http-server-source
21816+
type: string
21817+
include:
21818+
description: A Datadog search query used to determine which logs this processor
21819+
targets.
21820+
example: service:my-service
21821+
type: string
21822+
inputs:
21823+
description: A list of component IDs whose output is used as the `input`
21824+
for this component.
21825+
example:
21826+
- datadog-agent-source
21827+
items:
21828+
type: string
21829+
type: array
21830+
tls:
21831+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21832+
type:
21833+
$ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceType'
21834+
required:
21835+
- id
21836+
- type
21837+
- include
21838+
- inputs
21839+
- auth_strategy
21840+
- decoding
21841+
type: object
21842+
ObservabilityPipelineHttpServerSourceAuthStrategy:
21843+
description: HTTP authentication method.
21844+
enum:
21845+
- none
21846+
- plain
21847+
example: plain
21848+
type: string
21849+
x-enum-varnames:
21850+
- NONE
21851+
- PLAIN
21852+
ObservabilityPipelineHttpServerSourceType:
21853+
default: http_server
21854+
description: The source type. The value should always be `http_server`.
21855+
enum:
21856+
- http_server
21857+
example: http_server
21858+
type: string
21859+
x-enum-varnames:
21860+
- HTTP_SERVER
2176221861
ObservabilityPipelineKafkaSource:
2176321862
description: The `kafka` source ingests data from Apache Kafka topics.
2176421863
properties:
@@ -21926,8 +22025,8 @@ components:
2192622025
limit:
2192722026
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2192822027
name:
21929-
description: Name for identifying the processor.
21930-
example: MyPipelineQuotaProcessor
22028+
description: Name of the quota.
22029+
example: MyQuota
2193122030
type: string
2193222031
overrides:
2193322032
description: A list of alternate quota rules that apply to specific sets
@@ -22121,6 +22220,103 @@ components:
2212122220
type: string
2212222221
x-enum-varnames:
2212322222
- RENAME_FIELDS
22223+
ObservabilityPipelineSampleProcessor:
22224+
description: The `sample` processor allows probabilistic sampling of logs at
22225+
a fixed rate.
22226+
properties:
22227+
id:
22228+
description: The unique identifier for this component. Used to reference
22229+
this component in other parts of the pipeline (for example, as the `input`
22230+
to downstream components).
22231+
example: sample-processor
22232+
type: string
22233+
include:
22234+
description: A Datadog search query used to determine which logs this processor
22235+
targets.
22236+
example: service:my-service
22237+
type: string
22238+
inputs:
22239+
description: A list of component IDs whose output is used as the `input`
22240+
for this component.
22241+
example:
22242+
- datadog-agent-source
22243+
items:
22244+
type: string
22245+
type: array
22246+
rate:
22247+
description: Number of events to sample (1 in N).
22248+
example: 10
22249+
format: int64
22250+
minimum: 1
22251+
type: integer
22252+
type:
22253+
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
22254+
required:
22255+
- id
22256+
- type
22257+
- include
22258+
- inputs
22259+
- rate
22260+
type: object
22261+
ObservabilityPipelineSampleProcessorType:
22262+
default: sample
22263+
description: The processor type. The value should always be `sample`.
22264+
enum:
22265+
- sample
22266+
example: sample
22267+
type: string
22268+
x-enum-varnames:
22269+
- SAMPLE
22270+
ObservabilityPipelineThrottleProcessor:
22271+
description: The `throttle` processor limits the rate of events using a time-based
22272+
window.
22273+
properties:
22274+
id:
22275+
description: Unique identifier for this processor.
22276+
example: throttle-processor
22277+
type: string
22278+
include:
22279+
description: A Datadog search query used to determine which logs this processor
22280+
targets.
22281+
example: service:my-service
22282+
type: string
22283+
inputs:
22284+
description: A list of component IDs whose output is used as the `input`
22285+
for this component.
22286+
example:
22287+
- datadog-agent-source
22288+
items:
22289+
type: string
22290+
type: array
22291+
threshold:
22292+
description: The number of events allowed within the window.
22293+
example: 100
22294+
format: int64
22295+
type: integer
22296+
type:
22297+
$ref: '#/components/schemas/ObservabilityPipelineThrottleProcessorType'
22298+
window:
22299+
description: The time window in seconds used for throttling.
22300+
example: 10.0
22301+
format: double
22302+
type: number
22303+
required:
22304+
- id
22305+
- type
22306+
- include
22307+
- inputs
22308+
- threshold
22309+
- window
22310+
type: object
22311+
ObservabilityPipelineThrottleProcessorType:
22312+
default: throttle
22313+
description: The processor type. The value should always be `throttle`.
22314+
enum:
22315+
- throttle
22316+
example: throttle
22317+
type: string
22318+
x-enum-varnames:
22319+
- THROTTLE
2212422320
ObservabilityPipelineTls:
2212522321
description: Configuration for enabling TLS encryption.
2212622322
properties:

lib/datadog_api_client/inflector.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,9 +2249,15 @@ def overrides
22492249
"v2.observability_pipeline_datadog_agent_source_type" => "ObservabilityPipelineDatadogAgentSourceType",
22502250
"v2.observability_pipeline_datadog_logs_destination" => "ObservabilityPipelineDatadogLogsDestination",
22512251
"v2.observability_pipeline_datadog_logs_destination_type" => "ObservabilityPipelineDatadogLogsDestinationType",
2252+
"v2.observability_pipeline_decoding" => "ObservabilityPipelineDecoding",
22522253
"v2.observability_pipeline_field_value" => "ObservabilityPipelineFieldValue",
22532254
"v2.observability_pipeline_filter_processor" => "ObservabilityPipelineFilterProcessor",
22542255
"v2.observability_pipeline_filter_processor_type" => "ObservabilityPipelineFilterProcessorType",
2256+
"v2.observability_pipeline_fluent_source" => "ObservabilityPipelineFluentSource",
2257+
"v2.observability_pipeline_fluent_source_type" => "ObservabilityPipelineFluentSourceType",
2258+
"v2.observability_pipeline_http_server_source" => "ObservabilityPipelineHttpServerSource",
2259+
"v2.observability_pipeline_http_server_source_auth_strategy" => "ObservabilityPipelineHttpServerSourceAuthStrategy",
2260+
"v2.observability_pipeline_http_server_source_type" => "ObservabilityPipelineHttpServerSourceType",
22552261
"v2.observability_pipeline_kafka_source" => "ObservabilityPipelineKafkaSource",
22562262
"v2.observability_pipeline_kafka_source_librdkafka_option" => "ObservabilityPipelineKafkaSourceLibrdkafkaOption",
22572263
"v2.observability_pipeline_kafka_source_sasl" => "ObservabilityPipelineKafkaSourceSasl",
@@ -2269,6 +2275,10 @@ def overrides
22692275
"v2.observability_pipeline_rename_fields_processor" => "ObservabilityPipelineRenameFieldsProcessor",
22702276
"v2.observability_pipeline_rename_fields_processor_field" => "ObservabilityPipelineRenameFieldsProcessorField",
22712277
"v2.observability_pipeline_rename_fields_processor_type" => "ObservabilityPipelineRenameFieldsProcessorType",
2278+
"v2.observability_pipeline_sample_processor" => "ObservabilityPipelineSampleProcessor",
2279+
"v2.observability_pipeline_sample_processor_type" => "ObservabilityPipelineSampleProcessorType",
2280+
"v2.observability_pipeline_throttle_processor" => "ObservabilityPipelineThrottleProcessor",
2281+
"v2.observability_pipeline_throttle_processor_type" => "ObservabilityPipelineThrottleProcessorType",
22722282
"v2.observability_pipeline_tls" => "ObservabilityPipelineTls",
22732283
"v2.okta_account" => "OktaAccount",
22742284
"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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class << self
2727
def openapi_one_of
2828
[
2929
:'ObservabilityPipelineKafkaSource',
30-
:'ObservabilityPipelineDatadogAgentSource'
30+
:'ObservabilityPipelineDatadogAgentSource',
31+
:'ObservabilityPipelineFluentSource',
32+
:'ObservabilityPipelineHttpServerSource'
3133
]
3234
end
3335
# Builds the object
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
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+
# The decoding format used to interpret incoming logs.
21+
class ObservabilityPipelineDecoding
22+
include BaseEnumModel
23+
24+
DECODE_BYTES = "bytes".freeze
25+
DECODE_GELF = "gelf".freeze
26+
DECODE_JSON = "json".freeze
27+
DECODE_SYSLOG = "syslog".freeze
28+
end
29+
end

0 commit comments

Comments
 (0)