Skip to content
Merged
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
578 changes: 578 additions & 0 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions examples/v2_apm-trace_GetPrunedTraceByID.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Get a pruned trace by ID returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_apm_trace::APMTraceAPI;
use datadog_api_client::datadogV2::api_apm_trace::GetPrunedTraceByIDOptionalParams;

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetPrunedTraceByID", true);
let api = APMTraceAPI::with_config(configuration);
let resp = api
.get_pruned_trace_by_id(
"trace_id".to_string(),
GetPrunedTraceByIDOptionalParams::default(),
)
.await;
if let Ok(value) = resp {
println!("{:#?}", value);
} else {
println!("{:#?}", resp.unwrap_err());
}
}
22 changes: 22 additions & 0 deletions examples/v2_apm-trace_GetTraceByID.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Get a trace by ID returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_apm_trace::APMTraceAPI;
use datadog_api_client::datadogV2::api_apm_trace::GetTraceByIDOptionalParams;

#[tokio::main]
async fn main() {
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetTraceByID", true);
let api = APMTraceAPI::with_config(configuration);
let resp = api
.get_trace_by_id(
"trace_id".to_string(),
GetTraceByIDOptionalParams::default(),
)
.await;
if let Ok(value) = resp {
println!("{:#?}", value);
} else {
println!("{:#?}", resp.unwrap_err());
}
}
2 changes: 2 additions & 0 deletions src/datadog/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ impl Default for Configuration {
("v2.query_event_filtered_users".to_owned(), false),
("v2.query_users".to_owned(), false),
("v2.update_connection".to_owned(), false),
("v2.get_pruned_trace_by_id".to_owned(), false),
("v2.get_trace_by_id".to_owned(), false),
("v2.create_scorecard_outcomes_batch".to_owned(), false),
("v2.list_entity_risk_scores".to_owned(), false),
("v2.create_incident_service".to_owned(), false),
Expand Down
Loading
Loading