v1_synthetics_GetBrowserTestLatestResults/
v1_synthetics_GetBrowserTestLatestResults.rs

1// Get a browser test's latest results summaries returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_synthetics::GetBrowserTestLatestResultsOptionalParams;
4use datadog_api_client::datadogV1::api_synthetics::SyntheticsAPI;
5
6#[tokio::main]
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = SyntheticsAPI::with_config(configuration);
10    let resp = api
11        .get_browser_test_latest_results(
12            "2yy-sem-mjh".to_string(),
13            GetBrowserTestLatestResultsOptionalParams::default(),
14        )
15        .await;
16    if let Ok(value) = resp {
17        println!("{:#?}", value);
18    } else {
19        println!("{:#?}", resp.unwrap_err());
20    }
21}