Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Nov 11, 2024
1 parent 90f88b0 commit 7fd4928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/v2_security-monitoring_GetHistoricalJob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ async fn main() {
// there is a valid "historical_job" in the system
let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap();
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true);
let api = SecurityMonitoringAPI::with_config(configuration);
let resp = api.get_historical_job(historical_job_data_id.clone()).await;
if let Ok(value) = resp {
Expand Down
2 changes: 1 addition & 1 deletion examples/v2_security-monitoring_ListHistoricalJobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use datadog_api_client::datadogV2::api_security_monitoring::SecurityMonitoringAP
async fn main() {
// there is a valid "historical_job" in the system
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.ListHistoricalJobs", true);
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true);
let api = SecurityMonitoringAPI::with_config(configuration);
let resp = api
.list_historical_jobs(
Expand Down

0 comments on commit 7fd4928

Please sign in to comment.