v1_webhooks_integration_CreateWebhooksIntegrationCustomVariable/
v1_webhooks-integration_CreateWebhooksIntegrationCustomVariable.rs1use datadog_api_client::datadog;
3use datadog_api_client::datadogV1::api_webhooks_integration::WebhooksIntegrationAPI;
4use datadog_api_client::datadogV1::model::WebhooksIntegrationCustomVariable;
5
6#[tokio::main]
7async fn main() {
8 let body = WebhooksIntegrationCustomVariable::new(
9 true,
10 "EXAMPLEWEBHOOKSINTEGRATION".to_string(),
11 "CUSTOM_VARIABLE_VALUE".to_string(),
12 );
13 let configuration = datadog::Configuration::new();
14 let api = WebhooksIntegrationAPI::with_config(configuration);
15 let resp = api.create_webhooks_integration_custom_variable(body).await;
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21}