All Implemented Interfaces:
Notifier

public class SlackNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to Slack.
Author:
Artur Dobosiewicz
  • Constructor Details

    • SlackNotifier

      public SlackNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
  • Method Details

    • doNotify

      protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
      Specified by:
      doNotify in class AbstractEventNotifier
    • setRestTemplate

      public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
    • createMessage

      protected Object createMessage(InstanceEvent event, Instance instance)
    • getText

      @Nullable protected @Nullable String getText(InstanceEvent event, Instance instance)
    • getColor

      protected String getColor(InstanceEvent event)
    • getWebhookUrl

      @Nullable public @Nullable URI getWebhookUrl()
    • setWebhookUrl

      public void setWebhookUrl(@Nullable @Nullable URI webhookUrl)
    • getChannel

      @Nullable public @Nullable String getChannel()
    • setChannel

      public void setChannel(@Nullable @Nullable String channel)
    • getIcon

      @Nullable public @Nullable String getIcon()
    • setIcon

      public void setIcon(@Nullable @Nullable String icon)
    • getUsername

      @Nullable public @Nullable String getUsername()
    • setUsername

      public void setUsername(@Nullable @Nullable String username)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)