v1_webhooks_integration_DeleteWebhooksIntegrationCustomVariable/
v1_webhooks-integration_DeleteWebhooksIntegrationCustomVariable.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_webhooks_integration::WebhooksIntegrationAPI;
4
5#[tokio::main]
6async fn main() {
7 let webhook_custom_variable_name = std::env::var("WEBHOOK_CUSTOM_VARIABLE_NAME").unwrap();
9 let configuration = datadog::Configuration::new();
10 let api = WebhooksIntegrationAPI::with_config(configuration);
11 let resp = api
12 .delete_webhooks_integration_custom_variable(webhook_custom_variable_name.clone())
13 .await;
14 if let Ok(value) = resp {
15 println!("{:#?}", value);
16 } else {
17 println!("{:#?}", resp.unwrap_err());
18 }
19}