Package com.datadog.api.client.v1.api
Class SlackIntegrationApi
java.lang.Object
com.datadog.api.client.v1.api.SlackIntegrationApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SlackIntegrationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSlackIntegrationChannel(String accountName, SlackIntegrationChannel body) Create a Slack integration channel.createSlackIntegrationChannelAsync(String accountName, SlackIntegrationChannel body) Create a Slack integration channel.createSlackIntegrationChannelWithHttpInfo(String accountName, SlackIntegrationChannel body) Add a channel to your Datadog-Slack integration.createSlackIntegrationChannelWithHttpInfoAsync(String accountName, SlackIntegrationChannel body) Create a Slack integration channel.Get the API client.getSlackIntegrationChannel(String accountName, String channelName) Get a Slack integration channel.getSlackIntegrationChannelAsync(String accountName, String channelName) Get a Slack integration channel.getSlackIntegrationChannels(String accountName) Get all channels in a Slack integration.getSlackIntegrationChannelsAsync(String accountName) Get all channels in a Slack integration.getSlackIntegrationChannelsWithHttpInfo(String accountName) Get a list of all channels configured for your Datadog-Slack integration.getSlackIntegrationChannelsWithHttpInfoAsync(String accountName) Get all channels in a Slack integration.getSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) Get a channel configured for your Datadog-Slack integration.getSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName) Get a Slack integration channel.voidremoveSlackIntegrationChannel(String accountName, String channelName) Remove a Slack integration channel.removeSlackIntegrationChannelAsync(String accountName, String channelName) Remove a Slack integration channel.removeSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) Remove a channel from your Datadog-Slack integration.removeSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName) Remove a Slack integration channel.voidsetApiClient(ApiClient apiClient) Set the API client.updateSlackIntegrationChannel(String accountName, String channelName, SlackIntegrationChannel body) Update a Slack integration channel.updateSlackIntegrationChannelAsync(String accountName, String channelName, SlackIntegrationChannel body) Update a Slack integration channel.updateSlackIntegrationChannelWithHttpInfo(String accountName, String channelName, SlackIntegrationChannel body) Update a channel used in your Datadog-Slack integration.updateSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName, SlackIntegrationChannel body) Update a Slack integration channel.
-
Constructor Details
-
SlackIntegrationApi
public SlackIntegrationApi() -
SlackIntegrationApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createSlackIntegrationChannel
public SlackIntegrationChannel createSlackIntegrationChannel(String accountName, SlackIntegrationChannel body) throws ApiException Create a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)body- Payload describing Slack channel to be created (required)- Returns:
- SlackIntegrationChannel
- Throws:
ApiException- if fails to make API call
-
createSlackIntegrationChannelAsync
public CompletableFuture<SlackIntegrationChannel> createSlackIntegrationChannelAsync(String accountName, SlackIntegrationChannel body) Create a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)body- Payload describing Slack channel to be created (required)- Returns:
- CompletableFuture<SlackIntegrationChannel>
-
createSlackIntegrationChannelWithHttpInfo
public ApiResponse<SlackIntegrationChannel> createSlackIntegrationChannelWithHttpInfo(String accountName, SlackIntegrationChannel body) throws ApiException Add a channel to your Datadog-Slack integration.- Parameters:
accountName- Your Slack account name. (required)body- Payload describing Slack channel to be created (required)- Returns:
- ApiResponse<SlackIntegrationChannel>
- 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 -
-
createSlackIntegrationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> createSlackIntegrationChannelWithHttpInfoAsync(String accountName, SlackIntegrationChannel body) Create a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)body- Payload describing Slack channel to be created (required)- Returns:
- CompletableFuture<ApiResponse<SlackIntegrationChannel>>
-
getSlackIntegrationChannel
public SlackIntegrationChannel getSlackIntegrationChannel(String accountName, String channelName) throws ApiException Get a Slack integration channel.See
getSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- SlackIntegrationChannel
- Throws:
ApiException- if fails to make API call
-
getSlackIntegrationChannelAsync
public CompletableFuture<SlackIntegrationChannel> getSlackIntegrationChannelAsync(String accountName, String channelName) Get a Slack integration channel.See
getSlackIntegrationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- CompletableFuture<SlackIntegrationChannel>
-
getSlackIntegrationChannelWithHttpInfo
public ApiResponse<SlackIntegrationChannel> getSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) throws ApiException Get a channel configured for your Datadog-Slack integration.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- ApiResponse<SlackIntegrationChannel>
- 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 -
-
getSlackIntegrationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> getSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName) Get a Slack integration channel.See
getSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- CompletableFuture<ApiResponse<SlackIntegrationChannel>>
-
getSlackIntegrationChannels
public List<SlackIntegrationChannel> getSlackIntegrationChannels(String accountName) throws ApiException Get all channels in a Slack integration.See
getSlackIntegrationChannelsWithHttpInfo(java.lang.String).- Parameters:
accountName- Your Slack account name. (required)- Returns:
- List<SlackIntegrationChannel>
- Throws:
ApiException- if fails to make API call
-
getSlackIntegrationChannelsAsync
public CompletableFuture<List<SlackIntegrationChannel>> getSlackIntegrationChannelsAsync(String accountName) Get all channels in a Slack integration.See
getSlackIntegrationChannelsWithHttpInfoAsync(java.lang.String).- Parameters:
accountName- Your Slack account name. (required)- Returns:
- CompletableFuture<List<SlackIntegrationChannel>>
-
getSlackIntegrationChannelsWithHttpInfo
public ApiResponse<List<SlackIntegrationChannel>> getSlackIntegrationChannelsWithHttpInfo(String accountName) throws ApiException Get a list of all channels configured for your Datadog-Slack integration.- Parameters:
accountName- Your Slack account name. (required)- Returns:
- ApiResponse<List<SlackIntegrationChannel>>
- 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 -
-
getSlackIntegrationChannelsWithHttpInfoAsync
public CompletableFuture<ApiResponse<List<SlackIntegrationChannel>>> getSlackIntegrationChannelsWithHttpInfoAsync(String accountName) Get all channels in a Slack integration.See
getSlackIntegrationChannelsWithHttpInfo(java.lang.String).- Parameters:
accountName- Your Slack account name. (required)- Returns:
- CompletableFuture<ApiResponse<List<SlackIntegrationChannel>>>
-
removeSlackIntegrationChannel
public void removeSlackIntegrationChannel(String accountName, String channelName) throws ApiException Remove a Slack integration channel.See
removeSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Throws:
ApiException- if fails to make API call
-
removeSlackIntegrationChannelAsync
public CompletableFuture<Void> removeSlackIntegrationChannelAsync(String accountName, String channelName) Remove a Slack integration channel.See
removeSlackIntegrationChannelWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- CompletableFuture
-
removeSlackIntegrationChannelWithHttpInfo
public ApiResponse<Void> removeSlackIntegrationChannelWithHttpInfo(String accountName, String channelName) throws ApiException Remove a channel from your Datadog-Slack integration.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 The channel was removed successfully. - 400 Bad Request - 403 Authentication error - 404 Item Not Found - 429 Too many requests -
-
removeSlackIntegrationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> removeSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName) Remove a Slack integration channel.See
removeSlackIntegrationChannelWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateSlackIntegrationChannel
public SlackIntegrationChannel updateSlackIntegrationChannel(String accountName, String channelName, SlackIntegrationChannel body) throws ApiException Update a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)body- Payload describing fields and values to be updated. (required)- Returns:
- SlackIntegrationChannel
- Throws:
ApiException- if fails to make API call
-
updateSlackIntegrationChannelAsync
public CompletableFuture<SlackIntegrationChannel> updateSlackIntegrationChannelAsync(String accountName, String channelName, SlackIntegrationChannel body) Update a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)body- Payload describing fields and values to be updated. (required)- Returns:
- CompletableFuture<SlackIntegrationChannel>
-
updateSlackIntegrationChannelWithHttpInfo
public ApiResponse<SlackIntegrationChannel> updateSlackIntegrationChannelWithHttpInfo(String accountName, String channelName, SlackIntegrationChannel body) throws ApiException Update a channel used in your Datadog-Slack integration.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)body- Payload describing fields and values to be updated. (required)- Returns:
- ApiResponse<SlackIntegrationChannel>
- 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 -
-
updateSlackIntegrationChannelWithHttpInfoAsync
public CompletableFuture<ApiResponse<SlackIntegrationChannel>> updateSlackIntegrationChannelWithHttpInfoAsync(String accountName, String channelName, SlackIntegrationChannel body) Update a Slack integration channel.- Parameters:
accountName- Your Slack account name. (required)channelName- The name of the Slack channel being operated on. (required)body- Payload describing fields and values to be updated. (required)- Returns:
- CompletableFuture<ApiResponse<SlackIntegrationChannel>>
-