Class FeiShuNotifier
java.lang.Object
de.codecentric.boot.admin.server.notify.AbstractEventNotifier
de.codecentric.boot.admin.server.notify.AbstractStatusChangeNotifier
de.codecentric.boot.admin.server.notify.FeiShuNotifier
- All Implemented Interfaces:
Notifier
Notifier submitting events to FeiShu by webhooks.
- Author:
- sweeter
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionFeiShuNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate) -
Method Summary
Modifier and TypeMethodDescriptioncreateNotification(InstanceEvent event, Instance instance) protected reactor.core.publisher.Mono<Void>doNotify(InstanceEvent event, Instance instance) getCard()booleanisAtAll()voidsetAtAll(boolean atAll) voidsetCard(FeiShuNotifier.Card card) voidsetMessage(String message) voidsetMessageType(FeiShuNotifier.MessageType messageType) voidsetRestTemplate(org.springframework.web.client.RestTemplate restTemplate) voidvoidsetWebhookUrl(URI webhookUrl) Methods 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
-
FeiShuNotifier
public FeiShuNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
-
-
Method Details
-
doNotify
- Specified by:
doNotifyin classAbstractEventNotifier
-
createNotification
protected org.springframework.http.HttpEntity<Map<String,Object>> createNotification(InstanceEvent event, Instance instance) -
getWebhookUrl
-
setWebhookUrl
-
getMessage
-
setMessage
-
setRestTemplate
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) -
isAtAll
public boolean isAtAll() -
setAtAll
public void setAtAll(boolean atAll) -
getSecret
-
setSecret
-
getMessageType
-
setMessageType
-
getCard
-
setCard
-