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.filter.AbstractContentNotifier
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 StringDefines the default SpEL template string used for message generation.protected boolean@Nullable String@Nullable URIgetUrl()booleanisNotify()voidsetAuthToken(@Nullable String authToken) voidsetNotify(boolean notify) voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate) voidvoidMethods inherited from class de.codecentric.boot.admin.server.notify.filter.AbstractContentNotifier
buildContentModel, createContent, getMessage, setMessageMethods 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() -
getDefaultMessage
Description copied from class:AbstractContentNotifierDefines the default SpEL template string used for message generation.The template should use #{key} syntax to reference variables provided by
AbstractContentNotifier.buildContentModel(InstanceEvent, Instance). This default can be overridden at runtime usingAbstractContentNotifier.setMessage(String).- Specified by:
getDefaultMessagein classAbstractContentNotifier- Returns:
- the default SpEL template string (e.g., "#{name} is #{status}")
-
getColor
-
getUrl
-
setUrl
-
getAuthToken
-
setAuthToken
-
getRoomId
-
setRoomId
-
isNotify
public boolean isNotify() -
setNotify
public void setNotify(boolean notify) -
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
-