All Implemented Interfaces:
Notifier

public class OpsGenieNotifier extends AbstractStatusChangeNotifier
Notifier submitting events to opsgenie.com.
Author:
Fernando Sure
  • Constructor Details

    • OpsGenieNotifier

      public OpsGenieNotifier(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
    • buildUrl

      protected String buildUrl(InstanceEvent event, Instance instance)
    • createRequest

      protected org.springframework.http.HttpEntity<?> createRequest(InstanceEvent event, Instance instance)
    • generateAlias

      protected String generateAlias(Instance instance)
    • getMessage

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

      protected String getDescription(InstanceEvent event, Instance instance)
    • getApiKey

      @Nullable public String getApiKey()
    • setApiKey

      public void setApiKey(@Nullable String apiKey)
    • setDescription

      public void setDescription(String description)
    • getMessage

      public String getMessage()
    • setRestTemplate

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

      @Nullable public String getActions()
    • setActions

      public void setActions(@Nullable String actions)
    • getSource

      @Nullable public String getSource()
    • setSource

      public void setSource(@Nullable String source)
    • getTags

      @Nullable public String getTags()
    • setTags

      public void setTags(@Nullable String tags)
    • getEntity

      @Nullable public String getEntity()
    • setEntity

      public void setEntity(@Nullable String entity)
    • getUser

      @Nullable public String getUser()
    • setUser

      public void setUser(@Nullable String user)
    • getUrl

      public URI getUrl()
    • setUrl

      public void setUrl(URI url)