-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master into datadog-api-spec/test/oliver/add-draft-apps.yaml
- Loading branch information
Showing
23 changed files
with
1,841 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Get all CSM Agents returns "OK" response | ||
use datadog_api_client::datadog; | ||
use datadog_api_client::datadogV2::api_csm_agents::CSMAgentsAPI; | ||
use datadog_api_client::datadogV2::api_csm_agents::ListAllCSMAgentsOptionalParams; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
let configuration = datadog::Configuration::new(); | ||
let api = CSMAgentsAPI::with_config(configuration); | ||
let resp = api | ||
.list_all_csm_agents(ListAllCSMAgentsOptionalParams::default()) | ||
.await; | ||
if let Ok(value) = resp { | ||
println!("{:#?}", value); | ||
} else { | ||
println!("{:#?}", resp.unwrap_err()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Get all CSM Serverless Agents returns "OK" response | ||
use datadog_api_client::datadog; | ||
use datadog_api_client::datadogV2::api_csm_agents::CSMAgentsAPI; | ||
use datadog_api_client::datadogV2::api_csm_agents::ListAllCSMServerlessAgentsOptionalParams; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
let configuration = datadog::Configuration::new(); | ||
let api = CSMAgentsAPI::with_config(configuration); | ||
let resp = api | ||
.list_all_csm_serverless_agents(ListAllCSMServerlessAgentsOptionalParams::default()) | ||
.await; | ||
if let Ok(value) = resp { | ||
println!("{:#?}", value); | ||
} else { | ||
println!("{:#?}", resp.unwrap_err()); | ||
} | ||
} |
Oops, something went wrong.