Skip to content

Commit 4762a62

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new Observability Pipelines components (#3365)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b746cb8 commit 4762a62

File tree

129 files changed

+9544
-2273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+9544
-2273
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1390 additions & 435 deletions
Large diffs are not rendered by default.

examples/v2/observability-pipelines/CreatePipeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void main(String[] args) {
4545
.type(
4646
ObservabilityPipelineDatadogLogsDestinationType
4747
.DATADOG_LOGS))))
48-
.processors(
48+
.processorGroups(
4949
Collections.singletonList(
5050
new ObservabilityPipelineConfigProcessorGroup()
5151
.enabled(true)

examples/v2/observability-pipelines/UpdatePipeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void main(String[] args) {
4747
.type(
4848
ObservabilityPipelineDatadogLogsDestinationType
4949
.DATADOG_LOGS))))
50-
.processors(
50+
.processorGroups(
5151
Collections.singletonList(
5252
new ObservabilityPipelineConfigProcessorGroup()
5353
.enabled(true)

examples/v2/observability-pipelines/ValidatePipeline.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void main(String[] args) {
4545
.type(
4646
ObservabilityPipelineDatadogLogsDestinationType
4747
.DATADOG_LOGS))))
48-
.processors(
48+
.processorGroups(
4949
Collections.singletonList(
5050
new ObservabilityPipelineConfigProcessorGroup()
5151
.enabled(true)

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,6 +868,12 @@ public class ApiClient {
868868
put("v2.updateMonitorUserTemplate", false);
869869
put("v2.validateExistingMonitorUserTemplate", false);
870870
put("v2.validateMonitorUserTemplate", false);
871+
put("v2.createPipeline", false);
872+
put("v2.deletePipeline", false);
873+
put("v2.getPipeline", false);
874+
put("v2.listPipelines", false);
875+
put("v2.updatePipeline", false);
876+
put("v2.validatePipeline", false);
871877
put("v2.listRoleTemplates", false);
872878
put("v2.createConnection", false);
873879
put("v2.deleteConnection", false);
@@ -879,12 +885,6 @@ public class ApiClient {
879885
put("v2.queryEventFilteredUsers", false);
880886
put("v2.queryUsers", false);
881887
put("v2.updateConnection", false);
882-
put("v2.createPipeline", false);
883-
put("v2.deletePipeline", false);
884-
put("v2.getPipeline", false);
885-
put("v2.listPipelines", false);
886-
put("v2.updatePipeline", false);
887-
put("v2.validatePipeline", false);
888888
put("v2.createScorecardOutcomesBatch", false);
889889
put("v2.createScorecardRule", false);
890890
put("v2.deleteScorecardRule", false);

src/main/java/com/datadog/api/client/v2/api/ObservabilityPipelinesApi.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public ApiResponse<ObservabilityPipeline> createPipelineWithHttpInfo(
111111
400, "Missing the required parameter 'body' when calling createPipeline");
112112
}
113113
// create path and map variables
114-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines";
114+
String localVarPath = "/api/v2/obs-pipelines/pipelines";
115115

116116
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
117117

@@ -166,7 +166,7 @@ public CompletableFuture<ApiResponse<ObservabilityPipeline>> createPipelineWithH
166166
return result;
167167
}
168168
// create path and map variables
169-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines";
169+
String localVarPath = "/api/v2/obs-pipelines/pipelines";
170170

171171
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
172172

@@ -259,7 +259,7 @@ public ApiResponse<Void> deletePipelineWithHttpInfo(String pipelineId) throws Ap
259259
}
260260
// create path and map variables
261261
String localVarPath =
262-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
262+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
263263
.replaceAll(
264264
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
265265

@@ -316,7 +316,7 @@ public CompletableFuture<ApiResponse<Void>> deletePipelineWithHttpInfoAsync(Stri
316316
}
317317
// create path and map variables
318318
String localVarPath =
319-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
319+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
320320
.replaceAll(
321321
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
322322

@@ -411,7 +411,7 @@ public ApiResponse<ObservabilityPipeline> getPipelineWithHttpInfo(String pipelin
411411
}
412412
// create path and map variables
413413
String localVarPath =
414-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
414+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
415415
.replaceAll(
416416
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
417417

@@ -469,7 +469,7 @@ public CompletableFuture<ApiResponse<ObservabilityPipeline>> getPipelineWithHttp
469469
}
470470
// create path and map variables
471471
String localVarPath =
472-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
472+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
473473
.replaceAll(
474474
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
475475

@@ -618,7 +618,7 @@ public ApiResponse<ListPipelinesResponse> listPipelinesWithHttpInfo(
618618
Long pageSize = parameters.pageSize;
619619
Long pageNumber = parameters.pageNumber;
620620
// create path and map variables
621-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines";
621+
String localVarPath = "/api/v2/obs-pipelines/pipelines";
622622

623623
List<Pair> localVarQueryParams = new ArrayList<Pair>();
624624
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
@@ -670,7 +670,7 @@ public CompletableFuture<ApiResponse<ListPipelinesResponse>> listPipelinesWithHt
670670
Long pageSize = parameters.pageSize;
671671
Long pageNumber = parameters.pageNumber;
672672
// create path and map variables
673-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines";
673+
String localVarPath = "/api/v2/obs-pipelines/pipelines";
674674

675675
List<Pair> localVarQueryParams = new ArrayList<Pair>();
676676
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
@@ -781,7 +781,7 @@ public ApiResponse<ObservabilityPipeline> updatePipelineWithHttpInfo(
781781
}
782782
// create path and map variables
783783
String localVarPath =
784-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
784+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
785785
.replaceAll(
786786
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
787787

@@ -849,7 +849,7 @@ public CompletableFuture<ApiResponse<ObservabilityPipeline>> updatePipelineWithH
849849
}
850850
// create path and map variables
851851
String localVarPath =
852-
"/api/v2/remote_config/products/obs_pipelines/pipelines/{pipeline_id}"
852+
"/api/v2/obs-pipelines/pipelines/{pipeline_id}"
853853
.replaceAll(
854854
"\\{" + "pipeline_id" + "\\}", apiClient.escapeString(pipelineId.toString()));
855855

@@ -946,7 +946,7 @@ public ApiResponse<ValidationResponse> validatePipelineWithHttpInfo(
946946
400, "Missing the required parameter 'body' when calling validatePipeline");
947947
}
948948
// create path and map variables
949-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines/validate";
949+
String localVarPath = "/api/v2/obs-pipelines/pipelines/validate";
950950

951951
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
952952

@@ -1001,7 +1001,7 @@ public CompletableFuture<ApiResponse<ValidationResponse>> validatePipelineWithHt
10011001
return result;
10021002
}
10031003
// create path and map variables
1004-
String localVarPath = "/api/v2/remote_config/products/obs_pipelines/pipelines/validate";
1004+
String localVarPath = "/api/v2/obs-pipelines/pipelines/validate";
10051005

10061006
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
10071007

src/main/java/com/datadog/api/client/v2/model/AzureStorageDestination.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/** The <code>azure_storage</code> destination forwards logs to an Azure Blob Storage container. */
22+
/**
23+
* The <code>azure_storage</code> destination forwards logs to an Azure Blob Storage container.
24+
*
25+
* <p><strong>Supported pipeline types:</strong> logs
26+
*/
2327
@JsonPropertyOrder({
2428
AzureStorageDestination.JSON_PROPERTY_BLOB_PREFIX,
2529
AzureStorageDestination.JSON_PROPERTY_CONTAINER_NAME,

src/main/java/com/datadog/api/client/v2/model/MicrosoftSentinelDestination.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/** The <code>microsoft_sentinel</code> destination forwards logs to Microsoft Sentinel. */
22+
/**
23+
* The <code>microsoft_sentinel</code> destination forwards logs to Microsoft Sentinel.
24+
*
25+
* <p><strong>Supported pipeline types:</strong> logs
26+
*/
2327
@JsonPropertyOrder({
2428
MicrosoftSentinelDestination.JSON_PROPERTY_CLIENT_ID,
2529
MicrosoftSentinelDestination.JSON_PROPERTY_DCR_IMMUTABLE_ID,

src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAddEnvVarsProcessor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/** The <code>add_env_vars</code> processor adds environment variable values to log events. */
22+
/**
23+
* The <code>add_env_vars</code> processor adds environment variable values to log events.
24+
*
25+
* <p><strong>Supported pipeline types:</strong> logs
26+
*/
2327
@JsonPropertyOrder({
2428
ObservabilityPipelineAddEnvVarsProcessor.JSON_PROPERTY_DISPLAY_NAME,
2529
ObservabilityPipelineAddEnvVarsProcessor.JSON_PROPERTY_ENABLED,
@@ -97,7 +101,7 @@ public ObservabilityPipelineAddEnvVarsProcessor enabled(Boolean enabled) {
97101
}
98102

99103
/**
100-
* Whether this processor is enabled.
104+
* Indicates whether the processor is enabled.
101105
*
102106
* @return enabled
103107
*/

src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineAddFieldsProcessor.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/** The <code>add_fields</code> processor adds static key-value fields to logs. */
22+
/**
23+
* The <code>add_fields</code> processor adds static key-value fields to logs.
24+
*
25+
* <p><strong>Supported pipeline types:</strong> logs
26+
*/
2327
@JsonPropertyOrder({
2428
ObservabilityPipelineAddFieldsProcessor.JSON_PROPERTY_DISPLAY_NAME,
2529
ObservabilityPipelineAddFieldsProcessor.JSON_PROPERTY_ENABLED,
@@ -97,7 +101,7 @@ public ObservabilityPipelineAddFieldsProcessor enabled(Boolean enabled) {
97101
}
98102

99103
/**
100-
* Whether this processor is enabled.
104+
* Indicates whether the processor is enabled.
101105
*
102106
* @return enabled
103107
*/
@@ -149,8 +153,8 @@ public ObservabilityPipelineAddFieldsProcessor id(String id) {
149153
}
150154

151155
/**
152-
* The unique identifier for this component. Used to reference this component in other parts of
153-
* the pipeline (for example, as the <code>input</code> to downstream components).
156+
* The unique identifier for this component. Used in other parts of the pipeline to reference this
157+
* component (for example, as the <code>input</code> to downstream components).
154158
*
155159
* @return id
156160
*/

0 commit comments

Comments
 (0)