Skip to content

Commit d70b186

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add fleet tracers, clusters, and instrumented pods endpoints (#1475)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7e38b0d commit d70b186

25 files changed

Lines changed: 3967 additions & 66 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 616 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// List tracers for a specific agent returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4+
use datadog_api_client::datadogV2::api_fleet_automation::ListFleetAgentTracersOptionalParams;
5+
6+
#[tokio::main]
7+
async fn main() {
8+
let mut configuration = datadog::Configuration::new();
9+
configuration.set_unstable_operation_enabled("v2.ListFleetAgentTracers", true);
10+
let api = FleetAutomationAPI::with_config(configuration);
11+
let resp = api
12+
.list_fleet_agent_tracers(
13+
"agent_key".to_string(),
14+
ListFleetAgentTracersOptionalParams::default(),
15+
)
16+
.await;
17+
if let Ok(value) = resp {
18+
println!("{:#?}", value);
19+
} else {
20+
println!("{:#?}", resp.unwrap_err());
21+
}
22+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// List all fleet clusters returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4+
use datadog_api_client::datadogV2::api_fleet_automation::ListFleetClustersOptionalParams;
5+
6+
#[tokio::main]
7+
async fn main() {
8+
let mut configuration = datadog::Configuration::new();
9+
configuration.set_unstable_operation_enabled("v2.ListFleetClusters", true);
10+
let api = FleetAutomationAPI::with_config(configuration);
11+
let resp = api
12+
.list_fleet_clusters(ListFleetClustersOptionalParams::default())
13+
.await;
14+
if let Ok(value) = resp {
15+
println!("{:#?}", value);
16+
} else {
17+
println!("{:#?}", resp.unwrap_err());
18+
}
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// List instrumented pods for a cluster returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.ListFleetInstrumentedPods", true);
9+
let api = FleetAutomationAPI::with_config(configuration);
10+
let resp = api
11+
.list_fleet_instrumented_pods("cluster_name".to_string())
12+
.await;
13+
if let Ok(value) = resp {
14+
println!("{:#?}", value);
15+
} else {
16+
println!("{:#?}", resp.unwrap_err());
17+
}
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// List all fleet tracers returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_fleet_automation::FleetAutomationAPI;
4+
use datadog_api_client::datadogV2::api_fleet_automation::ListFleetTracersOptionalParams;
5+
6+
#[tokio::main]
7+
async fn main() {
8+
let mut configuration = datadog::Configuration::new();
9+
configuration.set_unstable_operation_enabled("v2.ListFleetTracers", true);
10+
let api = FleetAutomationAPI::with_config(configuration);
11+
let resp = api
12+
.list_fleet_tracers(ListFleetTracersOptionalParams::default())
13+
.await;
14+
if let Ok(value) = resp {
15+
println!("{:#?}", value);
16+
} else {
17+
println!("{:#?}", resp.unwrap_err());
18+
}
19+
}

src/datadog/configuration.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,13 @@ impl Default for Configuration {
131131
("v2.get_fleet_deployment".to_owned(), false),
132132
("v2.get_fleet_schedule".to_owned(), false),
133133
("v2.list_fleet_agents".to_owned(), false),
134+
("v2.list_fleet_agent_tracers".to_owned(), false),
134135
("v2.list_fleet_agent_versions".to_owned(), false),
136+
("v2.list_fleet_clusters".to_owned(), false),
135137
("v2.list_fleet_deployments".to_owned(), false),
138+
("v2.list_fleet_instrumented_pods".to_owned(), false),
136139
("v2.list_fleet_schedules".to_owned(), false),
140+
("v2.list_fleet_tracers".to_owned(), false),
137141
("v2.trigger_fleet_schedule".to_owned(), false),
138142
("v2.update_fleet_schedule".to_owned(), false),
139143
("v2.create_open_api".to_owned(), false),

0 commit comments

Comments
 (0)