Class WebhooksIntegrationApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a webhooks integration.Create a webhooks integration.Create a custom variable.Create a custom variable.Creates an endpoint with the name<CUSTOM_VARIABLE_NAME>.Create a custom variable.Creates an endpoint with the name<WEBHOOK_NAME>.Create a webhooks integration.voiddeleteWebhooksIntegration(String webhookName) Delete a webhook.deleteWebhooksIntegrationAsync(String webhookName) Delete a webhook.voiddeleteWebhooksIntegrationCustomVariable(String customVariableName) Delete a custom variable.deleteWebhooksIntegrationCustomVariableAsync(String customVariableName) Delete a custom variable.deleteWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) Deletes the endpoint with the name<CUSTOM_VARIABLE_NAME>.deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName) Delete a custom variable.deleteWebhooksIntegrationWithHttpInfo(String webhookName) Deletes the endpoint with the name<WEBHOOK NAME>.deleteWebhooksIntegrationWithHttpInfoAsync(String webhookName) Delete a webhook.Get the API client.getWebhooksIntegration(String webhookName) Get a webhook integration.getWebhooksIntegrationAsync(String webhookName) Get a webhook integration.getWebhooksIntegrationCustomVariable(String customVariableName) Get a custom variable.getWebhooksIntegrationCustomVariableAsync(String customVariableName) Get a custom variable.getWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) Shows the content of the custom variable with the name<CUSTOM_VARIABLE_NAME>.getWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName) Get a custom variable.getWebhooksIntegrationWithHttpInfo(String webhookName) Gets the content of the webhook with the name<WEBHOOK_NAME>.getWebhooksIntegrationWithHttpInfoAsync(String webhookName) Get a webhook integration.voidsetApiClient(ApiClient apiClient) Set the API client.updateWebhooksIntegration(String webhookName, WebhooksIntegrationUpdateRequest body) Update a webhook.updateWebhooksIntegrationAsync(String webhookName, WebhooksIntegrationUpdateRequest body) Update a webhook.updateWebhooksIntegrationCustomVariable(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Update a custom variable.updateWebhooksIntegrationCustomVariableAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Update a custom variable.updateWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Updates the endpoint with the name<CUSTOM_VARIABLE_NAME>.updateWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Update a custom variable.updateWebhooksIntegrationWithHttpInfo(String webhookName, WebhooksIntegrationUpdateRequest body) Updates the endpoint with the name<WEBHOOK_NAME>.updateWebhooksIntegrationWithHttpInfoAsync(String webhookName, WebhooksIntegrationUpdateRequest body) Update a webhook.
-
Constructor Details
-
WebhooksIntegrationApi
public WebhooksIntegrationApi() -
WebhooksIntegrationApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createWebhooksIntegration
Create a webhooks integration.See
createWebhooksIntegrationWithHttpInfo(com.datadog.api.client.v1.model.WebhooksIntegration).- Parameters:
body- Create a webhooks integration request body. (required)- Returns:
- WebhooksIntegration
- Throws:
ApiException- if fails to make API call
-
createWebhooksIntegrationAsync
public CompletableFuture<WebhooksIntegration> createWebhooksIntegrationAsync(WebhooksIntegration body) Create a webhooks integration.See
createWebhooksIntegrationWithHttpInfoAsync(com.datadog.api.client.v1.model.WebhooksIntegration).- Parameters:
body- Create a webhooks integration request body. (required)- Returns:
- CompletableFuture<WebhooksIntegration>
-
createWebhooksIntegrationWithHttpInfo
public ApiResponse<WebhooksIntegration> createWebhooksIntegrationWithHttpInfo(WebhooksIntegration body) throws ApiException Creates an endpoint with the name<WEBHOOK_NAME>.- Parameters:
body- Create a webhooks integration request body. (required)- Returns:
- ApiResponse<WebhooksIntegration>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 OK - 400 Bad Request - 403 Authentication error - 429 Too many requests -
-
createWebhooksIntegrationWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegration>> createWebhooksIntegrationWithHttpInfoAsync(WebhooksIntegration body) Create a webhooks integration.See
createWebhooksIntegrationWithHttpInfo(com.datadog.api.client.v1.model.WebhooksIntegration).- Parameters:
body- Create a webhooks integration request body. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegration>>
-
createWebhooksIntegrationCustomVariable
public WebhooksIntegrationCustomVariableResponse createWebhooksIntegrationCustomVariable(WebhooksIntegrationCustomVariable body) throws ApiException Create a custom variable.- Parameters:
body- Define a custom variable request body. (required)- Returns:
- WebhooksIntegrationCustomVariableResponse
- Throws:
ApiException- if fails to make API call
-
createWebhooksIntegrationCustomVariableAsync
public CompletableFuture<WebhooksIntegrationCustomVariableResponse> createWebhooksIntegrationCustomVariableAsync(WebhooksIntegrationCustomVariable body) Create a custom variable.- Parameters:
body- Define a custom variable request body. (required)- Returns:
- CompletableFuture<WebhooksIntegrationCustomVariableResponse>
-
createWebhooksIntegrationCustomVariableWithHttpInfo
public ApiResponse<WebhooksIntegrationCustomVariableResponse> createWebhooksIntegrationCustomVariableWithHttpInfo(WebhooksIntegrationCustomVariable body) throws ApiException Creates an endpoint with the name<CUSTOM_VARIABLE_NAME>.- Parameters:
body- Define a custom variable request body. (required)- Returns:
- ApiResponse<WebhooksIntegrationCustomVariableResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 OK - 400 Bad Request - 403 Authentication error - 429 Too many requests -
-
createWebhooksIntegrationCustomVariableWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> createWebhooksIntegrationCustomVariableWithHttpInfoAsync(WebhooksIntegrationCustomVariable body) Create a custom variable.- Parameters:
body- Define a custom variable request body. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>>
-
deleteWebhooksIntegration
Delete a webhook.See
deleteWebhooksIntegrationWithHttpInfo(java.lang.String).- Parameters:
webhookName- The name of the webhook. (required)- Throws:
ApiException- if fails to make API call
-
deleteWebhooksIntegrationAsync
Delete a webhook.See
deleteWebhooksIntegrationWithHttpInfoAsync(java.lang.String).- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- CompletableFuture
-
deleteWebhooksIntegrationWithHttpInfo
public ApiResponse<Void> deleteWebhooksIntegrationWithHttpInfo(String webhookName) throws ApiException Deletes the endpoint with the name<WEBHOOK NAME>. This action cannot be undone.- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
deleteWebhooksIntegrationWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteWebhooksIntegrationWithHttpInfoAsync(String webhookName) Delete a webhook.See
deleteWebhooksIntegrationWithHttpInfo(java.lang.String).- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteWebhooksIntegrationCustomVariable
Delete a custom variable.See
deleteWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Throws:
ApiException- if fails to make API call
-
deleteWebhooksIntegrationCustomVariableAsync
public CompletableFuture<Void> deleteWebhooksIntegrationCustomVariableAsync(String customVariableName) Delete a custom variable.See
deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- CompletableFuture
-
deleteWebhooksIntegrationCustomVariableWithHttpInfo
public ApiResponse<Void> deleteWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) throws ApiException Deletes the endpoint with the name<CUSTOM_VARIABLE_NAME>.- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName) Delete a custom variable.See
deleteWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getWebhooksIntegration
Get a webhook integration.- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- WebhooksIntegration
- Throws:
ApiException- if fails to make API call
-
getWebhooksIntegrationAsync
Get a webhook integration.See
getWebhooksIntegrationWithHttpInfoAsync(java.lang.String).- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- CompletableFuture<WebhooksIntegration>
-
getWebhooksIntegrationWithHttpInfo
public ApiResponse<WebhooksIntegration> getWebhooksIntegrationWithHttpInfo(String webhookName) throws ApiException Gets the content of the webhook with the name<WEBHOOK_NAME>.- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- ApiResponse<WebhooksIntegration>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
getWebhooksIntegrationWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegration>> getWebhooksIntegrationWithHttpInfoAsync(String webhookName) Get a webhook integration.- Parameters:
webhookName- The name of the webhook. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegration>>
-
getWebhooksIntegrationCustomVariable
public WebhooksIntegrationCustomVariableResponse getWebhooksIntegrationCustomVariable(String customVariableName) throws ApiException Get a custom variable.See
getWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- WebhooksIntegrationCustomVariableResponse
- Throws:
ApiException- if fails to make API call
-
getWebhooksIntegrationCustomVariableAsync
public CompletableFuture<WebhooksIntegrationCustomVariableResponse> getWebhooksIntegrationCustomVariableAsync(String customVariableName) Get a custom variable.See
getWebhooksIntegrationCustomVariableWithHttpInfoAsync(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- CompletableFuture<WebhooksIntegrationCustomVariableResponse>
-
getWebhooksIntegrationCustomVariableWithHttpInfo
public ApiResponse<WebhooksIntegrationCustomVariableResponse> getWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName) throws ApiException Shows the content of the custom variable with the name<CUSTOM_VARIABLE_NAME>.If the custom variable is secret, the value does not return in the response payload.
- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- ApiResponse<WebhooksIntegrationCustomVariableResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
getWebhooksIntegrationCustomVariableWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> getWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName) Get a custom variable.See
getWebhooksIntegrationCustomVariableWithHttpInfo(java.lang.String).- Parameters:
customVariableName- The name of the custom variable. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>>
-
updateWebhooksIntegration
public WebhooksIntegration updateWebhooksIntegration(String webhookName, WebhooksIntegrationUpdateRequest body) throws ApiException Update a webhook.- Parameters:
webhookName- The name of the webhook. (required)body- Update an existing Datadog-Webhooks integration. (required)- Returns:
- WebhooksIntegration
- Throws:
ApiException- if fails to make API call
-
updateWebhooksIntegrationAsync
public CompletableFuture<WebhooksIntegration> updateWebhooksIntegrationAsync(String webhookName, WebhooksIntegrationUpdateRequest body) Update a webhook.- Parameters:
webhookName- The name of the webhook. (required)body- Update an existing Datadog-Webhooks integration. (required)- Returns:
- CompletableFuture<WebhooksIntegration>
-
updateWebhooksIntegrationWithHttpInfo
public ApiResponse<WebhooksIntegration> updateWebhooksIntegrationWithHttpInfo(String webhookName, WebhooksIntegrationUpdateRequest body) throws ApiException Updates the endpoint with the name<WEBHOOK_NAME>.- Parameters:
webhookName- The name of the webhook. (required)body- Update an existing Datadog-Webhooks integration. (required)- Returns:
- ApiResponse<WebhooksIntegration>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
updateWebhooksIntegrationWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegration>> updateWebhooksIntegrationWithHttpInfoAsync(String webhookName, WebhooksIntegrationUpdateRequest body) Update a webhook.- Parameters:
webhookName- The name of the webhook. (required)body- Update an existing Datadog-Webhooks integration. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegration>>
-
updateWebhooksIntegrationCustomVariable
public WebhooksIntegrationCustomVariableResponse updateWebhooksIntegrationCustomVariable(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) throws ApiException Update a custom variable.- Parameters:
customVariableName- The name of the custom variable. (required)body- Update an existing custom variable request body. (required)- Returns:
- WebhooksIntegrationCustomVariableResponse
- Throws:
ApiException- if fails to make API call
-
updateWebhooksIntegrationCustomVariableAsync
public CompletableFuture<WebhooksIntegrationCustomVariableResponse> updateWebhooksIntegrationCustomVariableAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Update a custom variable.- Parameters:
customVariableName- The name of the custom variable. (required)body- Update an existing custom variable request body. (required)- Returns:
- CompletableFuture<WebhooksIntegrationCustomVariableResponse>
-
updateWebhooksIntegrationCustomVariableWithHttpInfo
public ApiResponse<WebhooksIntegrationCustomVariableResponse> updateWebhooksIntegrationCustomVariableWithHttpInfo(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) throws ApiException Updates the endpoint with the name<CUSTOM_VARIABLE_NAME>.- Parameters:
customVariableName- The name of the custom variable. (required)body- Update an existing custom variable request body. (required)- Returns:
- ApiResponse<WebhooksIntegrationCustomVariableResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
updateWebhooksIntegrationCustomVariableWithHttpInfoAsync
public CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>> updateWebhooksIntegrationCustomVariableWithHttpInfoAsync(String customVariableName, WebhooksIntegrationCustomVariableUpdateRequest body) Update a custom variable.- Parameters:
customVariableName- The name of the custom variable. (required)body- Update an existing custom variable request body. (required)- Returns:
- CompletableFuture<ApiResponse<WebhooksIntegrationCustomVariableResponse>>
-