-
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.
Regenerate client from commit 9896653a of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Oct 31, 2024
1 parent
570dc13
commit 7df2251
Showing
16 changed files
with
1,048 additions
and
4 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,19 @@ | ||
// Get billing dimension mapping for usage endpoints returns "OK" response | ||
use datadog_api_client::datadog; | ||
use datadog_api_client::datadogV2::api_usage_metering::GetBillingDimensionMappingOptionalParams; | ||
use datadog_api_client::datadogV2::api_usage_metering::UsageMeteringAPI; | ||
|
||
#[tokio::main] | ||
async fn main() { | ||
let mut configuration = datadog::Configuration::new(); | ||
configuration.set_unstable_operation_enabled("v2.GetBillingDimensionMapping", true); | ||
let api = UsageMeteringAPI::with_config(configuration); | ||
let resp = api | ||
.get_billing_dimension_mapping(GetBillingDimensionMappingOptionalParams::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
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
Oops, something went wrong.