Class AlertRequest

java.lang.Object
com.atlassian.diagnostics.AlertRequest

public class AlertRequest extends Object
Request to raise an alert
  • Method Details

    • builder

      @Nonnull public static AlertRequest.Builder builder(@Nonnull Issue issue)
      Parameters:
      issue - the issue to which the alert applies
      Returns:
      a new builder
    • getDetailsSupplier

      @Nonnull public Optional<Supplier<Object>> getDetailsSupplier()
      Returns:
      the supplier to be used to generate alert details if required
    • getIssue

      @Nonnull public Issue getIssue()
      Returns:
      the issue to which the alert applies
    • getTimestamp

      @Nonnull public Instant getTimestamp()
      Returns:
      the timestamp of the alert
    • getTrigger

      @Nonnull public Optional<AlertTrigger> getTrigger()
      Returns:
      the trigger for the detected Issue