public class SlackNotifier extends AbstractStatusChangeNotifier
| Constructor and Description |
|---|
SlackNotifier(InstanceRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createMessage(InstanceEvent event,
Instance instance) |
protected reactor.core.publisher.Mono<Void> |
doNotify(InstanceEvent event,
Instance instance) |
String |
getChannel() |
protected String |
getColor(InstanceEvent event) |
String |
getIcon() |
String |
getMessage() |
protected String |
getText(InstanceEvent event,
Instance instance) |
String |
getUsername() |
URI |
getWebhookUrl() |
void |
setChannel(String channel) |
void |
setIcon(String icon) |
void |
setMessage(String message) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setUsername(String username) |
void |
setWebhookUrl(URI webhookUrl) |
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusisEnabled, setEnabledpublic SlackNotifier(InstanceRepository repository)
protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
doNotify in class AbstractEventNotifierpublic void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
protected Object createMessage(InstanceEvent event, Instance instance)
@Nullable protected String getText(InstanceEvent event, Instance instance)
protected String getColor(InstanceEvent event)
public String getMessage()
public void setMessage(String message)
Copyright © 2019 codecentric AG. All rights reserved.