Skip to content

Commit 03e9f4f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5a30c15 of spec repo
1 parent b25c67e commit 03e9f4f

27 files changed

+819
-659
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 161 additions & 168 deletions
Large diffs are not rendered by default.

examples/v2/observability-pipelines/CreatePipeline.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,27 @@
1414
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
1515
id: "datadog-logs-destination",
1616
inputs: [
17-
"filter-processor",
17+
"my-processor-group",
1818
],
1919
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
2020
}),
2121
],
2222
processors: [
23-
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
24-
id: "filter-processor",
23+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
24+
enabled: true,
25+
id: "my-processor-group",
2526
include: "service:my-service",
2627
inputs: [
2728
"datadog-agent-source",
2829
],
29-
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
30+
processors: [
31+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
32+
enabled: true,
33+
id: "filter-processor",
34+
include: "status:error",
35+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
36+
}),
37+
],
3038
}),
3139
],
3240
sources: [

examples/v2/observability-pipelines/UpdatePipeline.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,27 @@
1717
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
1818
id: "updated-datadog-logs-destination-id",
1919
inputs: [
20-
"filter-processor",
20+
"my-processor-group",
2121
],
2222
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
2323
}),
2424
],
2525
processors: [
26-
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
27-
id: "filter-processor",
26+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
27+
enabled: true,
28+
id: "my-processor-group",
2829
include: "service:my-service",
2930
inputs: [
3031
"datadog-agent-source",
3132
],
32-
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
33+
processors: [
34+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
35+
enabled: true,
36+
id: "filter-processor",
37+
include: "status:error",
38+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
39+
}),
40+
],
3341
}),
3442
],
3543
sources: [

examples/v2/observability-pipelines/ValidatePipeline.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,27 @@
1414
DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestination.new({
1515
id: "datadog-logs-destination",
1616
inputs: [
17-
"filter-processor",
17+
"my-processor-group",
1818
],
1919
type: DatadogAPIClient::V2::ObservabilityPipelineDatadogLogsDestinationType::DATADOG_LOGS,
2020
}),
2121
],
2222
processors: [
23-
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
24-
id: "filter-processor",
23+
DatadogAPIClient::V2::ObservabilityPipelineConfigProcessorGroup.new({
24+
enabled: true,
25+
id: "my-processor-group",
2526
include: "service:my-service",
2627
inputs: [
2728
"datadog-agent-source",
2829
],
29-
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
30+
processors: [
31+
DatadogAPIClient::V2::ObservabilityPipelineFilterProcessor.new({
32+
enabled: true,
33+
id: "filter-processor",
34+
include: "status:error",
35+
type: DatadogAPIClient::V2::ObservabilityPipelineFilterProcessorType::FILTER,
36+
}),
37+
],
3038
}),
3139
],
3240
sources: [

features/v2/observability_pipelines.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ Feature: Observability Pipelines
1212
Scenario: Create a new pipeline returns "Bad Request" response
1313
Given operation "CreatePipeline" enabled
1414
And new "CreatePipeline" request
15-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "unknown-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
15+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "unknown-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
1616
When the request is sent
1717
Then the response status is 400 Bad Request
1818

1919
@generated @skip @team:DataDog/observability-pipelines
2020
Scenario: Create a new pipeline returns "Conflict" response
2121
Given operation "CreatePipeline" enabled
2222
And new "CreatePipeline" request
23-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
23+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
2424
When the request is sent
2525
Then the response status is 409 Conflict
2626

2727
@team:DataDog/observability-pipelines
2828
Scenario: Create a new pipeline returns "OK" response
2929
Given operation "CreatePipeline" enabled
3030
And new "CreatePipeline" request
31-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
31+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
3232
When the request is sent
3333
Then the response status is 201 OK
3434
And the response "data" has field "id"
@@ -106,7 +106,7 @@ Feature: Observability Pipelines
106106
And new "UpdatePipeline" request
107107
And there is a valid "pipeline" in the system
108108
And request contains "pipeline_id" parameter from "pipeline.data.id"
109-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "unknown-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
109+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "unknown-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
110110
When the request is sent
111111
Then the response status is 400 Bad Request
112112

@@ -115,7 +115,7 @@ Feature: Observability Pipelines
115115
Given operation "UpdatePipeline" enabled
116116
And new "UpdatePipeline" request
117117
And request contains "pipeline_id" parameter from "REPLACE.ME"
118-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
118+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
119119
When the request is sent
120120
Then the response status is 409 Conflict
121121

@@ -124,7 +124,7 @@ Feature: Observability Pipelines
124124
Given operation "UpdatePipeline" enabled
125125
And new "UpdatePipeline" request
126126
And request contains "pipeline_id" parameter with value "3fa85f64-5717-4562-b3fc-2c963f66afa6"
127-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
127+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
128128
When the request is sent
129129
Then the response status is 404 Not Found
130130

@@ -134,7 +134,7 @@ Feature: Observability Pipelines
134134
And there is a valid "pipeline" in the system
135135
And new "UpdatePipeline" request
136136
And request contains "pipeline_id" parameter from "pipeline.data.id"
137-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "updated-datadog-logs-destination-id", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Updated Pipeline Name"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
137+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "updated-datadog-logs-destination-id", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Updated Pipeline Name"}, "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "type": "pipelines"}}
138138
When the request is sent
139139
Then the response status is 200 OK
140140
And the response "data" has field "id"
@@ -149,7 +149,7 @@ Feature: Observability Pipelines
149149
Scenario: Validate an observability pipeline returns "Bad Request" response
150150
Given operation "ValidatePipeline" enabled
151151
And new "ValidatePipeline" request
152-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
152+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
153153
When the request is sent
154154
Then the response status is 400 Bad Request
155155
And the response "errors[0].title" is equal to "Field 'include' is required"
@@ -161,7 +161,7 @@ Feature: Observability Pipelines
161161
Scenario: Validate an observability pipeline returns "OK" response
162162
Given operation "ValidatePipeline" enabled
163163
And new "ValidatePipeline" request
164-
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["filter-processor"], "type": "datadog_logs"}], "processors": [{"id": "filter-processor", "include": "service:my-service", "inputs": ["datadog-agent-source"], "type": "filter"}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
164+
And body with value {"data": {"attributes": {"config": {"destinations": [{"id": "datadog-logs-destination", "inputs": ["my-processor-group"], "type": "datadog_logs"}], "processors": [{"enabled": true, "id": "my-processor-group", "include": "service:my-service", "inputs": ["datadog-agent-source"], "processors": [{"enabled": true, "id": "filter-processor", "include": "status:error", "type": "filter"}]}], "sources": [{"id": "datadog-agent-source", "type": "datadog_agent"}]}, "name": "Main Observability Pipeline"}, "type": "pipelines"}}
165165
When the request is sent
166166
Then the response status is 200 OK
167167
And the response "errors" has length 0

lib/datadog_api_client/inflector.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3056,6 +3056,7 @@ def overrides
30563056
"v2.observability_pipeline_aws_auth" => "ObservabilityPipelineAwsAuth",
30573057
"v2.observability_pipeline_config" => "ObservabilityPipelineConfig",
30583058
"v2.observability_pipeline_config_destination_item" => "ObservabilityPipelineConfigDestinationItem",
3059+
"v2.observability_pipeline_config_processor_group" => "ObservabilityPipelineConfigProcessorGroup",
30593060
"v2.observability_pipeline_config_processor_item" => "ObservabilityPipelineConfigProcessorItem",
30603061
"v2.observability_pipeline_config_source_item" => "ObservabilityPipelineConfigSourceItem",
30613062
"v2.observability_pipeline_crowd_strike_next_gen_siem_destination" => "ObservabilityPipelineCrowdStrikeNextGenSiemDestination",

0 commit comments

Comments
 (0)