Package ai.shipeasy.admin.model
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).
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSeenUrlsItem(String seenUrlsItem) causedByFingerprint(String causedByFingerprint) count(BigDecimal count) booleanfingerprint(String fingerprint) firstSeenAt(String firstSeenAt) static OpsErrorContextCreate an instance of OpsErrorContext given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.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.getCount()Folded occurrence count for this fingerprint.getEnv()Published env the reporting SDK ran against (dev/staging/prod).Error class/name, e.g.Stable dedupe key of the tracked error.ISO-8601 timestamp of the first occurrence.getId()The tracked `errors` row id (fetch full detail via `related.error`).getKind()`see()` error kind: `caught` | `uncaught` | `unhandled_rejection` | `network` | `violation`.ISO-8601 timestamp of the most recent occurrence.The error message.The `see()` consequence outcome — the `.to(<outcome>)` value.Distinct, id-normalized routes this error has surfaced on (UUIDs/ids collapsed to `#`).getSide()Which SDK side reported it: `client` | `server`.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.The `see()` consequence subject — the `causes_the(<subject>)` value.inthashCode()lastSeenAt(String lastSeenAt) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.sdkVersion(String sdkVersion) voidsetCausedByFingerprint(String causedByFingerprint) voidsetCount(BigDecimal count) voidvoidsetErrorType(String errorType) voidsetFingerprint(String fingerprint) voidsetFirstSeenAt(String firstSeenAt) voidvoidvoidsetLastSeenAt(String lastSeenAt) voidsetMessage(String message) voidsetOutcome(String outcome) voidsetSdkVersion(String sdkVersion) voidsetSeenUrls(List<String> seenUrls) voidvoidsetStackTail(String stackTail) voidsetSubject(String subject) toJson()Convert an instance of OpsErrorContext to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_FINGERPRINT
- See Also:
-
SERIALIZED_NAME_CAUSED_BY_FINGERPRINT
- See Also:
-
SERIALIZED_NAME_ERROR_TYPE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
SERIALIZED_NAME_SUBJECT
- See Also:
-
SERIALIZED_NAME_OUTCOME
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_SIDE
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_COUNT
- See Also:
-
SERIALIZED_NAME_FIRST_SEEN_AT
- See Also:
-
SERIALIZED_NAME_LAST_SEEN_AT
- See Also:
-
SERIALIZED_NAME_SEEN_URLS
- See Also:
-
SERIALIZED_NAME_STACK_TAIL
- See Also:
-
SERIALIZED_NAME_SDK_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OpsErrorContext
public OpsErrorContext()
-
-
Method Details
-
id
-
getId
The tracked `errors` row id (fetch full detail via `related.error`).- Returns:
- id
-
setId
-
fingerprint
-
getFingerprint
Stable dedupe key of the tracked error.- Returns:
- fingerprint
-
setFingerprint
-
causedByFingerprint
-
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
-
errorType
-
getErrorType
Error class/name, e.g. `TypeError`, or `null` when the source didn't supply one.- Returns:
- errorType
-
setErrorType
-
message
-
getMessage
The error message.- Returns:
- message
-
setMessage
-
subject
-
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
-
outcome
-
getOutcome
The `see()` consequence outcome — the `.to(<outcome>)` value. `null` if uninstrumented.- Returns:
- outcome
-
setOutcome
-
kind
-
getKind
`see()` error kind: `caught` | `uncaught` | `unhandled_rejection` | `network` | `violation`.- Returns:
- kind
-
setKind
-
side
-
getSide
Which SDK side reported it: `client` | `server`.- Returns:
- side
-
setSide
-
env
-
getEnv
Published env the reporting SDK ran against (dev/staging/prod).- Returns:
- env
-
setEnv
-
count
-
getCount
Folded occurrence count for this fingerprint.- Returns:
- count
-
setCount
-
firstSeenAt
-
getFirstSeenAt
ISO-8601 timestamp of the first occurrence.- Returns:
- firstSeenAt
-
setFirstSeenAt
-
lastSeenAt
-
getLastSeenAt
ISO-8601 timestamp of the most recent occurrence.- Returns:
- lastSeenAt
-
setLastSeenAt
-
seenUrls
-
addSeenUrlsItem
-
getSeenUrls
Distinct, id-normalized routes this error has surfaced on (UUIDs/ids collapsed to `#`).- Returns:
- seenUrls
-
setSeenUrls
-
stackTail
-
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
-
sdkVersion
-
getSdkVersion
- Returns:
- sdkVersion
-
setSdkVersion
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the OpsErrorContext instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of OpsErrorContext to an JSON string- Returns:
- JSON string
-