All Implemented Interfaces:
Notifier

public class PagerdutyNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to Pagerduty.
Author:
Johannes Edmeier
  • Field Details

    • DEFAULT_URI

      public static final URI DEFAULT_URI
  • Constructor Details

    • PagerdutyNotifier

      public PagerdutyNotifier(InstanceRepository repository, org.springframework.web.client.RestTemplate restTemplate)
  • Method Details

    • doNotify

      protected reactor.core.publisher.Mono<Void> doNotify(InstanceEvent event, Instance instance)
      Specified by:
      doNotify in class AbstractEventNotifier
    • createPagerdutyEvent

      protected Map<String,Object> createPagerdutyEvent(InstanceEvent event, Instance instance)
    • getDescription

      @Nullable protected String getDescription(InstanceEvent event, Instance instance)
    • getDetails

      protected Map<String,Object> getDetails(InstanceEvent event)
    • getUrl

      public URI getUrl()
    • setUrl

      public void setUrl(URI url)
    • getClient

      @Nullable public String getClient()
    • setClient

      public void setClient(@Nullable String client)
    • getClientUrl

      @Nullable public URI getClientUrl()
    • setClientUrl

      public void setClientUrl(@Nullable URI clientUrl)
    • getServiceKey

      @Nullable public String getServiceKey()
    • setServiceKey

      public void setServiceKey(@Nullable String serviceKey)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • setRestTemplate

      public void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)