Class AlertResolution

java.lang.Object
com.kingsrook.qqq.backend.core.alerts.AlertResolution
All Implemented Interfaces:
Serializable

public class AlertResolution extends Object implements Serializable
A producer's "this problem is gone", passed to QAlerts.resolve. Resolving a key that is not open is a no-op.
See Also:
  • Constructor Details

    • AlertResolution

      public AlertResolution()
      Constructor
    • AlertResolution

      public AlertResolution(String alertTypeName, String dedupKey, String note)
      Constructor
  • Method Details

    • getEffectiveDedupKey

      public String getEffectiveDedupKey()
      The dedup key to use: the one given, or the type name.
    • getAlertTypeName

      public String getAlertTypeName()
      Getter for alertTypeName
    • withAlertTypeName

      public AlertResolution withAlertTypeName(String alertTypeName)
      Fluent setter for alertTypeName
    • getDedupKey

      public String getDedupKey()
      Getter for dedupKey
    • withDedupKey

      public AlertResolution withDedupKey(String dedupKey)
      Fluent setter for dedupKey
    • getNote

      public String getNote()
      Getter for note
    • withNote

      public AlertResolution withNote(String note)
      Fluent setter for note
    • getResolvedAt

      public Instant getResolvedAt()
      Getter for resolvedAt
    • withResolvedAt

      public AlertResolution withResolvedAt(Instant resolvedAt)
      Fluent setter for resolvedAt (default: when QAlerts.resolve is called)