v1_pagerduty_integration_CreatePagerDutyIntegrationService/
v1_pagerduty-integration_CreatePagerDutyIntegrationService.rs

1// Create a new service object returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_pager_duty_integration::PagerDutyIntegrationAPI;
4use datadog_api_client::datadogV1::model::PagerDutyService;
5
6#[tokio::main]
7async fn main() {
8    let body = PagerDutyService::new("".to_string(), "".to_string());
9    let configuration = datadog::Configuration::new();
10    let api = PagerDutyIntegrationAPI::with_config(configuration);
11    let resp = api.create_pager_duty_integration_service(body).await;
12    if let Ok(value) = resp {
13        println!("{:#?}", value);
14    } else {
15        println!("{:#?}", resp.unwrap_err());
16    }
17}