v1_synthetics_ListTests/
v1_synthetics_ListTests.rs

1// Get the list of all Synthetic tests returns "OK - Returns the list of all
2// Synthetic tests." response
3use datadog_api_client::datadog;
4use datadog_api_client::datadogV1::api_synthetics::ListTestsOptionalParams;
5use datadog_api_client::datadogV1::api_synthetics::SyntheticsAPI;
6
7#[tokio::main]
8async fn main() {
9    let configuration = datadog::Configuration::new();
10    let api = SyntheticsAPI::with_config(configuration);
11    let resp = api.list_tests(ListTestsOptionalParams::default()).await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}