Skip to content

Commit 751d8a8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 35dd31ba of spec repo
1 parent 79a1d3c commit 751d8a8

22 files changed

+1644
-32
lines changed

.apigentools-info

+4-4
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-11 15:05:37.258509",
8-
"spec_repo_commit": "d209cd40"
7+
"regenerated": "2025-04-14 10:36:41.339455",
8+
"spec_repo_commit": "35dd31ba"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-11 15:05:37.274982",
13-
"spec_repo_commit": "d209cd40"
12+
"regenerated": "2025-04-14 10:36:41.355204",
13+
"spec_repo_commit": "35dd31ba"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+258-3
Original file line numberDiff line numberDiff line change
@@ -21733,7 +21733,6 @@ components:
2173321733
type: array
2173421734
required:
2173521735
- sources
21736-
- processors
2173721736
- destinations
2173821737
type: object
2173921738
ObservabilityPipelineConfigDestinationItem:
@@ -21749,11 +21748,15 @@ components:
2174921748
- $ref: '#/components/schemas/ObservabilityPipelineAddFieldsProcessor'
2175021749
- $ref: '#/components/schemas/ObservabilityPipelineRemoveFieldsProcessor'
2175121750
- $ref: '#/components/schemas/ObservabilityPipelineRenameFieldsProcessor'
21751+
- $ref: '#/components/schemas/ObservabilityPipelineSampleProcessor'
21752+
- $ref: '#/components/schemas/ObservabilityPipelineParseGrokProcessor'
2175221753
ObservabilityPipelineConfigSourceItem:
2175321754
description: A data source for the pipeline.
2175421755
oneOf:
2175521756
- $ref: '#/components/schemas/ObservabilityPipelineKafkaSource'
2175621757
- $ref: '#/components/schemas/ObservabilityPipelineDatadogAgentSource'
21758+
- $ref: '#/components/schemas/ObservabilityPipelineFluentSource'
21759+
- $ref: '#/components/schemas/ObservabilityPipelineHttpServerSource'
2175721760
ObservabilityPipelineCreateRequest:
2175821761
description: Top-level schema representing a pipeline.
2175921762
properties:
@@ -21868,6 +21871,20 @@ components:
2186821871
type: string
2186921872
x-enum-varnames:
2187021873
- DATADOG_LOGS
21874+
ObservabilityPipelineDecoding:
21875+
description: The decoding format used to interpret incoming logs.
21876+
enum:
21877+
- bytes
21878+
- gelf
21879+
- json
21880+
- syslog
21881+
example: json
21882+
type: string
21883+
x-enum-varnames:
21884+
- DECODE_BYTES
21885+
- DECODE_GELF
21886+
- DECODE_JSON
21887+
- DECODE_SYSLOG
2187121888
ObservabilityPipelineFieldValue:
2187221889
description: Represents a static key-value pair used in various processors.
2187321890
properties:
@@ -21925,6 +21942,73 @@ components:
2192521942
type: string
2192621943
x-enum-varnames:
2192721944
- FILTER
21945+
ObservabilityPipelineFluentSource:
21946+
description: The `fluent` source ingests logs from a Fluentd-compatible service.
21947+
properties:
21948+
id:
21949+
description: The unique identifier for this component. Used to reference
21950+
this component in other parts of the pipeline (for example, as the `input`
21951+
to downstream components).
21952+
example: fluent-source
21953+
type: string
21954+
tls:
21955+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21956+
type:
21957+
$ref: '#/components/schemas/ObservabilityPipelineFluentSourceType'
21958+
required:
21959+
- id
21960+
- type
21961+
type: object
21962+
ObservabilityPipelineFluentSourceType:
21963+
default: fluent
21964+
description: The source type. The value should always be `fluent`.
21965+
enum:
21966+
- fluent
21967+
example: fluent
21968+
type: string
21969+
x-enum-varnames:
21970+
- FLUENT
21971+
ObservabilityPipelineHttpServerSource:
21972+
description: The `http_server` source collects logs over HTTP POST from external
21973+
services.
21974+
properties:
21975+
auth_strategy:
21976+
$ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceAuthStrategy'
21977+
decoding:
21978+
$ref: '#/components/schemas/ObservabilityPipelineDecoding'
21979+
id:
21980+
description: Unique ID for the HTTP server source.
21981+
example: http-server-source
21982+
type: string
21983+
tls:
21984+
$ref: '#/components/schemas/ObservabilityPipelineTls'
21985+
type:
21986+
$ref: '#/components/schemas/ObservabilityPipelineHttpServerSourceType'
21987+
required:
21988+
- id
21989+
- type
21990+
- auth_strategy
21991+
- decoding
21992+
type: object
21993+
ObservabilityPipelineHttpServerSourceAuthStrategy:
21994+
description: HTTP authentication method.
21995+
enum:
21996+
- none
21997+
- plain
21998+
example: plain
21999+
type: string
22000+
x-enum-varnames:
22001+
- NONE
22002+
- PLAIN
22003+
ObservabilityPipelineHttpServerSourceType:
22004+
default: http_server
22005+
description: The source type. The value should always be `http_server`.
22006+
enum:
22007+
- http_server
22008+
example: http_server
22009+
type: string
22010+
x-enum-varnames:
22011+
- HTTP_SERVER
2192822012
ObservabilityPipelineKafkaSource:
2192922013
description: The `kafka` source ingests data from Apache Kafka topics.
2193022014
properties:
@@ -21998,6 +22082,130 @@ components:
2199822082
type: string
2199922083
x-enum-varnames:
2200022084
- KAFKA
22085+
ObservabilityPipelineParseGrokProcessor:
22086+
description: The `parse_grok` processor extracts structured fields from unstructured
22087+
log messages using Grok patterns.
22088+
properties:
22089+
disable_library_rules:
22090+
default: false
22091+
description: If set to `true`, disables the default Grok rules provided
22092+
by Datadog.
22093+
example: true
22094+
type: boolean
22095+
id:
22096+
description: A unique identifier for this processor.
22097+
example: parse-grok-processor
22098+
type: string
22099+
include:
22100+
description: A Datadog search query used to determine which logs this processor
22101+
targets.
22102+
example: service:my-service
22103+
type: string
22104+
inputs:
22105+
description: A list of component IDs whose output is used as the `input`
22106+
for this component.
22107+
example:
22108+
- datadog-agent-source
22109+
items:
22110+
type: string
22111+
type: array
22112+
rules:
22113+
description: The list of Grok parsing rules. If multiple matching rules
22114+
are provided, they are evaluated in order. The first successful match
22115+
is applied.
22116+
items:
22117+
$ref: '#/components/schemas/ObservabilityPipelineParseGrokProcessorRule'
22118+
type: array
22119+
type:
22120+
$ref: '#/components/schemas/ObservabilityPipelineParseGrokProcessorType'
22121+
required:
22122+
- id
22123+
- type
22124+
- include
22125+
- inputs
22126+
- rules
22127+
type: object
22128+
ObservabilityPipelineParseGrokProcessorRule:
22129+
description: 'A Grok parsing rule used in the `parse_grok` processor. Each rule
22130+
defines how to extract structured fields
22131+
22132+
from a specific log field using Grok patterns.
22133+
22134+
'
22135+
properties:
22136+
helper_rules:
22137+
description: 'A list of helper Grok rules that can be referenced by the
22138+
parsing rules.
22139+
22140+
'
22141+
items:
22142+
$ref: '#/components/schemas/ObservabilityPipelineParseGrokProcessorRuleHelperRule'
22143+
type: array
22144+
parsing_rules:
22145+
description: 'A list of Grok parsing rules that define how to extract fields
22146+
from the source field.
22147+
22148+
Each rule must contain a name and a valid Grok pattern.
22149+
22150+
'
22151+
items:
22152+
$ref: '#/components/schemas/ObservabilityPipelineParseGrokProcessorRuleParsingRule'
22153+
type: array
22154+
source:
22155+
description: The name of the field in the log event to apply the Grok rules
22156+
to.
22157+
example: message
22158+
type: string
22159+
required:
22160+
- source
22161+
- parsing_rules
22162+
- helper_rules
22163+
type: object
22164+
ObservabilityPipelineParseGrokProcessorRuleHelperRule:
22165+
description: The helper Grok rule referenced in the parsing rules.
22166+
properties:
22167+
name:
22168+
description: The name of the helper Grok rule.
22169+
example: user
22170+
type: string
22171+
rule:
22172+
description: The definition of the helper Grok rule.
22173+
example: ' %{word:user.name}'
22174+
type: string
22175+
required:
22176+
- name
22177+
- rule
22178+
type: object
22179+
ObservabilityPipelineParseGrokProcessorRuleParsingRule:
22180+
description: 'Defines a Grok parsing rule, which extracts structured fields
22181+
from log content using named Grok patterns.
22182+
22183+
Each rule must have a unique name and a valid Datadog Grok pattern that will
22184+
be applied to the source field.
22185+
22186+
'
22187+
properties:
22188+
name:
22189+
description: The name of the rule.
22190+
example: MyParsingRule
22191+
type: string
22192+
rule:
22193+
description: The definition of the Grok rule.
22194+
example: '%{word:user} connected on %{date("MM/dd/yyyy"):date}'
22195+
type: string
22196+
required:
22197+
- name
22198+
- rule
22199+
type: object
22200+
ObservabilityPipelineParseGrokProcessorType:
22201+
default: parse_grok
22202+
description: The processor type. The value should always be `parse_grok`.
22203+
enum:
22204+
- parse_grok
22205+
example: parse_grok
22206+
type: string
22207+
x-enum-varnames:
22208+
- PARSE_GROK
2200122209
ObservabilityPipelineParseJSONProcessor:
2200222210
description: The `parse_json` processor extracts JSON from a specified field
2200322211
and flattens it into the event. This is useful when logs contain embedded
@@ -22092,8 +22300,8 @@ components:
2209222300
limit:
2209322301
$ref: '#/components/schemas/ObservabilityPipelineQuotaProcessorLimit'
2209422302
name:
22095-
description: Name for identifying the processor.
22096-
example: MyPipelineQuotaProcessor
22303+
description: Name of the quota.
22304+
example: MyQuota
2209722305
type: string
2209822306
overrides:
2209922307
description: A list of alternate quota rules that apply to specific sets
@@ -22287,6 +22495,53 @@ components:
2228722495
type: string
2228822496
x-enum-varnames:
2228922497
- RENAME_FIELDS
22498+
ObservabilityPipelineSampleProcessor:
22499+
description: The `sample` processor allows probabilistic sampling of logs at
22500+
a fixed rate.
22501+
properties:
22502+
id:
22503+
description: The unique identifier for this component. Used to reference
22504+
this component in other parts of the pipeline (for example, as the `input`
22505+
to downstream components).
22506+
example: sample-processor
22507+
type: string
22508+
include:
22509+
description: A Datadog search query used to determine which logs this processor
22510+
targets.
22511+
example: service:my-service
22512+
type: string
22513+
inputs:
22514+
description: A list of component IDs whose output is used as the `input`
22515+
for this component.
22516+
example:
22517+
- datadog-agent-source
22518+
items:
22519+
type: string
22520+
type: array
22521+
rate:
22522+
description: Number of events to sample (1 in N).
22523+
example: 10
22524+
format: int64
22525+
minimum: 1
22526+
type: integer
22527+
type:
22528+
$ref: '#/components/schemas/ObservabilityPipelineSampleProcessorType'
22529+
required:
22530+
- id
22531+
- type
22532+
- include
22533+
- inputs
22534+
- rate
22535+
type: object
22536+
ObservabilityPipelineSampleProcessorType:
22537+
default: sample
22538+
description: The processor type. The value should always be `sample`.
22539+
enum:
22540+
- sample
22541+
example: sample
22542+
type: string
22543+
x-enum-varnames:
22544+
- SAMPLE
2229022545
ObservabilityPipelineTls:
2229122546
description: Configuration for enabling TLS encryption.
2229222547
properties:

