Class SlackClient
java.lang.Object
org.graylog.integrations.notifications.types.SlackClient
-
Constructor Summary
ConstructorDescriptionSlackClient
(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
SlackClient
@Inject public SlackClient(okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
send
public void send(SlackMessage message, String webhookUrl) throws TemporaryEventNotificationException, PermanentEventNotificationException, com.fasterxml.jackson.core.JsonProcessingException - Parameters:
message
-webhookUrl
-- Throws:
TemporaryEventNotificationException
- - thrown for network or timeout type issuesPermanentEventNotificationException
- - thrown with bad webhook url, authentication error type issuescom.fasterxml.jackson.core.JsonProcessingException
-