public class TelegramNotifier extends AbstractStatusChangeNotifier
| Constructor and Description |
|---|
TelegramNotifier(InstanceRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl() |
protected reactor.core.publisher.Mono<Void> |
doNotify(InstanceEvent event,
Instance instance) |
String |
getApiUrl() |
String |
getAuthToken() |
String |
getChatId() |
String |
getParseMode() |
protected String |
getText(InstanceEvent event,
Instance instance) |
boolean |
isDisableNotify() |
void |
setApiUrl(String apiUrl) |
void |
setAuthToken(String authToken) |
void |
setChatId(String chatId) |
void |
setDisableNotify(boolean disableNotify) |
void |
setMessage(String message) |
void |
setParseMode(String parseMode) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusisEnabled, setEnabledpublic TelegramNotifier(InstanceRepository repository)
protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
doNotify in class AbstractEventNotifierprotected String buildUrl()
@Nullable protected String getText(InstanceEvent event, Instance instance)
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
public String getApiUrl()
public void setApiUrl(String apiUrl)
public boolean isDisableNotify()
public void setDisableNotify(boolean disableNotify)
public String getParseMode()
public void setParseMode(String parseMode)
public void setMessage(String message)
Copyright © 2018 codecentric AG. All rights reserved.