All Implemented Interfaces:
Notifier

public class HipchatNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to HipChat.
Author:
Jamie Brown
  • Constructor Details

    • HipchatNotifier

      public HipchatNotifier(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
    • buildUrl

      protected String buildUrl()
    • createHipChatNotification

      protected org.springframework.http.HttpEntity<Map<String,Object>> createHipChatNotification(InstanceEvent event, Instance instance)
    • getNotify

      protected boolean getNotify()
    • getMessage

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

      protected String getColor(InstanceEvent event)
    • getUrl

      @Nullable public URI getUrl()
    • setUrl

      public void setUrl(@Nullable URI url)
    • getAuthToken

      @Nullable public String getAuthToken()
    • setAuthToken

      public void setAuthToken(@Nullable String authToken)
    • getRoomId

      @Nullable public String getRoomId()
    • setRoomId

      public void setRoomId(@Nullable String roomId)
    • isNotify

      public boolean isNotify()
    • setNotify

      public void setNotify(boolean notify)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • setRestTemplate

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