public class PagerdutyNotifier extends AbstractStatusChangeNotifier
| Modifier and Type | Field and Description |
|---|---|
static URI |
DEFAULT_URI |
| Constructor and Description |
|---|
PagerdutyNotifier(InstanceRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createPagerdutyEvent(InstanceEvent event,
Instance instance) |
protected reactor.core.publisher.Mono<Void> |
doNotify(InstanceEvent event,
Instance instance) |
String |
getClient() |
URI |
getClientUrl() |
String |
getDescription() |
protected String |
getDescription(InstanceEvent event,
Instance instance) |
protected Map<String,Object> |
getDetails(InstanceEvent event) |
String |
getServiceKey() |
URI |
getUrl() |
void |
setClient(String client) |
void |
setClientUrl(URI clientUrl) |
void |
setDescription(String description) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
void |
setServiceKey(String serviceKey) |
void |
setUrl(URI url) |
getIgnoreChanges, getLastStatus, notify, setIgnoreChanges, shouldNotify, updateLastStatusisEnabled, setEnabledpublic static final URI DEFAULT_URI
public PagerdutyNotifier(InstanceRepository repository)
protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
doNotify in class AbstractEventNotifierprotected Map<String,Object> createPagerdutyEvent(InstanceEvent event, Instance instance)
@Nullable protected String getDescription(InstanceEvent event, Instance instance)
protected Map<String,Object> getDetails(InstanceEvent event)
public void setUrl(URI url)
public URI getUrl()
public void setDescription(String description)
public String getDescription()
public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Copyright © 2019 codecentric AG. All rights reserved.