@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WebhooksIntegrationApi extends Object
| Constructor and Description |
|---|
WebhooksIntegrationApi() |
WebhooksIntegrationApi(ApiClient apiClient) |
public WebhooksIntegrationApi()
public WebhooksIntegrationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic WebhooksIntegration createWebhooksIntegration(WebhooksIntegration body) throws ApiException
See createWebhooksIntegrationWithHttpInfo(com.datadog.api.client.v1.model.WebhooksIntegration).
body - Create a webhooks integration request body. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegration> createWebhooksIntegrationAsync(WebhooksIntegration body)
See createWebhooksIntegrationWithHttpInfoAsync(com.datadog.api.client.v1.model.WebhooksIntegration).
body - Create a webhooks integration request body. (required)public ApiResponse<WebhooksIntegration> createWebhooksIntegrationWithHttpInfo(WebhooksIntegration body) throws ApiException
<WEBHOOK_NAME>.body - Create a webhooks integration request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegration>> createWebhooksIntegrationWithHttpInfoAsync(WebhooksIntegration body)
See createWebhooksIntegrationWithHttpInfo(com.datadog.api.client.v1.model.WebhooksIntegration).
body - Create a webhooks integration request body. (required)public WebhooksIntegrationCustomVariableResponse createWebhooksIntegrationCustomVariable(WebhooksIntegrationCustomVariable body) throws ApiException
body - Define a custom variable request body. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegrationCustomVariableResponse> createWebhooksIntegrationCustomVariableAsync(WebhooksIntegrationCustomVariable body)
body - Define a custom variable request body. (required)public ApiResponse<WebhooksIntegrationCustomVariableResponse> createWebhooksIntegrationCustomVariableWithHttpInfo(WebhooksIntegrationCustomVariable body) throws ApiException
<CUSTOM_VARIABLE_NAME>.body - Define a custom variable request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> createWebhooksIntegrationCustomVariableWithHttpInfoAsync(WebhooksIntegrationCustomVariable body)
body - Define a custom variable request body. (required)public void deleteWebhooksIntegration(String webhookName) throws ApiException
See deleteWebhooksIntegrationWithHttpInfo(java.lang.String).
webhookName - The name of the webhook. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteWebhooksIntegrationAsync(String webhookName)
See deleteWebhooksIntegrationWithHttpInfoAsync(java.lang.String).
webhookName - The name of the webhook. (required)public ApiResponse<Void> deleteWebhooksIntegrationWithHttpInfo(String webhookName) throws ApiException
<WEBHOOK NAME>.webhookName - The name of the webhook. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteWebhooksIntegrationWithHttpInfoAsync(String webhookName)
See deleteWebhooksIntegrationWithHttpInfo(java.lang.String).
webhookName - The name of the webhook. (required)public void deleteWebhooksIntegrationCustomVariable(String customVariableName) throws ApiException
See deleteWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).
customVariableName - The name of the custom variable. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteWebhooksIntegrationCustomVariableAsync(String customVariableName)
See deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync(java.lang.String).
customVariableName - The name of the custom variable. (required)public ApiResponse<Void> deleteWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) throws ApiException
<CUSTOM_VARIABLE_NAME>.customVariableName - The name of the custom variable. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName)
See deleteWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).
customVariableName - The name of the custom variable. (required)public WebhooksIntegration getWebhooksIntegration(String webhookName) throws ApiException
webhookName - The name of the webhook. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegration> getWebhooksIntegrationAsync(String webhookName)
See getWebhooksIntegrationWithHttpInfoAsync(java.lang.String).
webhookName - The name of the webhook. (required)public ApiResponse<WebhooksIntegration> getWebhooksIntegrationWithHttpInfo(String webhookName) throws ApiException
<WEBHOOK_NAME>.webhookName - The name of the webhook. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegration>> getWebhooksIntegrationWithHttpInfoAsync(String webhookName)
webhookName - The name of the webhook. (required)public WebhooksIntegrationCustomVariableResponse getWebhooksIntegrationCustomVariable(String customVariableName) throws ApiException
See getWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).
customVariableName - The name of the custom variable. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegrationCustomVariableResponse> getWebhooksIntegrationCustomVariableAsync(String customVariableName)
See getWebhooksIntegrationCustomVariableWithHttpInfoAsync(java.lang.String).
customVariableName - The name of the custom variable. (required)public ApiResponse<WebhooksIntegrationCustomVariableResponse> getWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) throws ApiException
<CUSTOM_VARIABLE_NAME>
.
If the custom variable is secret, the value does not return in the response payload.
customVariableName - The name of the custom variable. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> getWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName)
See getWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).
customVariableName - The name of the custom variable. (required)public WebhooksIntegration updateWebhooksIntegration(String webhookName, WebhooksIntegrationUpdateRequest body) throws ApiException
webhookName - The name of the webhook. (required)body - Update an existing Datadog-Webhooks integration. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegration> updateWebhooksIntegrationAsync(String webhookName, WebhooksIntegrationUpdateRequest body)
webhookName - The name of the webhook. (required)body - Update an existing Datadog-Webhooks integration. (required)public ApiResponse<WebhooksIntegration> updateWebhooksIntegrationWithHttpInfo(String webhookName, WebhooksIntegrationUpdateRequest body) throws ApiException
<WEBHOOK_NAME>.webhookName - The name of the webhook. (required)body - Update an existing Datadog-Webhooks integration. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegration>> updateWebhooksIntegrationWithHttpInfoAsync(String webhookName, WebhooksIntegrationUpdateRequest body)
webhookName - The name of the webhook. (required)body - Update an existing Datadog-Webhooks integration. (required)public WebhooksIntegrationCustomVariableResponse updateWebhooksIntegrationCustomVariable(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) throws ApiException
customVariableName - The name of the custom variable. (required)body - Update an existing custom variable request body. (required)ApiException - if fails to make API callpublic CompletableFuture<WebhooksIntegrationCustomVariableResponse> updateWebhooksIntegrationCustomVariableAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body)
customVariableName - The name of the custom variable. (required)body - Update an existing custom variable request body. (required)public ApiResponse<WebhooksIntegrationCustomVariableResponse> updateWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) throws ApiException
<CUSTOM_VARIABLE_NAME>.customVariableName - The name of the custom variable. (required)body - Update an existing custom variable request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> updateWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body)
customVariableName - The name of the custom variable. (required)body - Update an existing custom variable request body. (required)Copyright © 2024. All rights reserved.