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 8, 2024
1 parent 27c5c93 commit a2c8a6c
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_CancelHistoricalJob.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.CancelHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.CancelHistoricalJob", true);
let api = SecurityMonitoringAPI::with_config(configuration);
let resp = api
.cancel_historical_job(historical_job_data_id.clone())
Expand Down
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.RunHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", 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

0 comments on commit a2c8a6c

Please sign in to comment.