v1_usage_metering_GetSpecifiedMonthlyCustomReports/
v1_usage-metering_GetSpecifiedMonthlyCustomReports.rs

1// Get specified monthly custom reports returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_usage_metering::UsageMeteringAPI;
4
5#[tokio::main]
6async fn main() {
7    let configuration = datadog::Configuration::new();
8    let api = UsageMeteringAPI::with_config(configuration);
9    let resp = api
10        .get_specified_monthly_custom_reports("2021-05-01".to_string())
11        .await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}