Class HipchatNotifier
java.lang.Object
de.codecentric.boot.admin.server.notify.AbstractEventNotifier
de.codecentric.boot.admin.server.notify.AbstractStatusChangeNotifier
de.codecentric.boot.admin.server.notify.HipchatNotifier
- All Implemented Interfaces:
Notifier
Notifier submitting events to HipChat.
- Author:
- Jamie Brown
-
Constructor Summary
ConstructorsConstructorDescriptionHipchatNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildUrl()createHipChatNotification(InstanceEvent event, Instance instance) protected reactor.core.publisher.Mono<Void>doNotify(InstanceEvent event, Instance instance) @Nullable Stringprotected StringgetColor(InstanceEvent event) protected @Nullable StringgetMessage(InstanceEvent event, Instance instance) protected boolean@Nullable String@Nullable URIgetUrl()booleanisNotify()voidsetAuthToken(@Nullable String authToken) voidsetDescription(String description) voidsetNotify(boolean notify) voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate) voidvoidMethods inherited from class de.codecentric.boot.admin.server.notify.AbstractStatusChangeNotifier
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusMethods inherited from class de.codecentric.boot.admin.server.notify.AbstractEventNotifier
isEnabled, setEnabled
-
Constructor Details
-
HipchatNotifier
public HipchatNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
-
-
Method Details
-
doNotify
- Specified by:
doNotifyin classAbstractEventNotifier
-
buildUrl
-
createHipChatNotification
protected org.springframework.http.HttpEntity<Map<String,Object>> createHipChatNotification(InstanceEvent event, Instance instance) -
getNotify
protected boolean getNotify() -
getMessage
-
getColor
-
setUrl
-
getUrl
-
setAuthToken
-
getAuthToken
-
setRoomId
-
getRoomId
-
setNotify
public void setNotify(boolean notify) -
isNotify
public boolean isNotify() -
setDescription
-
getDescription
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-