v2_synthetics_GetOnDemandConcurrencyCap/
v2_synthetics_GetOnDemandConcurrencyCap.rs

1// Get the on-demand concurrency cap returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_synthetics::SyntheticsAPI;
4
5#[tokio::main]
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = SyntheticsAPI::with_config(configuration);
9    let resp = api.get_on_demand_concurrency_cap().await;
10    if let Ok(value) = resp {
11        println!("{:#?}", value);
12    } else {
13        println!("{:#?}", resp.unwrap_err());
14    }
15}