v2_monitors_GetMonitorNotificationRules/
v2_monitors_GetMonitorNotificationRules.rs

1// Get all monitor notification rules returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_monitors::GetMonitorNotificationRulesOptionalParams;
4use datadog_api_client::datadogV2::api_monitors::MonitorsAPI;
5
6#[tokio::main]
7async fn main() {
8    let configuration = datadog::Configuration::new();
9    let api = MonitorsAPI::with_config(configuration);
10    let resp = api
11        .get_monitor_notification_rules(GetMonitorNotificationRulesOptionalParams::default())
12        .await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}