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 (one of documents, records, search, schemas, folders, clients, orgs, users, usage, auth, models, ping, rag, chat, ask, erasure-requests, or export), derived from the request path.
    • 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.
    • 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()