Skip to content

Commit 1d16fe5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[cloud-network-monitoring] Remove preview note + Add notifications (#3050)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f914b02 commit 1d16fe5

File tree

8 files changed

+7
-59
lines changed

8 files changed

+7
-59
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "befda92",
3-
"generated": "2025-08-06 19:12:57.307"
2+
"spec_repo_commit": "fd3370f",
3+
"generated": "2025-08-06 20:55:31.339"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57013,9 +57013,6 @@ paths:
5701357013
summary: Get all aggregated connections
5701457014
tags:
5701557015
- Cloud Network Monitoring
57016-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
57017-
57018-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5701957016
/api/v2/network/dns/aggregate:
5702057017
get:
5702157018
description: Get all aggregated DNS traffic.
@@ -57076,9 +57073,6 @@ paths:
5707657073
summary: Get all aggregated DNS traffic
5707757074
tags:
5707857075
- Cloud Network Monitoring
57079-
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
57080-
57081-
contact [Datadog support](https://docs.datadoghq.com/help/).'
5708257076
/api/v2/on-call/escalation-policies:
5708357077
post:
5708457078
description: Create a new On-Call escalation policy

examples/v2/cloud-network-monitoring/GetAggregatedConnections.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getAggregatedConnections", true);
1211
CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient);
1312

1413
try {

examples/v2/cloud-network-monitoring/GetAggregatedConnections_3059356111.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getAggregatedConnections", true);
1211
CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient);
1312

1413
try {

examples/v2/cloud-network-monitoring/GetAggregatedDns.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getAggregatedDns", true);
1211
CloudNetworkMonitoringApi apiInstance = new CloudNetworkMonitoringApi(defaultClient);
1312

1413
try {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,6 @@ public class ApiClient {
752752
put("v2.updateMonitorUserTemplate", false);
753753
put("v2.validateExistingMonitorUserTemplate", false);
754754
put("v2.validateMonitorUserTemplate", false);
755-
put("v2.getAggregatedConnections", false);
756-
put("v2.getAggregatedDns", false);
757755
put("v2.createPipeline", false);
758756
put("v2.deletePipeline", false);
759757
put("v2.getPipeline", false);

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,6 @@ public CompletableFuture<SingleAggregatedConnectionResponseArray> getAggregatedC
195195
*/
196196
public ApiResponse<SingleAggregatedConnectionResponseArray> getAggregatedConnectionsWithHttpInfo(
197197
GetAggregatedConnectionsOptionalParameters parameters) throws ApiException {
198-
// Check if unstable operation is enabled
199-
String operationId = "getAggregatedConnections";
200-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
201-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
202-
} else {
203-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
204-
}
205198
Object localVarPostBody = null;
206199
Long from = parameters.from;
207200
Long to = parameters.to;
@@ -251,17 +244,6 @@ public ApiResponse<SingleAggregatedConnectionResponseArray> getAggregatedConnect
251244
public CompletableFuture<ApiResponse<SingleAggregatedConnectionResponseArray>>
252245
getAggregatedConnectionsWithHttpInfoAsync(
253246
GetAggregatedConnectionsOptionalParameters parameters) {
254-
// Check if unstable operation is enabled
255-
String operationId = "getAggregatedConnections";
256-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
257-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
258-
} else {
259-
CompletableFuture<ApiResponse<SingleAggregatedConnectionResponseArray>> result =
260-
new CompletableFuture<>();
261-
result.completeExceptionally(
262-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
263-
return result;
264-
}
265247
Object localVarPostBody = null;
266248
Long from = parameters.from;
267249
Long to = parameters.to;
@@ -457,13 +439,6 @@ public CompletableFuture<SingleAggregatedDnsResponseArray> getAggregatedDnsAsync
457439
*/
458440
public ApiResponse<SingleAggregatedDnsResponseArray> getAggregatedDnsWithHttpInfo(
459441
GetAggregatedDnsOptionalParameters parameters) throws ApiException {
460-
// Check if unstable operation is enabled
461-
String operationId = "getAggregatedDns";
462-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
463-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
464-
} else {
465-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
466-
}
467442
Object localVarPostBody = null;
468443
Long from = parameters.from;
469444
Long to = parameters.to;
@@ -512,17 +487,6 @@ public ApiResponse<SingleAggregatedDnsResponseArray> getAggregatedDnsWithHttpInf
512487
*/
513488
public CompletableFuture<ApiResponse<SingleAggregatedDnsResponseArray>>
514489
getAggregatedDnsWithHttpInfoAsync(GetAggregatedDnsOptionalParameters parameters) {
515-
// Check if unstable operation is enabled
516-
String operationId = "getAggregatedDns";
517-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
518-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
519-
} else {
520-
CompletableFuture<ApiResponse<SingleAggregatedDnsResponseArray>> result =
521-
new CompletableFuture<>();
522-
result.completeExceptionally(
523-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
524-
return result;
525-
}
526490
Object localVarPostBody = null;
527491
Long from = parameters.from;
528492
Long to = parameters.to;

src/test/resources/com/datadog/api/client/v2/api/cloud_network_monitoring.feature

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,32 @@ Feature: Cloud Network Monitoring
1414

1515
@team:Datadog/networks
1616
Scenario: Get aggregated connections returns "OK" response
17-
Given operation "GetAggregatedConnections" enabled
18-
And new "GetAggregatedConnections" request
17+
Given new "GetAggregatedConnections" request
1918
When the request is sent
2019
Then the response status is 200 OK
2120

2221
@team:Datadog/networks
2322
Scenario: Get all aggregated DNS traffic returns "Bad Request" response
24-
Given operation "GetAggregatedDns" enabled
25-
And new "GetAggregatedDns" request
23+
Given new "GetAggregatedDns" request
2624
And request contains "group_by" parameter with value "server_ungrouped,server_service"
2725
When the request is sent
2826
Then the response status is 400 Bad Request
2927

3028
@team:Datadog/networks
3129
Scenario: Get all aggregated DNS traffic returns "OK" response
32-
Given operation "GetAggregatedDns" enabled
33-
And new "GetAggregatedDns" request
30+
Given new "GetAggregatedDns" request
3431
When the request is sent
3532
Then the response status is 200 OK
3633

3734
@skip-python @skip-ruby @team:Datadog/networks
3835
Scenario: Get all aggregated connections returns "Bad Request" response
39-
Given operation "GetAggregatedConnections" enabled
40-
And new "GetAggregatedConnections" request
36+
Given new "GetAggregatedConnections" request
4137
And request contains "limit" parameter with value 8000
4238
When the request is sent
4339
Then the response status is 400 Bad Request
4440

4541
@generated @skip @team:Datadog/networks
4642
Scenario: Get all aggregated connections returns "OK" response
47-
Given operation "GetAggregatedConnections" enabled
48-
And new "GetAggregatedConnections" request
43+
Given new "GetAggregatedConnections" request
4944
When the request is sent
5045
Then the response status is 200 OK

0 commit comments

Comments
 (0)