Class LogEntry

java.lang.Object
ai.vectros.types.LogEntry

public final class LogEntry extends Object
  • Method Details

    • getTimestamp

      public String getTimestamp()
      Returns:
      When the API call completed (ISO-8601 UTC).
    • getMethod

      public String getMethod()
      Returns:
      HTTP method of the request.
    • getResource

      public String getResource()
      Returns:
      Top-level resource the call targeted, derived from the request path — for example documents, records, search, schemas, folders, entities, namespaces, users, usage, auth, models, ping, rag, chat, ask, erasure-requests, or export. Rows may also carry values that are not filterable via the resource query parameter, and clients/orgs appear on rows written before those identity surfaces were folded into entities.
    • getContextId

      public Optional<String> getContextId()
      Returns:
      The app context the request operated under — the context partition the credential carried. * for a root/cross-context caller. Null for older log lines or for entry points that are not context-scoped.
    • getStatus

      public int getStatus()
      Returns:
      HTTP response status code.
    • getKeyId

      public Optional<String> getKeyId()
      Returns:
      ID of the API key or scoped token that issued the request. Null if the request was unauthenticated (extremely rare — most paths require auth before logging).
    • getDurationMs

      public Optional<Long> getDurationMs()
      Returns:
      Total request duration in milliseconds, from auth to response completion.
    • getPath

      public Optional<String> getPath()
      Returns:
      Full request path.
    • getRequestId

      public Optional<String> getRequestId()
      Returns:
      Correlation id for this call. Quote it when contacting support so the call can be traced. Most useful on failures, but recorded for successful calls too. Where an error response body carries a requestId, it is this same id.
    • getErrorCode

      public Optional<String> getErrorCode()
      Returns:
      Error code explaining WHY a failed call was rejected, when the failure had a typed code — one of RATE_LIMITED, SUBSCRIPTION_LIMIT_EXCEEDED, INSUFFICIENT_BALANCE, RESOURCE_IN_USE, VERSION_CONFLICT, SESSION_REFRESH_REQUIRED. Null for successful calls, for failures that carry only a message, and for calls recorded before this release that are still within your log retention window. Request and response bodies are never logged, so no further detail is available here by design.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

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

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

      public static LogEntry.TimestampStage builder()