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 @Nullable String getMessage(InstanceEvent event, Instance instance)
    • getDescription

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

      public void setApiKey(@Nullable @Nullable String apiKey)
    • getApiKey

      @Nullable public @Nullable String getApiKey()
    • setDescription

      public void setDescription(String description)
    • getMessage

      public String getMessage()
    • setRestTemplate

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

      @Nullable public @Nullable String getActions()
    • setActions

      public void setActions(@Nullable @Nullable String actions)
    • getSource

      @Nullable public @Nullable String getSource()
    • setSource

      public void setSource(@Nullable @Nullable String source)
    • getTags

      @Nullable public @Nullable String getTags()
    • setTags

      public void setTags(@Nullable @Nullable String tags)
    • getEntity

      @Nullable public @Nullable String getEntity()
    • setEntity

      public void setEntity(@Nullable @Nullable String entity)
    • getUser

      @Nullable public @Nullable String getUser()
    • setUser

      public void setUser(@Nullable @Nullable String user)
    • getUrl

      public URI getUrl()
    • setUrl

      public void setUrl(URI url)