Class OpsErrorContext

java.lang.Object
ai.shipeasy.admin.model.OpsErrorContext

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class OpsErrorContext extends Object
Hydrated detail for an auto-filed `error` ticket, read from the tracked `errors` row at request time (so `count`/`lastSeenAt` reflect the latest state).
  • Field Details

  • Constructor Details

    • OpsErrorContext

      public OpsErrorContext()
  • Method Details

    • id

      public OpsErrorContext id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      The tracked `errors` row id (fetch full detail via `related.error`).
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • fingerprint

      public OpsErrorContext fingerprint(@Nonnull String fingerprint)
    • getFingerprint

      @Nonnull public String getFingerprint()
      Stable dedupe key of the tracked error.
      Returns:
      fingerprint
    • setFingerprint

      public void setFingerprint(@Nonnull String fingerprint)
    • causedByFingerprint

      public OpsErrorContext causedByFingerprint(@Nullable String causedByFingerprint)
    • getCausedByFingerprint

      @Nullable public String getCausedByFingerprint()
      Fingerprint of the upstream issue this error descends from (set when the same error was reported at an inner boundary first), or `null` for a root issue.
      Returns:
      causedByFingerprint
    • setCausedByFingerprint

      public void setCausedByFingerprint(@Nullable String causedByFingerprint)
    • errorType

      public OpsErrorContext errorType(@Nullable String errorType)
    • getErrorType

      @Nullable public String getErrorType()
      Error class/name, e.g. `TypeError`, or `null` when the source didn't supply one.
      Returns:
      errorType
    • setErrorType

      public void setErrorType(@Nullable String errorType)
    • message

      public OpsErrorContext message(@Nonnull String message)
    • getMessage

      @Nonnull public String getMessage()
      The error message.
      Returns:
      message
    • setMessage

      public void setMessage(@Nonnull String message)
    • subject

      public OpsErrorContext subject(@Nullable String subject)
    • getSubject

      @Nullable public String getSubject()
      The `see()` consequence subject — the `causes_the(<subject>)` value. Grep the codebase for this to find the throw site. `null` if the error was never instrumented.
      Returns:
      subject
    • setSubject

      public void setSubject(@Nullable String subject)
    • outcome

      public OpsErrorContext outcome(@Nullable String outcome)
    • getOutcome

      @Nullable public String getOutcome()
      The `see()` consequence outcome — the `.to(<outcome>)` value. `null` if uninstrumented.
      Returns:
      outcome
    • setOutcome

      public void setOutcome(@Nullable String outcome)
    • kind

      public OpsErrorContext kind(@Nullable String kind)
    • getKind

      @Nullable public String getKind()
      `see()` error kind: `caught` | `uncaught` | `unhandled_rejection` | `network` | `violation`.
      Returns:
      kind
    • setKind

      public void setKind(@Nullable String kind)
    • side

      public OpsErrorContext side(@Nullable String side)
    • getSide

      @Nullable public String getSide()
      Which SDK side reported it: `client` | `server`.
      Returns:
      side
    • setSide

      public void setSide(@Nullable String side)
    • env

      public OpsErrorContext env(@Nullable String env)
    • getEnv

      @Nullable public String getEnv()
      Published env the reporting SDK ran against (dev/staging/prod).
      Returns:
      env
    • setEnv

      public void setEnv(@Nullable String env)
    • count

      public OpsErrorContext count(@Nonnull BigDecimal count)
    • getCount

      @Nonnull public BigDecimal getCount()
      Folded occurrence count for this fingerprint.
      Returns:
      count
    • setCount

      public void setCount(@Nonnull BigDecimal count)
    • firstSeenAt

      public OpsErrorContext firstSeenAt(@Nonnull String firstSeenAt)
    • getFirstSeenAt

      @Nonnull public String getFirstSeenAt()
      ISO-8601 timestamp of the first occurrence.
      Returns:
      firstSeenAt
    • setFirstSeenAt

      public void setFirstSeenAt(@Nonnull String firstSeenAt)
    • lastSeenAt

      public OpsErrorContext lastSeenAt(@Nonnull String lastSeenAt)
    • getLastSeenAt

      @Nonnull public String getLastSeenAt()
      ISO-8601 timestamp of the most recent occurrence.
      Returns:
      lastSeenAt
    • setLastSeenAt

      public void setLastSeenAt(@Nonnull String lastSeenAt)
    • seenUrls

      public OpsErrorContext seenUrls(@Nonnull List<String> seenUrls)
    • addSeenUrlsItem

      public OpsErrorContext addSeenUrlsItem(String seenUrlsItem)
    • getSeenUrls

      @Nonnull public List<String> getSeenUrls()
      Distinct, id-normalized routes this error has surfaced on (UUIDs/ids collapsed to `#`).
      Returns:
      seenUrls
    • setSeenUrls

      public void setSeenUrls(@Nonnull List<String> seenUrls)
    • stackTail

      public OpsErrorContext stackTail(@Nullable String stackTail)
    • getStackTail

      @Nullable public String getStackTail()
      The last 3 non-empty lines of the latest occurrence's stack — the innermost frames closest to where the throw bubbled out, baked in as an at-a-glance locator. `null` when the source supplied no stack. Fetch the full stack via `related.error`.
      Returns:
      stackTail
    • setStackTail

      public void setStackTail(@Nullable String stackTail)
    • sdkVersion

      public OpsErrorContext sdkVersion(@Nullable String sdkVersion)
    • getSdkVersion

      @Nullable public String getSdkVersion()
      Returns:
      sdkVersion
    • setSdkVersion

      public void setSdkVersion(@Nullable String sdkVersion)
    • putAdditionalProperty

      public OpsErrorContext putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the OpsErrorContext instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to OpsErrorContext
    • fromJson

      public static OpsErrorContext fromJson(String jsonString) throws IOException
      Create an instance of OpsErrorContext given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of OpsErrorContext
      Throws:
      IOException - if the JSON string is invalid with respect to OpsErrorContext
    • toJson

      public String toJson()
      Convert an instance of OpsErrorContext to an JSON string
      Returns:
      JSON string