v2_synthetics_SetOnDemandConcurrencyCap/
v2_synthetics_SetOnDemandConcurrencyCap.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_synthetics::SyntheticsAPI;
4use datadog_api_client::datadogV2::model::OnDemandConcurrencyCapAttributes;
5
6#[tokio::main]
7async fn main() {
8 let body = OnDemandConcurrencyCapAttributes::new().on_demand_concurrency_cap(20.0 as f64);
9 let configuration = datadog::Configuration::new();
10 let api = SyntheticsAPI::with_config(configuration);
11 let resp = api.set_on_demand_concurrency_cap(body).await;
12 if let Ok(value) = resp {
13 println!("{:#?}", value);
14 } else {
15 println!("{:#?}", resp.unwrap_err());
16 }
17}