Skip to content

[cloud-network-monitoring] Remove preview note and adjust limit test #788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "2ffdc3f",
"generated": "2025-07-16 19:19:08.488"
"spec_repo_commit": "958ae27",
"generated": "2025-07-16 20:20:34.861"
}
3 changes: 0 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54459,9 +54459,6 @@ paths:
summary: Get all aggregated connections
tags:
- Cloud Network Monitoring
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,

contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/on-call/escalation-policies:
post:
description: Create a new On-Call escalation policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use datadog_api_client::datadogV2::api_cloud_network_monitoring::GetAggregatedCo

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetAggregatedConnections", true);
let configuration = datadog::Configuration::new();
let api = CloudNetworkMonitoringAPI::with_config(configuration);
let resp = api
.get_aggregated_connections(GetAggregatedConnectionsOptionalParams::default())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use datadog_api_client::datadogV2::api_cloud_network_monitoring::GetAggregatedCo

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetAggregatedConnections", true);
let configuration = datadog::Configuration::new();
let api = CloudNetworkMonitoringAPI::with_config(configuration);
let resp = api
.get_aggregated_connections(GetAggregatedConnectionsOptionalParams::default())
Expand Down
1 change: 0 additions & 1 deletion src/datadog/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ impl Default for Configuration {
false,
),
("v2.validate_monitor_user_template".to_owned(), false),
("v2.get_aggregated_connections".to_owned(), false),
("v2.create_pipeline".to_owned(), false),
("v2.delete_pipeline".to_owned(), false),
("v2.get_pipeline".to_owned(), false),
Expand Down
9 changes: 0 additions & 9 deletions src/datadogV2/api/api_cloud_network_monitoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2019-Present Datadog, Inc.
use crate::datadog;
use log::warn;
use reqwest::header::{HeaderMap, HeaderValue};
use serde::{Deserialize, Serialize};

Expand Down Expand Up @@ -155,14 +154,6 @@ impl CloudNetworkMonitoringAPI {
> {
let local_configuration = &self.config;
let operation_id = "v2.get_aggregated_connections";
if local_configuration.is_unstable_operation_enabled(operation_id) {
warn!("Using unstable operation {operation_id}");
} else {
let local_error = datadog::UnstableOperationDisabledError {
msg: "Operation 'v2.get_aggregated_connections' is not enabled".to_string(),
};
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
}

// unbox and build optional parameters
let from = params.from;
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-03-31T18:18:50.770Z
2025-07-15T18:37:09.589Z
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"method": "get",
"uri": "https://api.datadoghq.com/api/v2/network/connections/aggregate?limit=6000"
"uri": "https://api.datadoghq.com/api/v2/network/connections/aggregate?limit=8000"
},
"response": {
"body": {
Expand All @@ -26,7 +26,7 @@
"message": "Bad Request"
}
},
"recorded_at": "Mon, 31 Mar 2025 18:18:50 GMT"
"recorded_at": "Tue, 15 Jul 2025 18:37:09 GMT"
}
],
"recorded_with": "VCR 6.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Feature: Cloud Network Monitoring
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "CloudNetworkMonitoring" API
And operation "GetAggregatedConnections" enabled
And new "GetAggregatedConnections" request

@team:Datadog/networks
Expand All @@ -19,7 +18,7 @@ Feature: Cloud Network Monitoring

@skip-python @skip-ruby @team:Datadog/networks
Scenario: Get all aggregated connections returns "Bad Request" response
Given request contains "limit" parameter with value 6000
Given request contains "limit" parameter with value 8000
When the request is sent
Then the response status is 400 Bad Request

Expand Down
Loading