examples/v2_observability-pipelines_CreatePipeline.rs

+11-10
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,24 @@ async fn main() {
3434
)
3535
],
3636
vec![
37-
ObservabilityPipelineConfigProcessorItem::ObservabilityPipelineFilterProcessor(
37+
ObservabilityPipelineConfigSourceItem::ObservabilityPipelineDatadogAgentSource(
3838
Box::new(
39-
ObservabilityPipelineFilterProcessor::new(
40-
"filter-processor".to_string(),
41-
"service:my-service".to_string(),
42-
vec!["datadog-agent-source".to_string()],
43-
ObservabilityPipelineFilterProcessorType::FILTER,
39+
ObservabilityPipelineDatadogAgentSource::new(
40+
"datadog-agent-source".to_string(),
41+
ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
4442
),
4543
),
4644
)
4745
],
46+
).processors(
4847
vec![
49-
ObservabilityPipelineConfigSourceItem::ObservabilityPipelineDatadogAgentSource(
48+
ObservabilityPipelineConfigProcessorItem::ObservabilityPipelineFilterProcessor(
5049
Box::new(
51-
ObservabilityPipelineDatadogAgentSource::new(
52-
"datadog-agent-source".to_string(),
53-
ObservabilityPipelineDatadogAgentSourceType::DATADOG_AGENT,
50+
ObservabilityPipelineFilterProcessor::new(
51+
"filter-processor".to_string(),
52+
"service:my-service".to_string(),
53+
vec!["datadog-agent-source".to_string()],
54+
ObservabilityPipelineFilterProcessorType::FILTER,
5455
),
5556
),
5657
)

0 commit comments

Comments
 (0)