Package com.ultikits.ultitools.manager
Interface AgentEventEncoders.ErrorReportView
- Enclosing class:
AgentEventEncoders
static interface AgentEventEncoders.ErrorReportView
The values an
error.report payload is built from, as the session plan maps them out
of the error-report collector's report.
The nullable accessors are nullable in the contract too: a missing module, player,
location or snapshot value is sent as JSON null rather than as an empty string or a zero. The
collector's memory percentage is deliberately absent — the contract carries absolute
megabytes, and nothing else from the v1 payload survives (no error code, no
isFramework, no player UUID).
-
Method Details
-
fingerprint
String fingerprint()- Returns:
- the collector's hexadecimal fingerprint, one to eight digits
-
exceptionType
String exceptionType()- Returns:
- the exception's binary class name
-
message
String message()- Returns:
- the already-redacted exception message
-
stackTrace
String stackTrace()- Returns:
- the already-redacted stack trace
-
moduleName
String moduleName()- Returns:
- the owning module's name, or null when the report is not a module's
-
triggerKind
String triggerKind()- Returns:
- the collector's trigger type name (
COMMAND,EVENT,SCHEDULED,AOPorUNCAUGHT), or null
-
triggerDetail
String triggerDetail()- Returns:
- the already-redacted trigger detail, or null
-
playerName
String playerName()- Returns:
- the player's name, or null when no player is involved
-
location
String location()- Returns:
- where the error was raised, or null
-
tps
Double tps()- Returns:
- current server TPS, or null when unknown
-
memUsedMb
Long memUsedMb()- Returns:
- used heap in megabytes, or null when unknown
-
memMaxMb
Long memMaxMb()- Returns:
- maximum heap in megabytes, or null when unknown
-
onlinePlayers
Long onlinePlayers()- Returns:
- the online-player count, or null when unknown
-
occurrences
int occurrences()- Returns:
- how often the group has been seen
-
firstSeenAt
long firstSeenAt()- Returns:
- when the group was first seen, in milliseconds
-
lastSeenAt
long lastSeenAt()- Returns:
- when the group was last seen, in milliseconds
-